| ... | @@ -180,6 +180,9 @@ export function assertClaudeBackgroundSubagentLifecycleOutput( | ... | @@ -180,6 +180,9 @@ export function assertClaudeBackgroundSubagentLifecycleOutput( |
| 180 | const agentAChild = | 180 | const agentAChild = |
| 181 | agentA?.childThreadId == null ? undefined : result.projections.get(agentA.childThreadId); | 181 | agentA?.childThreadId == null ? undefined : result.projections.get(agentA.childThreadId); |
| 182 | assert.isDefined(agentAChild); | 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); |
| 183 | assert.deepEqual(assistantTexts(agentAChild), ["A_FIRST", "A_SECOND"]); | 186 | assert.deepEqual(assistantTexts(agentAChild), ["A_FIRST", "A_SECOND"]); |
| 184 | assert.deepEqual(conversation(agentAChild), [ | 187 | assert.deepEqual(conversation(agentAChild), [ |
| 185 | "user:Reply with exactly: A_FIRST", | 188 | "user:Reply with exactly: A_FIRST", |