Skip to content
TypeScript

test(server): replay checks a Claude subagent's thread takes its reported model (#15022)

Julius Marminge2a455570e6ee
diff --git a/apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts b/apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts
index 0828f7f9bbe..4c91460bed6 100644
--- a/apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts
+++ b/apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts
@@ -180,6 +180,9 @@ export function assertClaudeBackgroundSubagentLifecycleOutput(
const agentAChild =
agentA?.childThreadId == null ? undefined : result.projections.get(agentA.childThreadId);
assert.isDefined(agentAChild);
+ // The thread starts on the Agent call's "haiku"; the snapshot's model, which
+ // only arrives with the subagent's first reply, replaces it.
+ assert.equal(agentAChild.thread.modelSelection.model, AGENT_A_OBSERVED_MODEL);
assert.deepEqual(assistantTexts(agentAChild), ["A_FIRST", "A_SECOND"]);
assert.deepEqual(conversation(agentAChild), [
"user:Reply with exactly: A_FIRST",