Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): keep Claude subagent output in the subagent's thread #13347

Mergedscratchyone(GitHub profile, opens in a new tab)merged 3 commits intot3code/codex-turn-mapping fromrefs/pull/13347/headmerged by juliusmarminge View on GitHub

Showing 11 changed files with 12 additions and 0 deletions (loading 10).

x
0 of 11 viewed, 11 left
12 additions and 0 deletionsapps/server/scripts/record-claude-agent-sdk-replay-fixture.tsModified
View file
@@ -60,6 +60,7 @@
WORKSPACE_NEVER_POLICY,
WEB_SEARCH_PROMPT,
} from "../src/orchestration-v2/testkit/fixtures/shared.ts";
+import { CLAUDE_BACKGROUND_SUBAGENT_AFTER_ROOT_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_subagent_after_root/input.ts";
import {
DENIED_WRITE_POLICY,
TOOL_CALL_DENIED_WRITE_PROMPT,
@@ -164,6 +165,14 @@
queryMode: "streaming",
enableTools: true,
+ claude_background_subagent_after_root: {
+ prompts: [CLAUDE_BACKGROUND_SUBAGENT_AFTER_ROOT_PROMPT],
+ defaultTranscriptFile:
+ "fixtures/claude_background_subagent_after_root/claude_transcript.ndjson",
+ queryMode: "streaming",
+ enableTools: true,
+ awaitBackgroundWake: true,
+ },
subagent: {
prompts: [SUBAGENT_PROMPT],
defaultTranscriptFile: "fixtures/subagent/claude_transcript.ndjson",
@@ -466,6 +475,9 @@
? { permissionDecision: recording.permissionDecision }
: {}),
...("interruptAfter" in recording ? { interruptAfter: recording.interruptAfter } : {}),
+ ...("awaitBackgroundWake" in recording && recording.awaitBackgroundWake