[Bug]: Claude thread launched without model options runs at Medium effort while the composer shows High, so sends are refused as a setting change #16406
Before submitting#
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area#
apps/server
Steps to reproduce#
- From an agent, launch a Claude thread with
t3_thread_launchand passmodelSelection: { instanceId: "claudeAgent", model: "claude-opus-5-5" }with nooptions. In my case the project's default selection had no options either. - Have that thread start a background subagent (
Agentwithrun_in_background) that runs for a few minutes. - Open the thread in the desktop app. Don't touch the model or trait controls. Send any message while the subagent is still running.
Expected behavior#
The message goes to the live Claude process. The user changed nothing, and the composer shows the settings the thread is actually running with.
Actual behavior#
The send fails with:
Claude is still running background agents or commands, and this model or setting change would end them. Wait for them to finish, or press Stop, then send the message again.
The composer showed Claude Opus 5.5 · High · 1M, but the thread's Claude process was running at Medium effort:
- Runs 1 to 13 used the launch selection as given:
{"instanceId":"claudeAgent","model":"claude-opus-5-5"}, no options. - With no
effortoption, the server used the catalog default. The provider log'squery.openfor the thread has"effort":"medium"and"settings":{"showThinkingSummaries":true}(nofastMode). - Run 14, the message I sent, came from the composer with
effort: high,fastMode: falseandcontextWindow: 1m. ItsqueryIdentityfromcompileClaudeModelSelectiondiffers on effort, soopenQueryinClaudeAdapterV2.tsrefused it withClaudeBackgroundWorkBlocksQueryReplacementError(#14726). - Neither the thread nor the project stored any options, so High came from client-side state (the draft or sticky selection) rather than from anything the thread had run with.
- After the subagent finished, the next message closed the Medium process and resumed the same session with
"effort":"high". Resending works, but only after the wait.
The guard worked correctly; the effort really did change. The defect is that the composer showed High as if it were the thread's current setting, so the user changed effort without knowing it and was then blocked.
The fastMode part of this mismatch is fixed by #15770. The effort part isn't. #15471's last comment describes this launch path.
Impact#
Major degradation or frequent failure
Version or commit#
Desktop 0.0.46-nightly.20261003.2610. Not yet reproduced on current main. #15770 fixes only the fastMode part, so the effort mismatch should still happen there.
Environment#
macOS, desktop app. The thread was launched by a Claude agent through the T3 Code MCP server.
Workaround#
Wait for the background work to finish, then send again. Or have the launching agent pass effort, fastMode and contextWindow explicitly in t3_thread_launch.
Possible fix (for triage)#
When a launch or other caller leaves options out, store the options the server actually resolved on the thread's model selection. Every client (web, desktop, mobile) would then show what the thread is running, and an unchanged send would match.
juliusmarminge added labelsbug
juliusmarminge added labelsvia-triage
Note
Claude Opus 5.5 and GPT-6.1 Sol responding on behalf of @f4llenz. They triaged independently, then reviewed each other's findings.
Thanks for the triage, @juliusmarminge. The server-side analysis holds. The guard is correct, and
compileClaudeModelSelectionalready treats omitted options as the catalog defaults. But "High" did not come from a thread draft. It came from the environment default model selection.What we found#
deriveEffectiveComposerModelState(apps/web/src/composerDraftStore.ts) chooses the model asthread ?? project, but resolves options as draft → thread → project. A thread with no stored options falls through toactiveProjectDefaultModelSelection. That is the effective environment + project settings default (ChatView.tsx,resolveProjectSettings), not the project record.- My server
settings.jsonhasdefaultModelSelectionset toclaude-opus-5-5witheffort: highandcontextWindow: 1m, and my project overrides match. The default Model setting saves the full trait set when you use its traits picker. The composer then addsfastMode: false, which gives exactly run 14's payload. My report said "the project's default selection had no options", but I checked only the project record, not the effective settings default. - So nothing in the thread's draft was needed. Opening the thread and sending reproduces it, as long as the settings default for that instance has options.
- Persisting resolved options on the server would not fix this. A draft would still win over them, and Codex can't express its defaults that way. Following the live query identity would need new contract plumbing that this fix doesn't need.
Fix#
https://github.com/pingdotgg/t3code/pull/16546 makes the options fallback match the model fallback. The project default's options apply only when there is no thread selection. That's a 3-line change in
deriveEffectiveComposerModelState. New drafts are unaffected, becausebuildLocalDraftThreadalready uses the project default as a draft's thread selection, and explicit draft picks still win. A regression test runs the resolver andgetComposerProviderState. It fails onmainwitheffort: high/contextWindow: 1mand passes with the fix. Mobile already picksdraft.modelSelection ?? thread.modelSelectionas one selection and doesn't have this fallback.Related, not fixed in the PR#
- Re-selecting the current model is not a no-op. In
ChatView.onProviderModelSelect, pressing Enter on the current model, or using a model jump shortcut, replaces the thread's options withstickyOptionsByModelByProvider[instance][model]and marks the selection explicit. It can switch effort silently while the label still says "Claude Opus 5.5". - Catalog mismatch.
ClaudeDriverpublishes option defaults from the remote model manifest, but the Claude adapter compiles against the bundled catalog (claudeModelOptions.ts). If the remote defaults change, the composer and the running query can disagree on what "default" means.
I'm happy to send focused PRs for either if you want them.
Note
🤖 Claude Opus 5.5 responding on behalf of Theo
Thanks for the report. One part of this is fixed on main in #19341. Please test on the nightly built from main on 2026-10-21, or on the next stable release. One part is still open: The composer can still show options that differ from the thread's effective selection. If that part still matters to you, please open a new issue for that part only.
t3dotgg(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
Note
Grok responding on behalf of Julius.
Triage#
Thanks @f4llenz for the detailed report and the run records, they made this much easier to trace. I checked this on
main(76d3c96fd5) and onv0.0.46-nightly.20261003.2610. The effort mismatch can still happen there, and it looks separate from thefastModefix in #15770.What I found#
t3_thread_launchstores the selection it is given.ThreadLaunchServicepassesmodelSelectionstraight intothread.createand the initialmessage.dispatch, so an omittedoptionsarray stays omitted.claude-opus-5-5, the bundled catalog default effort is Medium.compileClaudeModelSelectioninapps/server/src/claudeModelOptions.tsresolves a missingeffortthroughresolveClaudeCatalogEffort, so the first query opens ateffort: "medium", which matches thequery.openyou saw.fastModeasfalse. It doesn't writeeffortorcontextWindowonto the thread.queryIdentityis{ apiModelId, effort, settings }; an omitted context window and an explicit1mboth map toclaude-opus-5-5[1m], but an expliciteffort: "high"changes the identity.openQueryinClaudeAdapterV2.tsreuses the live process only when the identity matches. While that process still has background work, a different identity raisesClaudeBackgroundWorkBlocksQueryReplacementError(the #14726 guard). So the guard fires because the follow-up carried a different effort.getComposerProviderState(apps/web/src/components/chat/composerProviderState.tsx) displays the descriptor default but leaves it out ofmodelOptionsForDispatch. High on the wire suggests the thread's composer draft already held an expliciteffort: "high". Opening a server thread doesn't copy sticky state;applyStickyStateruns only for new drafts, andderiveEffectiveComposerModelStateprefers a draft over the thread selection.Likely fix area#
A couple of possible directions:
modelSelectionExplicitunset), seed it from that stored selection rather than the draft. An unchanged send would then match the live process, while a real effort change would still be blocked by the #14726 guard during background work.This appears separate from #15471 (omitted vs. explicit
fastMode, addressed by #15770). A maintainer will decide on the fix direction.