Skip to content

Offer Fable 5.1 in the Claude Code model picker - #2833

Merged
SawyerHood merged 1 commit into
mainfrom
bb/fable-5-1-not-appearing-thr_vpxkt299xc
Sep 1, 2026
Merged

SawyerHood merged 1 commit into
mainfrom
bb/fable-5-1-not-appearing-thr_vpxkt299xc

Conversation

@SawyerHood

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

Claude Code 2.1.257 replaced claude-fable-5 with claude-fable-5-1. BB's curated Claude catalog is hardcoded and unconditional (CLAUDE_CODE_ACTIVE_CATALOG_DATA), so the picker kept offering the retired claude-fable-5 row, which the CLI now rejects, while Fable 5.1 reached the list only through the additive discovery path in buildClaudeCodeModels — appended below Sonnet 5, carrying the CLI's own bare displayName, "Fable". LARGE_CLAUDE_CONTEXT_MODELS also missed the new ids; Fable and Mythos carry a native 1M window with no [1m] suffix to fall back on, so resolveClaudeModelContextWindowHint returned 200k and the context meter under-reported by 5x.

I confirmed the rename directly against both binaries on this machine. Claude Code 2.1.252 reports claude-fable-5[1m] → claude-fable-5; 2.1.257 reports claude-fable-5-1[1m] → claude-fable-5-1. The CLI's own baked-in catalog gives claude-fable-5-1 display_name: "Fable 5.1" and context: {window: 1e6, native_1m: true} with no supports_1m_suffix, and claude-mythos-5-1 the same shape.

What changed

  • plugins/provider-claude-code/src/model-catalog-data.ts — claude-fable-5-1 / "Fable 5.1" replaces the retired claude-fable-5 entry in the curated catalog. This also fixes the server-side fallback list, because plugins/provider-claude-code/server.ts projects models.fallback from the same data.
  • plugins/provider-claude-code/src/sdk-extraction.ts — claude-fable-5-1, claude-mythos-5-1, and claude-mythos-5 join LARGE_CLAUDE_CONTEXT_MODELS.
  • plugins/provider-claude-code/src/model-list.ts — the best and fable alias descriptions no longer pin Fable to version 5.

No wire change, so HOST_DAEMON_PROTOCOL_VERSION stays put: the model list's shape is unchanged and only its values move. No CLI, guide, or plugin API surface changed.

Two deviations from the issue's proposed fix:

  1. Fable 5 is not added to the selected-only catalog. That list is discovery-gated (modelIsDiscovered(entry.model, …) && !models.some(…)), and on a CLI that still offers Fable 5 the discovery loop already pushes claude-fable-5 into models, which filters the selected-only row out. The entry would be unreachable in every case, and the case it was meant to cover — an existing selection while the CLI still offers the model — is already covered by discovery.
  2. Mythos is not added to the selected-only catalog either, for the same unreachability reason. buildClaudeCodeModels already surfaces it through the discovered-passthrough path with Anthropic's own label for entitled accounts, and the existing test asserting BB never invents a Mythos row still passes. claude-mythos-5 joins the 1M set alongside claude-mythos-5-1, since it carries the identical native 1M window and the same latent 5x under-report.

The issue's closing note — reading display names, context windows, and effort levels from the probe instead of restating them — is the design change that would retire this class of drift. It is deliberately out of scope here; the issue flags it as a separate decision.

How you verified

  • pnpm exec turbo run test typecheck --filter=bb-plugin-provider-claude-code — 337 tests pass, typecheck clean. model-list.test.ts, sdk-extraction.test.ts, and bridge.test.ts carried the old claude-fable-5 expectations and fail before this change.
  • pnpm exec turbo run test typecheck --filter=@bb/server — 2120 tests pass, typecheck clean. execution-options.test.ts pins the fallback catalog and fails before this change.
  • Fed the real 2.1.257 probe output through buildClaudeCodeModels: the list now starts claude-fable-5-1 | Fable 5.1, with no duplicate row for the discovered entry, and resolveClaudeModelContextWindowHint("claude-fable-5-1") returns 1000000.
  • Ran a real one-turn session against 2.1.257 with model: "claude-fable-5-1". The init message echoes claude-fable-5-1 and the turn completes, so the promoted id is one the CLI accepts.

Fixes #2825

AGENT GENERATED

Claude Code 2.1.257 replaced claude-fable-5 with claude-fable-5-1. BB's
curated Claude catalog is hardcoded and unconditional, so the picker kept
offering the retired claude-fable-5 row, which the CLI now rejects. Fable
5.1 reached the list only through the additive discovery path: it landed
below Sonnet 5 under the CLI's own bare label, "Fable". The 1M-context
model set also missed the new ids, so BB reported a 200k context window
for models that carry a native 1M window and no [1m] suffix.

Promote claude-fable-5-1 to the curated catalog in place of
claude-fable-5, which also fixes the server-side fallback list derived
from the same data. Add the Fable 5.1 and Mythos ids to
LARGE_CLAUDE_CONTEXT_MODELS. Drop the two alias descriptions that pinned
Fable to version 5.

Fixes #2825

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@SawyerHood
SawyerHood merged commit 76dd72a into main Sep 1, 2026
15 checks passed
@SawyerHood
SawyerHood deleted the bb/fable-5-1-not-appearing-thr_vpxkt299xc branch September 1, 2026 19:54
SawyerHood added a commit that referenced this pull request Sep 22, 2026
…4084)

## Human comments

## What was wrong

The Claude Code model picker was a hardcoded catalog
(`model-catalog-data.ts`) with Claude Code's reported models appended
after it. When Claude Code 2.1.280 made `claude-opus-5-5[1m]` its
default, BB did pick it up, but it landed sixth in the list under Claude
Code's alias label, "Opus (1M context)". The stale hardcoded "Opus 5
(1M)" stayed at the top. Every model release needed a manual catalog
edit to look right (#2833 was the last one, for Fable 5.1).

## What changed

- `plugins/provider-claude-code/src/model-list.ts`: the picker is built
only from Claude Code's `initializationResult().models`, in Claude
Code's order, one entry per resolved model id.
- **Names:** display names are derived from the model id
(`claude-opus-5-5[1m]` → "Opus 5.5 (1M)", `claude-haiku-4-5-20251001` →
"Haiku 4.5"). Ids that don't match the
`claude-<family>-<major>[-<minor>]` pattern keep Claude Code's own
label.
- **Aliases:** Claude Code's aliases (`opus[1m]`, `sonnet`, …) become
selected-only entries, labeled "<name> alias".
- **Default:** Claude Code's reported default model, falling back to the
first entry.
- **Reasoning efforts:** taken from `supportedEffortLevels`, with
`xhigh` also offering `ultracode`, as before.
- Deleted `model-catalog-data.ts`, `model-catalog.ts` and
`model-catalog.test.ts`, along with the legacy selected-only catalog.
- `plugins/provider-claude-code/server.ts`: dropped `models.fallback`.
BB already stores the last good catalog per host and serves it when a
later probe fails, so the static list only showed up when a host's very
first probe failed.
- `plugins/provider-claude-code/src/bridge/model-list.ts`: an empty
model report now throws, so it counts as a failed probe instead of
overwriting the stored catalog with nothing.
- Server tests that pinned the Claude fallback catalog now check the
generic `models.fallback` path with a test provider, and expect no
fallback models for Claude Code.

No wire change: the model-list shape is unchanged, so
`HOST_DAEMON_PROTOCOL_VERSION` stays put. No CLI, guide or plugin API
change.

**Behavior changes to be aware of:**
- **Older models leave the picker.** Claude Code only reports its
current models, so Opus 5, 4.8 and 4.7 and old aliases like `opus`,
`best` and `fable` are no longer listed. Threads and project defaults on
those models recover to the default in the composer, and the next UI
send switches them.
- **Updates to those models are rejected.** `bb thread update --model
<dropped id>` returns 400, and workflow literal selections naming a
dropped model fail validation. `bb thread spawn --model <id>` still
works because spawn doesn't check the catalog.
- **Default effort is now "high".** It used to be "medium" for Opus 4.7
and Sonnet 5, and it only applies when no effort preference is saved.
- **First probe failure leaves the picker empty.** If a host's very
first probe fails, the picker shows the load error instead of a static
list.
- **Context-window hints stay hardcoded.** `LARGE_CLAUDE_CONTEXT_MODELS`
in `sdk-extraction.ts` is untouched, because Claude Code's model report
carries no context window.

## How you verified

- `pnpm exec turbo run test typecheck
--filter=bb-plugin-provider-claude-code`: 363 tests pass. New
`model-list.test.ts` cases cover Claude Code's order, derived names,
aliases as selected-only entries, effort mapping, and following a
changed default. `bridge.test.ts` covers the empty report being treated
as a failure.
- `pnpm exec turbo run test typecheck --filter=@bb/server`: all passing
except `test/public/machine-environment.test.ts`, which hit its 5 s
timeout under full-suite load and passes when run alone.
- Fed the real Claude Code 2.1.280 probe through the bridge. On a dev
app, `GET /api/v1/system/execution-options?providerId=claude-code`
returns exactly Opus 5.5 (1M) (default), Fable 5.1, Sonnet 5 and Haiku
4.5, with the four aliases as selected-only entries. The model picker in
the dev app UI shows the same list.

> AGENT GENERATED

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Claude Code catalog still lists Fable 5, so Fable 5.1 shows up unlabelled and its 1M window is under-reported

1 participant