Skip to content

fix: update stale Sonnet 4.6 labels to Sonnet 5 in the model picker - #1036

Open
zscgeek wants to merge 1 commit into
siteboon:mainfrom
zscgeek:fix/sonnet-5-model-label
Open

fix: update stale Sonnet 4.6 labels to Sonnet 5 in the model picker#1036
zscgeek wants to merge 1 commit into
siteboon:mainfrom
zscgeek:fix/sonnet-5-model-label

Conversation

@zscgeek

@zscgeek zscgeek commented Jul 18, 2026

Copy link
Copy Markdown

Summary

The Claude model picker shows "Sonnet 4.6" everywhere (default description, Sonnet option, Sonnet 1M-context option), which makes it look like Sonnet 5 isn't available. It actually already is — the underlying `sonnet` alias resolves live, server-side, to whatever the current Sonnet model is:

```
$ claude --model sonnet -p "what model are you, exactly (full model id)?"
Sonnet 5, model ID `claude-sonnet-5`.
```

The Opus entries were already updated to say "Opus 4.8" in a previous pass — Sonnet's labels were simply missed.

Fix

Label-only change in `CLAUDE_FALLBACK_MODELS` (`claude-models.provider.ts`): updates the three "Sonnet 4.6" description strings (`default`, `sonnet`, `sonnet[1m]`) to "Sonnet 5". The `value` fields themselves are untouched — those aliases are resolved by Claude Code CLI itself and are already correct.

Testing

  • `npm run typecheck` — clean
  • `npm run lint` — no new errors
  • Verified the alias resolution directly against the installed `claude` CLI (see command above)

Summary by CodeRabbit

  • Documentation
    • Updated model descriptions to reference Claude Sonnet 5 for the default, Sonnet, and extended-context options.

…icker

The 'default', 'sonnet', and 'sonnet[1m]' model options in
CLAUDE_FALLBACK_MODELS still describe "Sonnet 4.6" even though the
underlying `sonnet` alias already resolves to Sonnet 5 today (verified:
`claude --model sonnet` reports "Sonnet 5, model ID claude-sonnet-5"). The
Opus entry was already updated to say "Opus 4.8" - Sonnet's labels were
simply missed in that pass.

This is a label-only fix: the `value` fields (`default`, `sonnet`,
`sonnet[1m]`) are unchanged, since those aliases are resolved live by Claude
Code CLI itself and already point at the current model. Only the
human-readable description text was stale, which made it look like Sonnet 5
wasn't available in the picker at all.
@coderabbitai

coderabbitai Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: b70ca678-ac8d-4aeb-bfe5-c862e9a6d403

📥 Commits

Reviewing files that changed from the base of the PR and between 27eaf01 and a9a4993.

📒 Files selected for processing (1)
  • server/modules/providers/list/claude/claude-models.provider.ts

📝 Walkthrough

Walkthrough

Changes

Claude model catalog

Layer / File(s) Summary
Update fallback model descriptions
server/modules/providers/list/claude/claude-models.provider.ts
The default, Sonnet, and sonnet[1m] descriptions now reference Claude Sonnet 5; model-selection logic is unchanged.

Possibly related PRs

Suggested reviewers: viper151

Poem

A rabbit updates the model sign,
“Sonnet Five” now reads just fine.
Default and long-context hop,
Clearer labels at each stop.
No logic changed—just words in line!

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately and concisely describes the label-only update from Sonnet 4.6 to Sonnet 5 in the model picker.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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.

1 participant