Add Anthropic Claude Sonnet 4.6 support across providers#11509
Add Anthropic Claude Sonnet 4.6 support across providers#11509hannesrudolph merged 2 commits intoRooCodeInc:mainfrom
Conversation
Add model definitions and capability flags for Anthropic, Bedrock, Vertex, OpenRouter, and Vercel AI Gateway. Update Anthropic handler and UI model selection logic to support Claude Sonnet 4.6 1M context behavior and tier pricing. Add focused tests for provider handlers, fetchers, and selected-model hooks. Keep Bedrock UI tier pricing parity as-is because this is a pre-existing issue for Opus 4.6 and will be handled separately. Reference: - https://www.anthropic.com/news/claude-sonnet-4-6 - https://platform.claude.com/docs/en/about-claude/models/overview#latest-models-comparison
Reviewed the incremental change (deletion of Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
|
@roomote do we just need to rerun the failing CI or did we change somethign that would cause it to fail? |
The failing CI ( This happens during the esbuild bundle step when Windows holds a file lock during concurrent copy operations -- a known flaky behavior on Windows CI runners. None of the files changed in this PR touch the build system or file-copy logic. Just rerunning the failing CI job should resolve it. No code changes needed. |
|
Is this bedrock model ID correct? I think https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html says |
|
@anguslees is right, the current Bedrock ID does not work |
|
Oops, somehow a wrong ID used here, sorry about that, let me fix it. |
Replace the incorrect Sonnet 4.6 Bedrock ID with the AWS-supported model ID in the model registry and Bedrock capability lists. Remove references to the deprecated dated ID and update Bedrock tests to validate the corrected Sonnet 4.6 identifier.
|
A PR to fix the wrong ID was sent here: #11569 |
Replace the incorrect Sonnet 4.6 Bedrock ID with the AWS-supported model ID in the model registry and Bedrock capability lists. Remove references to the deprecated dated ID and update Bedrock tests to validate the corrected Sonnet 4.6 identifier.
Description
This PR adds support for Claude Sonnet 4.6 across Roo Code providers and UI model-selection flows.
Key changes:
@roo-code/typesfor:claude-sonnet-4-6)anthropic.claude-sonnet-4-6-20260114-v1:0)claude-sonnet-4-6@20260114)anthropic/claude-sonnet-4.6)anthropic/claude-sonnet-4.6)useSelectedModelapplies Sonnet 4.6 1M pricing tier for Anthropic when 1M context is enableduseSelectedModel.roo-clinepatch changeset for release automation.Test Procedure
pnpm --filter roo-cline exec vitest run api/providers/__tests__/anthropic.spec.ts api/providers/fetchers/__tests__/openrouter.spec.tspnpm --filter roo-cline exec vitest run api/providers/__tests__/bedrock.spec.ts api/providers/__tests__/anthropic-vertex.spec.tspnpm --filter @roo-code/vscode-webview exec vitest run src/components/ui/hooks/__tests__/useSelectedModel.spec.tspnpm --filter @roo-code/types check-typespnpm --filter roo-cline check-typespnpm --filter @roo-code/vscode-webview check-typespnpm run check-typespassed in pre-push (14 successful, 14 total).Pre-Submission Checklist
Documentation Updates
Additional Notes
Start a new Roo Code Cloud session on this branch