Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): a Claude subagent's own subagents no longer wake the root agent #14641

Mergedjuliusmarmingemerged 1 commit intot3code/codex-turn-mapping fromrefs/pull/14641/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 44 additions and 2 deletions (loading 4).

x
0 of 6 viewed, 6 left
9 additions and 0 deletionsapps/server/scripts/record-claude-agent-sdk-replay-fixture.tsModified
View file
@@ -68,6 +68,7 @@
CLAUDE_BACKGROUND_SUBAGENT_LIFECYCLE_STOP_PROMPT,
} from "../src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/input.ts";
import { CLAUDE_BACKGROUND_MONITOR_WAKE_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_monitor_wake/input.ts";
+import { CLAUDE_NESTED_BACKGROUND_SUBAGENT_WAKE_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_nested_background_subagent_wake/input.ts";
import { CLAUDE_NESTED_SUBAGENT_MODEL_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_nested_subagent_model/input.ts";
import { CLAUDE_BACKGROUND_TASK_INTERRUPT_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_task_interrupt/input.ts";
import { CLAUDE_BACKGROUND_WAKE_BEFORE_QUEUED_PROMPT_LAUNCH_PROMPT } from "../src/orchestration-v2/testkit/fixtures/claude_background_wake_before_queued_prompt/input.ts";
@@ -238,6 +239,14 @@
interruptAfter: "tool_use",
interruptAfterToolUses: 2,
+ claude_nested_background_subagent_wake: {
+ prompts: [CLAUDE_NESTED_BACKGROUND_SUBAGENT_WAKE_PROMPT],
+ defaultTranscriptFile:
+ "fixtures/claude_nested_background_subagent_wake/claude_transcript.ndjson",
+ queryMode: "streaming",
+ enableTools: true,
+ backgroundWakeCounts: [1],
+ },
claude_nested_subagent_model: {
prompts: [CLAUDE_NESTED_SUBAGENT_MODEL_PROMPT],
defaultTranscriptFile: "fixtures/claude_nested_subagent_model/claude_transcript.ndjson",
35 additions and 2 deletionsapps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.tsModified
View file
@@ -2943,6 +2943,11 @@
}>({ userTurns: new Map(), reports: new Map() });