Repository navigation
Description
Summary
When the verified Claude Code catalog no longer lists a thread's current model id (for example claude-opus-5-5[1m] vs claude-opus-5-5), the thread composer swaps in the catalog's isDefault model and sends it as an explicit choice. Nothing in the UI says so. The swapped model becomes the thread's last execution model, so every later turn stays on the default. Since #4084 the catalog comes from each Claude Code probe, and on one machine it alternated between two lists 12 times in three days. Each time, open Opus threads quietly moved to Sonnet 5.
Environment: bb desktop (macOS) built from main at fdd3de3b1 plus private patches that don't touch model selection. Claude Code 2.1.280, then 2.1.282. Org account; Claude Code reports default → claude-sonnet-5 · Org default.
Reproduction
- Start a Claude Code thread on
claude-opus-5-5[1m]while the catalog lists it. Send a turn. - Get the catalog to a list without that exact id. Naturally this happens when the Claude Code probe returns its other list (in our logs,
Provider model catalog refresh settled {"changed":true,"modelCount":14}after8). To force it, rewrite the stored catalog to the current 14-model list: plainclaude-opus-5-5, no[1m]. - Open the thread. The picker shows Sonnet 5. Send any message.
Expected: the thread stays on claude-opus-5-5[1m], which Claude Code still accepts (agent-initiated turns with that id kept running while the catalog lacked it). Or, at minimum, the composer says the model is unavailable and asks before switching.
Actual: client/turn/requested has "execution":{"model":"claude-sonnet-5",...}, and the thread stays on Sonnet 5 until the user re-picks. From one machine: thr_u8ka3fxhtm 09-23 11:37:19 turn sent as claude-sonnet-5, 16 s after the catalog switched to 13 models. The previous turn was claude-opus-5-5[1m]. Eight such reverts across three threads, each after a catalog switch (table available).
Evidence (commit fdd3de3b19b97e6cd1ef7300cbb54711431249d3)
apps/app/src/hooks/thread-creation-options/model-catalog-selection.ts#L96-L110: a verified catalog without an exact match falls back toisDefault.apps/app/src/hooks/useThreadCreationOptions.ts#L600:forceExplicitModel: isUnavailableModelRecovery.apps/server/src/services/threads/thread-execution-plan.ts#L281-L286: last execution model is the fallback, so the swap sticks.apps/server/src/services/threads/thread-execution-override.ts#L146-L172: for threads with amodel_override, the explicit swapped model is also written tomodel_override. Any thread still on a pre-Build the Claude Code model picker from Claude Code's own model list #4084 id such asclaude-opus-5[1m]gets permanently set to Sonnet on its next send.plugins/provider-claude-code/src/model-list.ts#L89: catalog ids are exactly what the probe resolves, so[1m]presence varies per probe.
Ruled out: project and managed Claude settings (no model/availableModels), Account Pooler (disabled), handoff/fork/retry/compact/plugin spawns (none before the reverts), server turn-start validation (accepts non-catalog ids).
Suggested direction
- Treat
XandX[1m]as the same model when checking catalog membership, or keep the thread's current id as a selected-only entry. - Don't mark a recovery substitution
explicitwithout user confirmation, and show a notice when it happens. - Related: Claude Code catalog offers Opus only in 1M variants: no way to select a 200K-context Opus #3571, Account Pooler drops Claude Code Opus to a 200k context window (ANTHROPIC_BASE_URL disables native 1M); no [1m] model to work around it #4207, Recover threads from unavailable models #835, Build the Claude Code model picker from Claude Code's own model list #4084.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 25, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotBug · Priority: Medium · Effort: Medium. Applied
providers,ui,provider-claude-code, andconfirmed-repro; no existing classification values were replaced.REPRODUCED · high root-cause confidence. Report and reproduction test. The focused test fails identically in two clean checkouts of trusted main: a verified catalog omission substitutes the default model and marks it
explicitdespite no user edit. All 27 existing hook tests pass. Live provider fluctuations and persisted turns were not replayed.No PR: existing tests explicitly require this fallback, so choosing retention versus confirmation requires a product decision outside the simple-fix rule.
Keep a thread's model when the Claude Code catalog flips
Keep a thread's model when the Claude Code catalog flips
Keep a thread's model when the Claude Code catalog flips
Keep a thread's model when the Claude Code catalog flips
Pryapus commentedon Nov 9, 2026
Another data point, same failure with a newer model id. bb 0.49.0, Claude Code 2.1.321, macOS.
claude-fable-5-2with/model claude-fable-5-2(2026-11-09 21:08Z). Turns ran on it.fetched_at22:16:57Z): 13 models,claude-fable-5-2included. Read again afterfetched_at22:25:59Z: 4 models (claude-sonnet-5-5as default,claude-fable-5-1,claude-opus-5-5,claude-haiku-5-5), noclaude-fable-5-2.bb provider models claude-codeprinted the 4-model list each time./model claude-sonnet-5-5into the thread at 22:03:20Z and again at 22:19:41Z. The second one came 1 min 55 s after the user had typed/model claude-fable-5-2again. Nothing in the UI announced it; the user noticed only because the agent's replies changed.bb thread update <id> --model claude-fable-5-2returnsHTTP 400: Model "claude-fable-5-2" is not available in this thread's claude-code model catalog, so the thread cannot be pinned from the CLI either.bb thread spawn --model claude-fable-5-2in the same project and environment works, and those threads run onclaude-fable-5-2.So the model is accepted by Claude Code and by spawn, but an open thread on it gets moved to the catalog default whenever the probe returns the short list. Related: #4902.