Update Studio Code agent's supported Sonnet model to Sonnet 5#4024
Update Studio Code agent's supported Sonnet model to Sonnet 5#4024youknowriad wants to merge 1 commit into
Conversation
Bump the selectable Anthropic Sonnet model from Sonnet 4.6 to Sonnet 5 so users get the latest model, and make it the default. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
📊 Performance Test ResultsComparing b73ed7d vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
|
I built a couple of sites locally, quality seems good. |
|
More specifically, the slideshow and shop evals (so the plugin recommendation related evals) |
|
@youknowriad I will run an eval soon, but anecdotally I did see some posts from users on X about how Sonnet 5 ends up more expensive than Opus on long-running coding tasks and is better suited for knowledge work than coding. |
|
the funny thing is that I'm not even comparing it with Opus but to Sonnet 4.6 here. |
|
I ran a couple of evals via Sonnet 5 timed out, but 4.6 completed successfully on both runs. |

Related issues
How AI was used in this PR
Claude Code located the central model registry, applied the model swap, updated the affected unit tests, and drafted this PR. The author reviewed the diff.
Proposed Changes
The Studio Code agent's selectable Anthropic Sonnet option is bumped from Sonnet 4.6 to Sonnet 5, and Sonnet 5 becomes the default model. Users picking Sonnet in the model picker (and new sessions that don't pin a model) now get the newer model. Existing sessions that recorded the old
claude-sonnet-4-6id gracefully fall back to the default viaresolveSessionModel, so nothing breaks for in-flight chats.All model-driven UI (the
/modelslash command, both composer model pickers, theAiModelIdtype) derives from the singleAI_MODELSarray, so this is a one-line registry change plus test updates.Testing Instructions
npm test -- apps/cli/ai/tests/slash-commands.test.ts apps/cli/ai/tests/pi-runtime.test.tsPre-merge Checklist
claude-sonnet-5model id matches what the provider expects.