Skip to content

Commit b60aff5

Browse files
test(server): replay checks a Claude subagent's thread takes its reported model
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 9333509 commit b60aff5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle

‎apps/server/src/orchestration-v2/testkit/fixtures/claude_background_subagent_lifecycle/output.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ export function assertClaudeBackgroundSubagentLifecycleOutput(
180180
const agentAChild =
181181
agentA?.childThreadId == null ? undefined : result.projections.get(agentA.childThreadId);
182182
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);
183186
assert.deepEqual(assistantTexts(agentAChild), ["A_FIRST", "A_SECOND"]);
184187
assert.deepEqual(conversation(agentAChild), [
185188
"user:Reply with exactly: A_FIRST",

0 commit comments

Comments
 (0)