Repository navigation
fix(core): keep every listed Claude model ID working when Claude Code renames a model - #65032
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.
1 task
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #64746
Type of change
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?
bun run checkfrom the repo root, and the Claude Agent tests inpackages/core.fableandclaude-fable-5-2, so sessions on the dropped id fail #64746 ondevwith real Claude Code (a chat onclaude-fable-5-2, then a Haiku chat, then "Model unavailable" on the first). On this branch both IDs keep answering.Screenshots / recordings
N/A, not a UI change.
Checklist