惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
Google DeepMind News
Google DeepMind News
MyScale Blog
MyScale Blog
A
About on SuperTechFans
Martin Fowler
Martin Fowler
M
MIT News - Artificial intelligence
Recent Announcements
Recent Announcements
D
DataBreaches.Net
B
Blog
博客园 - 【当耐特】
爱范儿
爱范儿
有赞技术团队
有赞技术团队
P
Proofpoint News Feed
WordPress大学
WordPress大学
小众软件
小众软件
Apple Machine Learning Research
Apple Machine Learning Research
I
InfoQ
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Last Week in AI
Last Week in AI
Microsoft Azure Blog
Microsoft Azure Blog
雷峰网
雷峰网
量子位
G
Google Developers Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix: preserve subagent task overrides (#78356) · openclaw...
amknight · 2026-05-06 · via Recent Commits to openclaw:main

File tree

  • src/agents/pi-embedded-runner/run

Original file line numberDiff line numberDiff line change

@@ -128,6 +128,7 @@ Docs: https://docs.openclaw.ai

128128

- Control UI/sessions: fire the documented `/new` command and lifecycle hooks only for explicit Control UI session creation, restoring session-memory and custom hook capture without changing SDK parent-session creates. Fixes #76957. Thanks @BunsDev.

129129

- Exec approvals: fall back to a guarded copy when Windows rejects rename-overwrite for `exec-approvals.json`, while preserving symlink, hard-link, and owner-only permission safeguards. Fixes #77785. (#77907) Thanks @Alex-Alaniz and @MilleniumGenAI.

130130

- Slack: preserve Socket Mode SDK error context and structured Slack API fields in reconnect logs, so startup failures no longer collapse to a bare `unknown error`.

131+

- Agents/subagents: preserve the delegated task prompt when a spawned target agent uses `systemPromptOverride`, so `sessions_spawn(mode: "run")` child runs still see their assigned task. Fixes #77950. Thanks @amknight.

131132

- iOS pairing: allow setup-code and manual `ws://` connects for private LAN and `.local` gateways while keeping Tailscale/public routes on `wss://`, and prefer explicit gateway passwords over stale bootstrap tokens in mixed-auth reconnects. Fixes #47887; carries forward #65185. Thanks @draix and @BunsDev.

132133

- Node/Windows: fall back to the Startup-folder launcher when Spanish-localized `schtasks` reports `Acceso denegado`, matching the existing access-denied fallback path. Fixes #77993. Thanks @jackonedev.

133134

- Plugins/diagnostics: make source-only TypeScript package warnings actionable by explaining that missing compiled runtime output is a publisher packaging issue and pointing users to update/reinstall or disable/uninstall the plugin. Fixes #77835. Thanks @googlerest.

Original file line numberDiff line numberDiff line change

@@ -68,6 +68,38 @@ describe("buildAttemptSystemPrompt", () => {

6868

expect(result.systemPrompt).not.toContain("USER.md");

6969

});

7070
71+

it("preserves runtime extra system prompt context when a system prompt override is configured", () => {

72+

const result = buildAttemptSystemPrompt({

73+

isRawModelRun: false,

74+

systemPromptOverrideText: "Custom override prompt.",

75+

transformProviderSystemPrompt,

76+

embeddedSystemPrompt: {

77+

workspaceDir: "/tmp/openclaw",

78+

reasoningTagHint: false,

79+

runtimeInfo: {

80+

host: "test-host",

81+

os: "Darwin",

82+

arch: "arm64",

83+

node: "v22.0.0",

84+

model: "openai/gpt-5.5",

85+

},

86+

tools: [],

87+

modelAliasLines: [],

88+

userTimezone: "UTC",

89+

promptMode: "minimal",

90+

extraSystemPrompt:

91+

"# Subagent Context\n\n## Your Role\n- You were created to handle: RUN_MODE_TASK_77950",

92+

bootstrapMode: "full",

93+

contextFiles: [],

94+

},

95+

providerTransform: baseProviderTransform,

96+

});

97+
98+

expect(result.systemPrompt).toContain("Custom override prompt.");

99+

expect(result.systemPrompt).toContain("## Subagent Context");

100+

expect(result.systemPrompt).toContain("RUN_MODE_TASK_77950");

101+

});

102+
71103

it("omits system prompts for raw model probes", () => {

72104

const result = buildAttemptSystemPrompt({

73105

isRawModelRun: true,

Original file line numberDiff line numberDiff line change

@@ -30,15 +30,33 @@ export type AttemptSystemPrompt = {

3030

systemPromptOverride: (defaultPrompt?: string) => string;

3131

};

3232
33+

function appendRuntimeExtraSystemPrompt(params: {

34+

systemPrompt: string;

35+

extraSystemPrompt?: string;

36+

promptMode?: EmbeddedSystemPromptParams["promptMode"];

37+

}): string {

38+

const extraSystemPrompt = params.extraSystemPrompt?.trim();

39+

if (!extraSystemPrompt || params.promptMode === "none") {

40+

return params.systemPrompt;

41+

}

42+

const contextHeader =

43+

params.promptMode === "minimal" ? "## Subagent Context" : "## Group Chat Context";

44+

return `${params.systemPrompt.trimEnd()}\n\n${contextHeader}\n${extraSystemPrompt}\n`;

45+

}

46+
3347

export function buildAttemptSystemPrompt(

3448

params: BuildAttemptSystemPromptParams,

3549

): AttemptSystemPrompt {

3650

const baseSystemPrompt = params.systemPromptOverrideText

37-

? appendAgentBootstrapSystemPromptSupplement({

38-

systemPrompt: params.systemPromptOverrideText,

39-

bootstrapMode: params.embeddedSystemPrompt.bootstrapMode,

40-

bootstrapTruncationNotice: params.embeddedSystemPrompt.bootstrapTruncationNotice,

41-

contextFiles: params.embeddedSystemPrompt.contextFiles,

51+

? appendRuntimeExtraSystemPrompt({

52+

systemPrompt: appendAgentBootstrapSystemPromptSupplement({

53+

systemPrompt: params.systemPromptOverrideText,

54+

bootstrapMode: params.embeddedSystemPrompt.bootstrapMode,

55+

bootstrapTruncationNotice: params.embeddedSystemPrompt.bootstrapTruncationNotice,

56+

contextFiles: params.embeddedSystemPrompt.contextFiles,

57+

}),

58+

extraSystemPrompt: params.embeddedSystemPrompt.extraSystemPrompt,

59+

promptMode: params.embeddedSystemPrompt.promptMode,

4260

})

4361

: buildEmbeddedSystemPrompt(params.embeddedSystemPrompt);

4462