feat(LAC-3106): add Claude Opus 5 and set it as default Anthropic model - #492
Merged
Conversation
Claude Opus 5 (`claude-opus-5`) was released 2026-07-24 as the new flagship Opus-tier model (Opus-4.8 pricing, adaptive thinking, 1M context). Verified against live Anthropic model docs per the weekly model-update check. - Add CLAUDE_OPUS_5 constant to model_ids - Include it in OPUS_4_5_PLUS_MODELS so it uses the 2025-11-24 computer-use beta (computer_20251124 + text_editor_20250728) - List it first and mark it the sole recommended (default) Anthropic model; demote Opus 4.8 to non-recommended - Update the empty-definitions fallback constant to Opus 5 - Add tests: default-model selection and tool-type remapping - Refresh stale CLI --model help example (claude-opus-4-7 -> claude-opus-5) Frontend needs no change: model selectors are populated dynamically via get_provider_models (zero hardcoded IDs). Verified with cargo test on the agent::providers::types module (13/13 pass). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Caution The consumer version of Gemini Code Assist on GitHub has been sunset. All code review activity has officially ceased. |
Wrap the assert_eq! in test_opus_5_is_default_anthropic_model to satisfy rustfmt line width — preempts the CI Rust (fmt) gate. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LAC-3106 — Weekly Model Update Check (Juno)
Verified
src-tauri/src/agent/providers/types.rsagainst live Anthropic model docs. A new flagship shipped since the last check:Claude Opus 5 (
claude-opus-5) — released 2026-07-24 (Anthropic announcement). Opus-tier flagship at Opus-4.8 pricing ($5/$25 per MTok), adaptive thinking, 1M context, 128k output. Anthropic recommends it as the default for complex agentic/coding/enterprise work and it becomes the default for Claude Max.Changes (
types.rs)CLAUDE_OPUS_5 = "claude-opus-5"constantOPUS_4_5_PLUS_MODELS→ uses the 2025-11-24 computer-use beta (computer_20251124+text_editor_20250728), the correct tier for a current-gen modeltest_opus_5_is_default_anthropic_model,test_resolve_tool_type_opus_5_remapsCLI (
cli/mod.rs)--modelhelp example:claude-opus-4-7→claude-opus-5Frontend
No change required. Model selectors are populated dynamically via
invoke("get_provider_models")→get_model_info()→model_definitions(); grep ofsrc/found zero hardcoded model IDs, so the UI picks up Opus 5 automatically with the correct recommended badge.Verification
cargo test --lib agent::providers::types→ 13/13 pass (incl. both new tests). Full-cratecargo checkis blocked only by a missing../dist(frontend not built in this worktree) — a pre-existing env condition intauri::generate_context!, unrelated to this change.🤖 Generated with Claude Code