Skip to content

feat(model-selector): tier categories, shortlist management, and rich cost details#2542

Closed
viktormarinho wants to merge 1 commit intomainfrom
feat/model-selector-overhaul
Closed

feat(model-selector): tier categories, shortlist management, and rich cost details#2542
viktormarinho wants to merge 1 commit intomainfrom
feat/model-selector-overhaul

Conversation

@viktormarinho
Copy link
Contributor

@viktormarinho viktormarinho commented Mar 2, 2026

Summary

  • Tier system: models grouped into Smarter / Faster / Cheaper based on provider prefix patterns; browse mode renders grouped sections
  • Shortlist management: per-connection model shortlist persisted in localStorage; manage mode lets users toggle models on/off; defaults to a curated shortlist when none saved
  • Rich details panel: cost percentile badges (Budget / Premium / Top 5% etc.), context/output size labels (Small / Medium / Large / XL), costs color-coded relative to the full model catalog
  • Dialog instead of Popover: fixed-size layout that doesn't reflow when switching to manage mode
  • Auto-selector: ModelAutoSelector now prefers Claude Opus → Sonnet over picking the first available model
  • formatCollectionName: special-cases "LLM""Models" for display

Test plan

  • Open model selector — models appear grouped by tier
  • Search filters within the shortlist only
  • "Manage models" toggles individual models; shortlist persists on reload
  • Details panel shows cost badges and size labels
  • No model connection → selector hidden (unchanged)
  • Mobile layout (single column, no details panel)

Split from #2528

🤖 Generated with Claude Code


Summary by cubic

Introduces a tiered model selector with per-connection shortlists and richer cost details to make choosing models faster and clearer. Moves the selector to a fixed-size dialog and improves the default auto-selection.

  • New Features

    • Tier grouping: models classified into Smarter / Faster / Cheaper; browse mode shows grouped sections.
    • Shortlist management: per-connection shortlist saved in localStorage; manage mode with checkboxes and a curated default; search filters within shortlist in browse mode.
    • Details panel: input/output costs per 1M with percentile badges (Budget/Premium/Top 5%), context/output size labels (Small–XL), and color-coded costs.
  • Refactors

    • Switched from Popover to Dialog for a stable, fixed-size layout.
    • Auto-selector now prefers Claude Opus 4.6 → Sonnet 4.6 → Sonnet before falling back.
    • formatCollectionName special-case: “LLM” → “Models”.

Written for commit 4a06b4c. Summary will update on new commits.

…ment, and rich details

- Tier system: classify models into Smarter / Faster / Cheaper based on
  provider prefix patterns; browse mode groups by tier
- Shortlist management: per-connection model shortlist persisted in
  localStorage; manage mode allows toggling models on/off
- Rich details panel: cost percentile badges, context size labels,
  output size labels; costs shown with color-coded relative positioning
- Switch ModelSelector from Popover to Dialog for fixed-size stable layout
- Auto-selector in ModelAutoSelector now prefers Claude Opus > Sonnet
  over picking the first available model
- formatCollectionName: special-case "LLM" → "Models"

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

github-actions bot commented Mar 2, 2026

🧪 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 2, 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.123.5-alpha.1
🎉 Patch 2.123.5
❤️ Minor 2.124.0
🚀 Major 3.0.0

Current version: 2.123.4

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 3 files

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