Skip to content

feat(chat): use Claude Code labels for model names and tiers#2797

Merged
tlgimenes merged 1 commit intomainfrom
tlgimenes/claude-model-labels
Mar 20, 2026
Merged

feat(chat): use Claude Code labels for model names and tiers#2797
tlgimenes merged 1 commit intomainfrom
tlgimenes/claude-model-labels

Conversation

@tlgimenes
Copy link
Contributor

@tlgimenes tlgimenes commented Mar 20, 2026

What is this contribution about?

Updates Claude Code model IDs to use composite format (claude-code:opus, claude-code:sonnet, claude-code:haiku) and model titles to "Claude Code Opus/Sonnet/Haiku" to match vibegui's labeling from #2767. Adds tier classification (smarter/faster/cheaper) in the model selector and a default model preference for the claude-code provider.

How to Test

  1. Activate Claude Code provider via CLI
  2. Open the chat model selector — models should show as "Claude Code Opus", "Claude Code Sonnet", "Claude Code Haiku"
  3. Verify tier badges: Opus → Smarter, Sonnet → Faster, Haiku → Cheaper
  4. Send a message using any Claude Code model and confirm it routes correctly

Review Checklist

  • PR title is clear and descriptive
  • Changes are tested and working
  • No breaking changes

🤖 Generated with Claude Code


Summary by cubic

Switch Claude Code models to composite IDs (e.g., claude-code:opus) and update titles to "Claude Code ...", with tier badges in the model selector. Adds a resolver for SDK compatibility and default preferences for the claude-code provider.

  • New Features
    • Updated IDs/titles: claude-code:opus/sonnet/haiku → "Claude Code Opus/Sonnet/Haiku".
    • Tier badges in selector: Opus → Smarter, Sonnet → Faster, Haiku → Cheaper.
    • Added resolveClaudeCodeModelId and used it in stream-core to map composite IDs to SDK names.
    • Set claude-code default model preferences to claude-code:sonnet, claude-code:opus, claude-code:haiku.

Written for commit db7e118. Summary will update on new commits.

…ation

Update Claude Code model IDs to composite format (claude-code:opus/sonnet/haiku),
titles to include "Code" prefix, and add tier patterns for UI classification.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Contributor

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@github-actions
Copy link
Contributor

github-actions bot commented Mar 20, 2026

Release Options

Should a new version be published when this PR is merged?

React with an emoji to vote on the release type:

Reaction Type Next Version
👍 Prerelease 2.186.12-alpha.1
🎉 Patch 2.186.12
❤️ Minor 2.187.0
🚀 Major 3.0.0

Current version: 2.186.11

Deployment

  • Deploy to production (triggers ArgoCD sync after Docker image is published)

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

@tlgimenes tlgimenes merged commit 87bd7f1 into main Mar 20, 2026
15 checks passed
@tlgimenes tlgimenes deleted the tlgimenes/claude-model-labels branch March 20, 2026 21:27
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