Skip to content
Source
Sign inSign up
pingdotgg/t3code

Claude: a model change sent during a running turn is steered but never applied to that turn #34549

Closedbompus(GitHub profile, opens in a new tab) opened this issue 3 comments

What happened

I switched the model in the picker several times while a Claude thread's turn was still running (Fable 5.2, Sonnet 5.5, Opus 5.5) and sent a message each time. The picker and thread record show the new model, but the agent kept answering as claude-sonnet-5-5 every time I asked, and the run's executed model stayed Sonnet. The thread was created from the mobile app; the switches were made from the web client.

Diagnosis

A model change on a Claude thread is planned as apply_on_next_turn (ClaudeAdapterV2.planSelectionTransition, ClaudeAdapterV2.ts:5130). With a live turn, Orchestrator steers the message into the running turn and emits thread.model-selection-updated, so the UI shows the new model (Orchestrator.ts ~5540, selectionMustApplyNow is false). ClaudeAdapterV2.steerTurn (~11722) never calls query.setModel and builds the steered prompt from the old currentTurn.input.modelSelection. setModel only runs when a new turn starts (~10948). Result: the picker shows the new model while the live process keeps the old one, and because every steered message joins the same run, a long turn that keeps being steered never reaches a turn start. Each switch also left a queued run (ordinals 2-7) recorded as cancelled within ~1s with startedAt null and no executedModel; I did not trace why. Read from source and the database only; not reproduced live, and I did not confirm the new model applies once the run ends.

Steps to reproduce

  1. Open a Claude thread and start a long turn (many tool calls).
  2. While it runs, pick a different model in the picker (e.g. Sonnet 5.5 to Fable 5.2) and send a message.
  3. Ask the agent which model it is running. Expected: the new model applies, or the UI says it applies from the next turn. Actual: the agent reports the old model; the picker shows the new one; repeating the switch does not change that while the run continues.

Version

0.1.10-nightly.20261111.4529 (server); the web and mobile client versions are unknown

Environment

Linux x64 (xanmod 7.2.12), Node v26.12.1, claude provider instance via T3 Code server 0.1.10-nightly.20261111.4529

Evidence

Runs for the thread (run, status, model, startedAt, executedModel):
1 running claude-sonnet-5-5 started 20:45:20 executed claude-sonnet-5-5
2 cancelled claude-fable-5-2 not started, executed none
3 cancelled claude-fable-5-2 not started
4 cancelled claude-fable-5-2 not started
5 cancelled claude-sonnet-5-5 not started
6 cancelled claude-fable-5-2 not started
7 cancelled claude-opus-5-5 not started
Agent replies after each switch: "I'm still Sonnet 5.5 on my side".

#24564 (mobile: a delivered model pick moves the thread back on a later message) and closed #14524 (follow-up killed the turn when the selection was unchanged) are nearby but describe different behavior; none found for steers never applying the selection.

Fix applied or workaround

No response

Filed by

claude (sonnet-5-5) via t3 triage

  1. bompus(GitHub profile, opens in a new tab) added labelsvia-triage

  2. Checked v0.1.10-preview.20261111.4539 (d58378f). The behavior in this report is unchanged there: ClaudeAdapterV2.planSelectionTransition (line 5186) still returns apply_on_next_turn, so Orchestrator still steers the message into the running turn. steerTurn still builds the prompt from the old currentTurn.input.modelSelection and never calls query.setModel. So updating from the nightly does not fix it. Read from source only; not run.

  3. Update on the cancelled runs (ordinals 2–7): they are not a separate failure. Each was a queued message promoted to a steer. queued-message.promote-to-steer (Orchestrator.ts ~10225–10420) marks the queued run, attempt and node cancelled, then calls dispatchSteerIntoRun to join the message into the active run. So no new turn started after any switch, which is consistent with the model never being applied.

  4. Same cause when the switch is made around a pending question card. thread.model-selection.set only rewrites the thread's stored model (Orchestrator.ts ~4535–4542) and does not touch the live provider turn. runtime-request.respond has no model field (packages/contracts/src/orchestrationV2.ts ~3333), so answering the card resumes the same live turn. The model applies only when a new turn starts. Read from source only; not run.

  5. juliusmarminge closed this

Sign in to join this conversation.