RUN v4.1.1 /Users/sawyerhood/.bb-machines/bee.getbb.app/checkouts/bb/.claude/worktrees/wf_21e66a79-f02-3/packages/agent-runtime ❯ @bb/agent-runtime:isolated src/pi/bridge/__tests__/model-switch.repro.test.ts (2 tests | 2 failed) 29ms × applies a model that changed between turns before prompting pi 17ms × does not resynchronize the model on /compact either 12ms ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 2 ⎯⎯⎯⎯⎯⎯⎯ FAIL @bb/agent-runtime:isolated src/pi/bridge/__tests__/model-switch.repro.test.ts > pi bridge model switch (#2160) > applies a model that changed between turns before prompting pi AssertionError: expected { setModelCalls: [], …(2) } to deeply equal { …(3) } - Expected + Received { "promptModelsPerSession": [ [ "xai/grok-4.6", - "openai-codex/gpt-5.6-sol", + "xai/grok-4.6", ], ], "rebuilt": false, - "setModelCalls": [ - [ - { - "id": "gpt-5.6-sol", - "provider": "openai-codex", - }, - ], - ], + "setModelCalls": [], } ❯ src/pi/bridge/__tests__/model-switch.repro.test.ts:253:10 251| rebuilt, 252| promptModelsPerSession: sessions.map((s) => s.promptModels), 253| }).toEqual({ | ^ 254| setModelCalls: rebuilt ? [] : [[SOL]], 255| rebuilt, ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/2]⎯ FAIL @bb/agent-runtime:isolated src/pi/bridge/__tests__/model-switch.repro.test.ts > pi bridge model switch (#2160) > does not resynchronize the model on /compact either AssertionError: expected { allPromptModels: [ …(2) ], …(1) } to deeply equal { allPromptModels: [ …(2) ], …(1) } - Expected + Received { "allCompactModels": [ - "openai-codex/gpt-5.6-sol", + "xai/grok-4.6", ], "allPromptModels": [ - "openai-codex/gpt-5.6-sol", - "openai-codex/gpt-5.6-sol", + "xai/grok-4.6", + "xai/grok-4.6", ], } ❯ src/pi/bridge/__tests__/model-switch.repro.test.ts:308:53 306| // Expected: the compaction and every turn after the picker chan… 307| // on the selected model. 308| expect({ allPromptModels, allCompactModels }).toEqual({ | ^ 309| allPromptModels: ["openai-codex/gpt-5.6-sol", "openai-codex/gp… 310| allCompactModels: ["openai-codex/gpt-5.6-sol"], ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/2]⎯ Test Files 1 failed (1) Tests 2 failed (2) Start at 08:13:38 Duration 1.28s (transform 247ms, setup 0ms, import 1.17s, tests 29ms, environment 0ms)