From 8b65a31c7c4e786a27c71f1c906b8dfd05f0a7eb Mon Sep 17 00:00:00 2001 From: Jason Date: Thu, 16 Apr 2026 23:37:37 +0800 Subject: [PATCH] feat(claude): upgrade effort toggle from "high" to "max" Per Anthropic's effort parameter docs, "high" is the API default and setting effortLevel="high" is equivalent to omitting the field entirely. The toggle previously produced no effect. Claude Opus 4.6, Sonnet 4.6, and Opus 4.7 now support a "max" level that enables unconstrained reasoning. Rename the checkbox (effortHigh -> effortMax) and write effortLevel="max" when toggled on. Existing "high" values in user configs are left untouched. Updates zh/en/ja locales and user-manual entries accordingly. --- docs/user-manual/en/2-providers/2.1-add.md | 2 +- docs/user-manual/ja/2-providers/2.1-add.md | 2 +- docs/user-manual/zh/2-providers/2.1-add.md | 2 +- .../providers/forms/CommonConfigEditor.tsx | 14 +++++++------- src/i18n/locales/en.json | 2 +- src/i18n/locales/ja.json | 2 +- src/i18n/locales/zh.json | 2 +- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/docs/user-manual/en/2-providers/2.1-add.md b/docs/user-manual/en/2-providers/2.1-add.md index d8e2a4ad6..87e58f6ab 100644 --- a/docs/user-manual/en/2-providers/2.1-add.md +++ b/docs/user-manual/en/2-providers/2.1-add.md @@ -509,7 +509,7 @@ When editing Claude providers, a set of **quick toggles** is available above the | **Hide Attribution** | Clears commit/PR attribution metadata | Sets `attribution: {commit: "", pr: ""}` | | **Enable Teammates** | Enables the agent teams feature | Sets `env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1"` | | **Enable Tool Search** | Enables tool search functionality | Sets `env.ENABLE_TOOL_SEARCH = "true"` | -| **High Effort** | Sets effort level to high | Sets `effortLevel = "high"` | +| **Max Effort** | Sets effort level to max | Sets `effortLevel = "max"` | | **Disable Auto Upgrade** | Prevents Claude Code auto-updates | Sets `env.DISABLE_AUTOUPDATER = "1"` | When a toggle is unchecked, its corresponding config entry is removed entirely. Changes are reflected in the JSON editor in real-time. diff --git a/docs/user-manual/ja/2-providers/2.1-add.md b/docs/user-manual/ja/2-providers/2.1-add.md index 63bd9bf71..f2447eb85 100644 --- a/docs/user-manual/ja/2-providers/2.1-add.md +++ b/docs/user-manual/ja/2-providers/2.1-add.md @@ -509,7 +509,7 @@ Claude プロバイダーの編集時、JSON エディタの上部に **クイ | **帰属情報を非表示** | コミット/PR の帰属メタデータをクリア | `attribution: {commit: "", pr: ""}` を設定 | | **チームメイトを有効化** | エージェントチーム機能を有効化 | `env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1"` を設定 | | **ツール検索を有効化** | ツール検索機能を有効化 | `env.ENABLE_TOOL_SEARCH = "true"` を設定 | -| **高強度** | エフォートレベルを高に設定 | `effortLevel = "high"` を設定 | +| **最大強度思考** | エフォートレベルを max に設定 | `effortLevel = "max"` を設定 | | **自動アップグレードを無効化** | Claude Code の自動更新を防止 | `env.DISABLE_AUTOUPDATER = "1"` を設定 | トグルのチェックを外すと、対応する設定エントリが完全に削除されます。変更は JSON エディタにリアルタイムで反映されます。 diff --git a/docs/user-manual/zh/2-providers/2.1-add.md b/docs/user-manual/zh/2-providers/2.1-add.md index b44b6f0d4..d4d624990 100644 --- a/docs/user-manual/zh/2-providers/2.1-add.md +++ b/docs/user-manual/zh/2-providers/2.1-add.md @@ -509,7 +509,7 @@ v3.13.0 起新增的高级选项。默认情况下,CC Switch 会把配置的 ` | **隐藏署名** | 清除提交/PR 的署名元数据 | 设置 `attribution: {commit: "", pr: ""}` | | **启用 Teammates** | 启用 Agent 团队功能 | 设置 `env.CLAUDE_CODE_EXPERIMENTAL_AGENT_TEAMS = "1"` | | **启用工具搜索** | 启用工具搜索功能 | 设置 `env.ENABLE_TOOL_SEARCH = "true"` | -| **高效能模式** | 将 effort 级别设为 high | 设置 `effortLevel = "high"` | +| **最大强度思考** | 将 effort 级别设为 max | 设置 `effortLevel = "max"` | | **禁用自动更新** | 阻止 Claude Code 自动更新 | 设置 `env.DISABLE_AUTOUPDATER = "1"` | 取消勾选开关时,对应的配置项会被完全移除。更改会实时反映在 JSON 编辑器中。 diff --git a/src/components/providers/forms/CommonConfigEditor.tsx b/src/components/providers/forms/CommonConfigEditor.tsx index 2ec4bdff8..62b8aeb06 100644 --- a/src/components/providers/forms/CommonConfigEditor.tsx +++ b/src/components/providers/forms/CommonConfigEditor.tsx @@ -81,7 +81,7 @@ export function CommonConfigEditor({ enableToolSearch: config?.env?.ENABLE_TOOL_SEARCH === "true" || config?.env?.ENABLE_TOOL_SEARCH === "1", - effortHigh: config?.effortLevel === "high", + effortMax: config?.effortLevel === "max", disableAutoUpgrade: config?.env?.DISABLE_AUTOUPDATER === "1" || config?.env?.DISABLE_AUTOUPDATER === 1, @@ -91,7 +91,7 @@ export function CommonConfigEditor({ hideAttribution: false, teammates: false, enableToolSearch: false, - effortHigh: false, + effortMax: false, disableAutoUpgrade: false, }; } @@ -128,9 +128,9 @@ export function CommonConfigEditor({ if (Object.keys(config.env).length === 0) delete config.env; } break; - case "effortHigh": + case "effortMax": if (checked) { - config.effortLevel = "high"; + config.effortLevel = "max"; } else { delete config.effortLevel; } @@ -227,11 +227,11 @@ export function CommonConfigEditor({