Skip to content

Commit 470adae

Browse files
fix(server): keep agent context at main's size for the foreground wait fix
The unmatched result already tells a foreground subagent its wait was not accepted, so the extra instruction sentence is not needed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent b8ccd0c commit 470adae

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1439,7 +1439,7 @@ const CLAUDE_BACKGROUND_WAIT_INSTRUCTIONS = `
14391439
14401440
### Background work you wait on
14411441
1442-
To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID before you end your turn. Do not mark work you leave running, or PRs. A foreground subagent's background work stops when it returns, so it cannot be waited on; finish it before returning. T3 MCP tools are deferred: load one with ToolSearch before you call it.
1442+
To wait for a background command or Monitor you started (tests, a build), call \`t3_background_wait\` with its task ID before you end your turn. Do not mark work you leave running, or PRs. T3 MCP tools are deferred: load one with ToolSearch before you call it.
14431443
`;
14441444

14451445
// Native subagents start from their task, not this session's system prompt.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"claudeSystemAppendBytes": 5253,
2+
"claudeSystemAppendBytes": 5135,
33
"codexAdditionalContextBytes": 6865,
44
"mcpToolListJsonBytes": 46007
55
}

0 commit comments

Comments
 (0)