feat: Claude Sonnet and Opus 4.6 updates#10600
Conversation
Add claude-sonnet-4-6 and claude-opus-4-6 as the new default Sonnet and Opus models across providers, GUI configs, schemas, cost calculation, and CLI defaults. Update display names for all >= 4.5 models to use name-first format (e.g. "Claude Sonnet 4.5" not "Claude 4.5 Sonnet").
Docs ReviewNo documentation updates needed for this PR. Reason: This PR adds Claude Sonnet 4.6 and Claude Opus 4.6 model support across providers, GUI configs, and defaults. The changes are purely additive model definitions that don't require doc updates because:
The |
Documentation ReviewNo documentation updates are needed for this PR. Rationale:
The existing documentation accurately guides developers to Anthropic models and the Hub, where they'll find Claude Sonnet 4.6 and Claude Opus 4.6 available. |
There was a problem hiding this comment.
1 issue found across 14 files
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="extensions/cli/src/util/yamlConfigUpdater.ts">
<violation number="1" location="extensions/cli/src/util/yamlConfigUpdater.ts:65">
P2: This filter no longer removes the previous default (`claude-sonnet-4-5`), so configs containing the old model will keep it and also add 4.6. That breaks the intended “update or add” behavior and leaves duplicate Sonnet entries.</violation>
</file>
Reply with feedback, questions, or to request a fix. Tag @cubic-dev-ai to re-run a review.
| // Filter out existing anthropic models | ||
| config.models = config.models.filter( | ||
| (model: any) => !model || model.uses !== "anthropic/claude-sonnet-4-5", | ||
| (model: any) => !model || model.uses !== "anthropic/claude-sonnet-4-6", |
There was a problem hiding this comment.
P2: This filter no longer removes the previous default (claude-sonnet-4-5), so configs containing the old model will keep it and also add 4.6. That breaks the intended “update or add” behavior and leaves duplicate Sonnet entries.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At extensions/cli/src/util/yamlConfigUpdater.ts, line 65:
<comment>This filter no longer removes the previous default (`claude-sonnet-4-5`), so configs containing the old model will keep it and also add 4.6. That breaks the intended “update or add” behavior and leaves duplicate Sonnet entries.</comment>
<file context>
@@ -62,7 +62,7 @@ export function updateAnthropicModelInYaml(
// Filter out existing anthropic models
config.models = config.models.filter(
- (model: any) => !model || model.uses !== "anthropic/claude-sonnet-4-5",
+ (model: any) => !model || model.uses !== "anthropic/claude-sonnet-4-6",
);
</file context>
| (model: any) => !model || model.uses !== "anthropic/claude-sonnet-4-6", | |
| (model: any) => | |
| !model || | |
| (model.uses !== "anthropic/claude-sonnet-4-5" && | |
| model.uses !== "anthropic/claude-sonnet-4-6"), |
Add claude-sonnet-4-6 and claude-opus-4-6 as the new default Sonnet and Opus models across providers, GUI configs, schemas, cost calculation, and CLI defaults. Update display names for all >= 4.5 models to use name-first format (e.g. "Claude Sonnet 4.5" not "Claude 4.5 Sonnet").
Continue Tasks:▶️ 7 not started · ✅ 20 no changes · ✅ 1 merged — View all
Summary by cubic
Add Claude Sonnet 4.6 and Claude Opus 4.6 and set them as the new defaults across core, CLI, GUI, schemas, and cost calculator. Standardize display names to “Claude ” for all 4.5+ models.
New Features
Migration
Written for commit c006d4b. Summary will update on new commits.