Skip to content

fix(core): keep every listed Claude model ID working when Claude Code renames a model - #65032

Merged
Tarquinen merged 1 commit into
devfrom
claude-model-ids
Nov 20, 2026
Merged

Tarquinen merged 1 commit into
devfrom
claude-model-ids

Conversation

@Tarquinen

Copy link
Copy Markdown
Member

Issue for this PR

Closes #64746

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Keeps every model ID Claude Code has listed working. Claude Code lists Fable under whatever name the chat was started with, so the model list used to drop IDs that chats and config still pointed at.

Check the spec for design notes.

How did you verify your code works?

Screenshots / recordings

N/A, not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound. With Claude Code stubbed out by the plugin's fake (no real Claude login here), the two new tests fail on dev because saved IDs get dropped, and pass with this PR. All 84 tests in test/plugin/provider/claude-agent/ pass, and tsc for packages/core is clean. Walking through fable ⇄ claude-fable-5-2, the ID offered first stays visible, the other name stays usable but is marked deprecated, and a rename alone no longer starts a login check. Deprecated models still run because core's model lookup ignores status; only the pickers hide them.

Public API is unchanged: hidden is a new optional field in this plugin's saved model list, and older saved lists still load.

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-agent: model list flips between fable and claude-fable-5-2, so sessions on the dropped id fail

1 participant