From a9ab40bd6edb9ac0c81dc06db6acfa49eeca142d Mon Sep 17 00:00:00 2001 From: jnjpng Date: Tue, 23 Dec 2025 12:40:46 -0800 Subject: [PATCH] fix: update default model settings for claude max pro anthropic models (#369) --- src/cli/App.tsx | 4 +++- src/models.json | 43 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) diff --git a/src/cli/App.tsx b/src/cli/App.tsx index c23021e..06d72db 100644 --- a/src/cli/App.tsx +++ b/src/cli/App.tsx @@ -5000,7 +5000,9 @@ Plan file path: ${planFilePath}`; const { updateAgentLLMConfig } = await import( "../agent/modify" ); - await updateAgentLLMConfig(agentId, modelHandle); + const { getModelUpdateArgs } = await import("../agent/model"); + const updateArgs = getModelUpdateArgs(modelHandle); + await updateAgentLLMConfig(agentId, modelHandle, updateArgs); // Update current model display setCurrentModelId(modelHandle); }} diff --git a/src/models.json b/src/models.json index a55460a..fc17c06 100644 --- a/src/models.json +++ b/src/models.json @@ -46,6 +46,49 @@ "max_output_tokens": 64000 } }, + { + "id": "sonnet-4.5-pro-max", + "handle": "claude-pro-max/claude-sonnet-4-5-20250929", + "label": "Claude Sonnet 4.5 (Pro/Max)", + "description": "Sonnet 4.5 via Claude Pro/Max Plan", + "updateArgs": { + "context_window": 180000, + "max_output_tokens": 64000, + "max_reasoning_tokens": 31999 + } + }, + { + "id": "sonnet-4.5-no-reasoning-pro-max", + "handle": "claude-pro-max/claude-sonnet-4-5-20250929", + "label": "Claude Sonnet 4.5 (Pro/Max, no reasoning)", + "description": "Sonnet 4.5 via Claude Pro/Max Plan with reasoning disabled", + "updateArgs": { + "enable_reasoner": false, + "context_window": 180000, + "max_output_tokens": 64000 + } + }, + { + "id": "opus-pro-max", + "handle": "claude-pro-max/claude-opus-4-5-20251101", + "label": "Claude Opus 4.5 (Pro/Max)", + "description": "Opus 4.5 via Claude Pro/Max Plan", + "updateArgs": { + "context_window": 180000, + "max_output_tokens": 64000, + "max_reasoning_tokens": 31999 + } + }, + { + "id": "haiku-pro-max", + "handle": "claude-pro-max/claude-haiku-4-5-20251001", + "label": "Claude Haiku 4.5 (Pro/Max)", + "description": "Haiku 4.5 via Claude Pro/Max Plan", + "updateArgs": { + "context_window": 180000, + "max_output_tokens": 64000 + } + }, { "id": "gpt-5-codex", "handle": "openai/gpt-5-codex",