Skip to content

Composer silently switches a thread to the catalog default (Sonnet 5) when the Claude Code catalog stops listing its exact model id #4370

Open

Description

@benwaffle

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

  1. Start a Claude Code thread on claude-opus-5-5[1m] while the catalog lists it. Send a turn.
  2. 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} after 8). To force it, rewrite the stored catalog to the current 14-model list: plain claude-opus-5-5, no [1m].
  3. 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)

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

AGENT GENERATED

Activity

  1. added theissue type on Sep 25, 2026
  2. added
    providers
    ui
    provider-claude-code
    confirmed-repro
    on Sep 25, 2026
  3. bb-slop-cop commented on Sep 25, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Bug · Priority: Medium · Effort: Medium. Applied providers, ui, provider-claude-code, and confirmed-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 explicit despite 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.

    AGENT GENERATED

  4. Pryapus commented on Nov 9, 2026

    @Pryapus

    Another data point, same failure with a newer model id. bb 0.49.0, Claude Code 2.1.321, macOS.

    • A Claude Code thread was set to claude-fable-5-2 with /model claude-fable-5-2 (2026-11-09 21:08Z). Turns ran on it.
    • The stored claude-code catalog for the machine alternates between two lists. Read at about 22:21Z (fetched_at 22:16:57Z): 13 models, claude-fable-5-2 included. Read again after fetched_at 22:25:59Z: 4 models (claude-sonnet-5-5 as default, claude-fable-5-1, claude-opus-5-5, claude-haiku-5-5), no claude-fable-5-2. bb provider models claude-code printed the 4-model list each time.
    • The composer sent /model claude-sonnet-5-5 into 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-2 again. Nothing in the UI announced it; the user noticed only because the agent's replies changed.
    • bb thread update <id> --model claude-fable-5-2 returns HTTP 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-2 in the same project and environment works, and those threads run on claude-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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    confirmed-reproprovider-claude-codeprovidersui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions