The best way to control Claude Code, Codex and more from any computer or phone
test(server): replay checks a Claude subagent's thread takes its reported model (#15022)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Julius Marminge committed
Oct 3, 2026 at 17:59 UTC
2a455570e6ee70a59241c30126b50c7df1696a6a
1 file changed
+3
apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts
+3
@@ -180,6 +180,9 @@ export function assertClaudeBackgroundSubagentLifecycleOutput(
180
const agentAChild =
181
agentA?.childThreadId == null ? undefined : result.projections.get(agentA.childThreadId);
182
assert.isDefined(agentAChild);
183
+ // The thread starts on the Agent call's "haiku"; the snapshot's model, which
184
+ // only arrives with the subagent's first reply, replaces it.
185
+ assert.equal(agentAChild.thread.modelSelection.model, AGENT_A_OBSERVED_MODEL);
186
assert.deepEqual(assistantTexts(agentAChild), ["A_FIRST", "A_SECOND"]);
187
assert.deepEqual(conversation(agentAChild), [
188
"user:Reply with exactly: A_FIRST",