Skip to content

Commit 90e058e

Browse files
Apurva324Apurva Shaw
andauthored
feat: add explicit entry for claude-opus-5 in model config (#2831)
Fixes #2787 - Added `claude-opus-5` to `config.rs` model classification and adaptive effort helpers. - Updated fixture test configurations to cover `claude-opus-5`. - Verified with `cargo test` and JS unit tests. Signed-off-by: Apurva Shaw <[email protected]> Co-authored-by: Apurva Shaw <[email protected]>
1 parent 55a3ed7 commit 90e058e

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎crates/buzz-agent/src/config.rs‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ pub fn anthropic_thinking_config(
184184
fn anthropic_model_supports_xhigh(model: &str) -> bool {
185185
model.starts_with("claude-opus-4-7")
186186
|| model.starts_with("claude-opus-4-8")
187+
|| model.starts_with("claude-opus-5")
187188
|| model.starts_with("claude-sonnet-5")
188189
|| model.starts_with("claude-fable-5")
189190
|| model.starts_with("claude-mythos-5")
@@ -606,6 +607,7 @@ fn is_adaptive_thinking_model(model: &str) -> bool {
606607
model.starts_with("claude-opus-4-6")
607608
|| model.starts_with("claude-opus-4-7")
608609
|| model.starts_with("claude-opus-4-8")
610+
|| model.starts_with("claude-opus-5")
609611
// Sonnet 5.x (any patch/date suffix after "claude-sonnet-5").
610612
|| model.starts_with("claude-sonnet-5")
611613
// Sonnet 4.6 exactly (not Sonnet 4.5 or earlier — not in the adaptive table).

‎desktop/src/features/agents/ui/effortTable.fixture.json‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@
4141
"validValues": ["low", "medium", "high", "xhigh", "max"],
4242
"defaultValue": "high"
4343
},
44+
{
45+
"note": "Anthropic adaptive xhigh-capable: claude-opus-5",
46+
"provider": "anthropic",
47+
"model": "claude-opus-5",
48+
"validValues": ["low", "medium", "high", "xhigh", "max"],
49+
"defaultValue": "high"
50+
},
4451
{
4552
"note": "Anthropic adaptive xhigh-capable: claude-mythos-5",
4653
"provider": "anthropic",

0 commit comments

Comments
 (0)