From 8596a233b2373226a0307d5f80ec0954d5fa162f Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 6 Oct 2026 21:20:09 +0800 Subject: [PATCH] docs(release): add v4.0.3 release notes --- docs/release-notes/v4.0.3-en.md | 61 +++++++++++++++++++++++++++++++++ docs/release-notes/v4.0.3-ja.md | 61 +++++++++++++++++++++++++++++++++ docs/release-notes/v4.0.3-zh.md | 61 +++++++++++++++++++++++++++++++++ src/whats-new/4.0.3.json | 33 ++++++++++++++++++ 4 files changed, 216 insertions(+) create mode 100644 docs/release-notes/v4.0.3-en.md create mode 100644 docs/release-notes/v4.0.3-ja.md create mode 100644 docs/release-notes/v4.0.3-zh.md create mode 100644 src/whats-new/4.0.3.json diff --git a/docs/release-notes/v4.0.3-en.md b/docs/release-notes/v4.0.3-en.md new file mode 100644 index 000000000..10ad1c41d --- /dev/null +++ b/docs/release-notes/v4.0.3-en.md @@ -0,0 +1,61 @@ +# CC Switch v4.0.3 + +### The third fix release for the 4.0 preview + +This release fixes Claude Code still reasoning at full effort with thinking turned off after being mapped to GPT or Grok, and Skills imported with other apps checked never actually reaching those apps; Claude Desktop now works with OpenCode Go too. Claude Code's quick toggles gain "Disable Auto Mode Server Checks", and every toggle now comes with an explanation. MCP servers and prompts are edited on a full page that reminds you to save before leaving; "Backup & Restore" shows how much space all backups take; ChatGPT subscriptions show their Codex Credits balance. New presets: OpenCode Zen and MoArk. For everything new in 4.0, see the [v4.0 release notes](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-en.md). + +> **Preview builds do not update automatically.** In-app updates follow stable releases only. If you installed any version from 4.0.0 to 4.0.2, download 4.0.3 from this page and install it manually. + +--- + +## New + +**New Claude Code quick toggle: Disable Auto Mode Server Checks.** Starting with Claude Code 2.1.281, auto mode first asks for an official server-side check, which cannot get through a third-party gateway or local routing, so every session stopped once with a "not eligible" notice. The Claude provider editor now has "Disable Auto Mode Server Checks"; with it checked, the check runs locally and the notice goes away. It is checked by default for new third-party providers and left unchecked for official and cloud providers; do not check it for official endpoints either. Also, a `CLAUDE_CODE_AUTO_MODE_SERVER` written in a provider's config used to be left out of `settings.json` on switch; it now switches along with the provider. + +**Every quick toggle is explained.** Each quick toggle above the Claude config editor now has a "?" after it, saying in one sentence what it does, when to use it, and whether it is a global setting or follows the provider. + +**MCP servers and prompts are edited on a full page, with a reminder to save before leaving.** Editing MCP servers and prompts no longer opens a dialog; a full page opens in the content area, and the sidebar and the window drag area keep working. The provider edit page is no longer width-limited either and grows with the window. With unsaved changes, clicking the sidebar, pressing ⌘, or switching away from the tray asks first; Back, Cancel and Esc still close right away. + +**"Backup & Restore" shows every backup.** This section used to list only database backups, while the other backups under `~/.cc-switch` quietly kept growing; the Codex session migration backups alone can take several GB. Below the database list there is now an expandable "Other Backups" section listing Skill uninstall backups, Codex session migration backups, config first-write backups, Hermes and OpenClaw config backups, files left by older versions and more, each with its path, size and item count. You can open each one in the file manager or delete a whole category. Before deleting, it tells you what you lose: for example, after deleting the Codex session unify migration backups, "Restore backup" is no longer available when you turn that switch off. + +**Codex Credits balance for ChatGPT subscriptions.** When you have a Credits balance, the expanded quota details and the Accounts page gain a "Credits" row showing the balance and its US dollar value at API prices (1 Credit is about $0.04). Credits are spent only after your limits run out, so the provider card normally does not show them; they appear once one of the limits is used up. + +**OpenCode 2.0's new provider config.** OpenCode 2.0 supports providers written in a new format under `providers`. CC Switch used to understand only the old `provider`, so providers in the new format did not show up, and writes landed where OpenCode does not read them. Both formats can now be read and written; providers in the new format are edited in the JSON editor, comments are kept on save, and format errors point to the exact field. + +**Success Rate and Speed on the Models tab of Usage.** Like the Providers tab, model statistics now have Success Rate and Speed columns; the "Average Cost" column is gone, and you can see it by hovering over the cost. + +**Other:** +- The installed Skills list has a select-all checkbox in its header, which applies to the rows the current search and filters show. +- Switching providers and entering or leaving Routing or Aggregation mode now logs where it switched from and to and how it went, which makes "I clicked switch and nothing happened" easier to track down. +- New presets: OpenCode Zen (Claude Code and Codex; shares one row with OpenCode Go) and MoArk (Claude Code, Codex, Pi, OpenCode, OpenClaw). + +## Fixes + +- **With Claude Code mapped to GPT or Grok, turning thinking off still left it reasoning at full effort.** With thinking off, Claude Code still sends a `high` reasoning effort, so after conversion to the OpenAI format the upstream reasoned at full effort anyway. Turning thinking off now lowers the effort to `low`, and levels the target model does not support are moved to one it accepts: GPT-5.x pro, for example, does not accept `low`, so `/effort low` used to fail with a 400. Models whose thinking cannot be turned off, such as Fable and Opus 5.5, keep thinking after mapping as well. +- **Other apps checked when importing a Skill never actually got it.** Only the checked state was recorded: the UI showed the Skill as enabled, but that app's Skills directory had no files. Importing now copies the Skill over right away; apps where the copy fails are not marked enabled and are listed in the import result. +- **Claude Desktop with OpenCode Go failed with `400 MissingSessionID`.** OpenCode Go requires a session ID on every request, and Claude Desktop does not send one. When a request to OpenCode is missing it, local routing now adds one, keeping the same ID throughout a conversation. +- **Tool calls went missing from some upstreams' streaming responses.** Some upstreams mix LF and CRLF line breaks in their streaming responses, which used to split events in the wrong places, so Claude Code never received tool calls from OpenAI Chat upstreams. +- **The provider and model tables in Usage left out cache tokens.** The tables used to add up only new input and output, so with a high cache hit rate the rows summed to a small fraction of the total at the top. They now match the total token count at the top. +- **Usage imported without routing showed a placeholder provider name.** It used to show a placeholder like "Claude (Session)"; it now shows "Claude Code · Session logs", and hovering explains why the provider cannot be told apart. In the request log and request details, where the app is already shown next to it, only "Session logs" appears. +- **On a slow disk, writing usage records slowed down the routing service.** Usage records are now written on a separate thread and no longer hold up other requests coming in at the same time. +- **Charts and icons jittered when switching tabs on the Usage page on macOS.** +- **The Xiaomi MiMo presets for Hermes and OpenClaw defaulted to a model without image support**; they now default to `mimo-v2.6-pro`, like the other apps. +- **The "Get API Key" link of the OpenCode Go presets opened a page saying the referral program had ended**; it now links without the referral code. + +## Polish + +- **Claude's "Teammates Mode" and "Max Effort Thinking" quick toggles are removed.** Every Claude Code session now has team features built in, so the Teammates toggle only controlled split-pane display; the max effort toggle locked every session to the most expensive level and stopped `/effort` from working. Use `/effort max` in a session when you need it. If these two variables are already in your config, they are not removed. + +## Upgrade Notes + +**The database schema is unchanged**, still at 20, so going back to 4.0.2 is fine. + +**Preset changes only affect newly added providers.** Existing Claude providers do not get "Disable Auto Mode Server Checks" checked automatically; check it in the editor if you need it. Existing Hermes and OpenClaw MiMo providers keep their model as well. + +--- + +## Thanks + +Thanks to [@SailingLoong](https://github.com/SailingLoong) (auto mode setting following the provider), [@Owlbay](https://github.com/Owlbay) (full-page editing with the unsaved-changes reminder, the MiMo presets), [@DEAN-Cherry](https://github.com/DEAN-Cherry) (OpenCode 2.0's new provider config), [@lcgash](https://github.com/lcgash) (the MoArk presets), [@allenxu09](https://github.com/allenxu09) (switch logging, Skill select-all, the Usage page jitter), [@Chris-Xie369](https://github.com/Chris-Xie369) (the OpenCode Go session ID), [@ggbdpq](https://github.com/ggbdpq) (usage writes no longer holding up routing), [@fisHarly0](https://github.com/fisHarly0) (streaming responses with mixed line breaks) and [@minc-nice-100](https://github.com/minc-nice-100) (Windows test isolation) for their contributions, and to [@shangchaovo](https://github.com/shangchaovo), [@gsmchen](https://github.com/gsmchen), [@winter-maple](https://github.com/winter-maple), [@guangzh3n](https://github.com/guangzh3n), [@AltCtrlFn](https://github.com/AltCtrlFn), [@R-Tsubasa](https://github.com/R-Tsubasa), [@Lingbou](https://github.com/Lingbou), [@Enough1122](https://github.com/Enough1122) and [@IAld010](https://github.com/IAld010) for reporting issues and making suggestions. + +For the full technical details, see the [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md). diff --git a/docs/release-notes/v4.0.3-ja.md b/docs/release-notes/v4.0.3-ja.md new file mode 100644 index 000000000..4e341020c --- /dev/null +++ b/docs/release-notes/v4.0.3-ja.md @@ -0,0 +1,61 @@ +# CC Switch v4.0.3 + +### 4.0 プレビュー版の 3 つ目の修正リリース + +このバージョンでは、Claude Code を GPT や Grok にマッピングしたときに思考をオフにしても全力で推論してしまう問題と、Skill のインポート時にチェックした他のアプリに実際には Skill が届かない問題を修正しました。Claude Desktop でも OpenCode Go を問題なく使えるようになりました。Claude Code のクイックトグルに「auto mode のサーバー側チェックを無効化」が加わり、すべてのトグルに説明が付きました。MCP とプロンプトはページ全体で編集するようになり、離れる前に保存を促します。「バックアップと復元」ではすべてのバックアップが使っている容量を確認でき、ChatGPT サブスクリプションでは Codex Credits の残高が表示されます。プリセットに OpenCode Zen と MoArk を追加しました。4.0 の更新内容の全体は [v4.0 リリースノート](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-ja.md) をご覧ください。 + +> **プレビュー版は自動更新されません。** アプリ内の更新は正式版のみが対象です。4.0.0〜4.0.2 をインストール済みの場合は、このページから 4.0.3 をダウンロードして手動でインストールしてください。 + +--- + +## 新機能 + +**Claude Code のクイックトグル:auto mode のサーバー側チェックを無効化。** Claude Code 2.1.281 以降、auto mode はまず公式のサーバー側チェックを呼び出しますが、サードパーティのゲートウェイやローカルルーティングを経由するとチェックできず、セッションごとに一度「条件を満たしていない」という案内で止まっていました。Claude のプロバイダーエディターに「auto mode のサーバー側チェックを無効化」を追加しました。チェックを入れるとローカルのチェックだけを使い、この案内は出なくなります。新しく作成するサードパーティのプロバイダーではデフォルトでオン、公式やクラウドベンダーのプロバイダーではオフです。公式のエンドポイントでもオンにしないでください。また、これまでプロバイダーの設定に書いた `CLAUDE_CODE_AUTO_MODE_SERVER` は切り替え時に `settings.json` へ書き込まれていませんでしたが、プロバイダーと一緒に切り替わるようになりました。 + +**すべてのクイックトグルに説明を追加。** Claude の設定エディター上部にある各クイックトグルの後ろに「?」を付け、そのトグルが何をするのか、いつ使うのか、グローバル設定なのかプロバイダーごとに切り替わるのかを一文で説明します。 + +**MCP とプロンプトをページ全体で編集し、離れる前に保存を促すように。** MCP サーバーとプロンプトの編集はダイアログではなく、コンテンツ領域にページ全体で開くようになりました。サイドバーとウィンドウのドラッグ領域はそのまま使えます。プロバイダーの編集ページも幅の制限がなくなり、ウィンドウに合わせて広がります。未保存の変更があるときにサイドバーをクリックしたり、⌘, を押したり、トレイから切り替えたりすると、先に確認します。戻る、キャンセル、Esc はこれまでどおりそのまま閉じます。 + +**「バックアップと復元」ですべてのバックアップを確認できるように。** これまでここにはデータベースのバックアップしか表示されず、`~/.cc-switch` にある他のバックアップは気づかないうちに大きくなっていました。Codex セッションの移行バックアップは数 GB になることもあります。データベースの一覧の下に展開できる「その他のバックアップ」を追加し、Skill アンインストール時のバックアップ、Codex セッションの移行バックアップ、設定ファイル初回書き込みバックアップ、Hermes と OpenClaw の設定のバックアップ、旧バージョンが残したファイルなどを一覧にしました。各項目にパス、サイズ、件数を表示し、ファイルマネージャーで開くことも、種類ごとまとめて削除することもできます。削除する前に何が失われるかを説明します。たとえば Codex セッション統合の移行バックアップを削除すると、「Codex セッション履歴を統一」をオフにするときに「バックアップから復元」ができなくなります。 + +**ChatGPT サブスクリプションの Codex Credits 残高を表示。** Credits の残高があるときは、展開した上限の詳細と「アカウント」画面に「Credits」の行が加わり、残高と API 価格で換算したドル額(1 Credit は約 0.04 ドル)を表示します。Credits は上限に達した後にしか消費されないため、プロバイダーカードには普段は表示されず、いずれかの上限に達したときだけ表示されます。 + +**OpenCode 2.0 の新しいプロバイダー設定に対応。** OpenCode 2.0 では `providers` に新しい形式でプロバイダーを書けます。これまで CC Switch は従来の `provider` しか認識しなかったため、新しい形式のプロバイダーが見えず、書き込みも OpenCode が読まない場所に入っていました。現在はどちらの形式も読み書きでき、新しい形式のプロバイダーは JSON エディターで編集します。保存時にはコメントを残し、形式に誤りがあればどのフィールドかを具体的に示します。 + +**使用量の「モデル」タブに成功率と速度を追加。** 「プロバイダー」タブと同じく、モデルの統計にも「成功率」と「速度」の 2 列が加わりました。「平均コスト」列はなくなり、コストにマウスを重ねると確認できます。 + +**その他:** +- インストール済み Skill 一覧のヘッダーに全選択のチェックボックスを追加しました。現在の検索と絞り込みで表示されている行が対象です。 +- プロバイダーの切り替えや、ルーティング・集約モードへの出入りのたびに、どこからどこへ切り替えたか、結果はどうだったかをログに記録するようになりました。「切り替えを押しても何も起きない」問題を調べやすくなります。 +- 新しいプリセット:OpenCode Zen(Claude Code、Codex。OpenCode Go と 1 行にまとめています)、MoArk(Claude Code、Codex、Pi、OpenCode、OpenClaw)。 + +## 修正 + +- **Claude Code を GPT や Grok にマッピングすると、思考をオフにしても全力で推論していた問題。** Claude Code は思考をオフにしても `high` の推論強度を送るため、OpenAI 形式に変換した後も上流は全力で推論していました。現在は思考をオフにすると推論強度を `low` に下げます。変換先のモデルが対応していないレベルも、そのモデルが受け付けるレベルに自動で調整します。たとえば GPT-5.x pro は `low` を受け付けないため、これまでは `/effort low` を使うとそのまま 400 エラーになっていました。Fable や Opus 5.5 のように思考をオフにできないモデルは、マッピング後も思考を維持します。 +- **Skill のインポート時にチェックした他のアプリに、実際にはその Skill が届いていなかった問題。** これまではチェック状態を記録するだけで、画面上は有効と表示されているのに、対応するアプリの Skills ディレクトリにはファイルがありませんでした。現在はインポート時に直接コピーします。コピーに失敗したアプリは有効としてマークせず、インポート結果に表示します。 +- **Claude Desktop で OpenCode Go を使うと `400 MissingSessionID` になっていた問題。** OpenCode Go はリクエストごとにセッション ID を要求しますが、Claude Desktop は送りません。現在は、OpenCode へのリクエストにセッション ID がない場合、ローカルルーティングが自動で補い、同じ会話では常に同じ ID を使います。 +- **一部の上流のストリーミング応答でツール呼び出しが失われていた問題。** ストリーミング応答の中で LF と CRLF の改行を混在させる上流があり、これまではイベントを誤って区切っていたため、Claude Code が OpenAI Chat 上流のツール呼び出しを受け取れませんでした。 +- **使用量のプロバイダー表とモデル表がキャッシュ token を数えていなかった問題。** これまでの表は新規入力と出力しか合計しておらず、キャッシュヒット率が高いと、各行の合計が上部の総数のごく一部にしかなりませんでした。現在は上部の総 token 数と一致します。 +- **ルーティングをオンにしていないときに取り込んだ使用量で、プロバイダー名が英語で表示されていた問題。** これまでは「Claude (Session)」のような英語の仮の名前が表示されていましたが、現在は「Claude Code · セッションログ」と表示され、マウスを重ねるとプロバイダーを区別できない理由が表示されます。リクエストログとリクエストの詳細では、すぐ横にアプリが書かれているため「セッションログ」とだけ表示します。 +- **ディスクが遅いと、使用量の記録の書き込みがルーティングサービスを遅くしていた問題。** 使用量の記録は別スレッドで書き込むようになり、同時に届いた他のリクエストを止めなくなりました。 +- **macOS で使用量ページのタブを切り替えると、グラフとアイコンががたついていた問題。** +- **Hermes と OpenClaw の Xiaomi MiMo プリセットが、デフォルトで画像に対応しないモデルを使っていた問題。** 現在は他のアプリと同じく、デフォルトで `mimo-v2.6-pro` を使います。 +- **OpenCode Go プリセットの「API Key を取得」リンクを開くと、紹介キャンペーンが終了したという案内が表示されていた問題。** 紹介コードの付かないリンクに変更しました。 + +## 使い心地の改善 + +- **Claude の「Teammates モード」と「最大強度思考」の 2 つのクイックトグルを削除しました。** 現在はどの Claude Code セッションにもチーム機能が組み込まれており、Teammates のトグルに残っていたのは分割表示の役割だけでした。最大強度思考のトグルは、すべてのセッションを最も高価なレベルに固定し、`/effort` も効かなくしてしまいます。必要なときはセッション内で `/effort max` を使ってください。設定にすでに書かれているこの 2 つの変数は削除されません。 + +## アップグレードに関する注意 + +**データベースの構造は変わっていません。** バージョンは 20 のままなので、4.0.2 に戻しても問題ありません。 + +**プリセットの変更は、新しく追加するプロバイダーにだけ反映されます。** 既存の Claude プロバイダーに「auto mode のサーバー側チェックを無効化」が自動で付くことはありません。必要な場合はエディターでチェックを入れてください。既存の Hermes と OpenClaw の MiMo プロバイダーのモデルも変更されません。 + +--- + +## 謝辞 + +[@SailingLoong](https://github.com/SailingLoong)(auto mode の設定をプロバイダーと一緒に切り替え)、[@Owlbay](https://github.com/Owlbay)(ページ全体での編集と未保存の確認、MiMo プリセット)、[@DEAN-Cherry](https://github.com/DEAN-Cherry)(OpenCode 2.0 の新しいプロバイダー設定)、[@lcgash](https://github.com/lcgash)(MoArk プリセット)、[@allenxu09](https://github.com/allenxu09)(切り替えログ、Skill の全選択、使用量ページのがたつき)、[@Chris-Xie369](https://github.com/Chris-Xie369)(OpenCode Go のセッション ID)、[@ggbdpq](https://github.com/ggbdpq)(使用量の書き込みでルーティングが止まらないように)、[@fisHarly0](https://github.com/fisHarly0)(改行が混在したストリーミング応答)、[@minc-nice-100](https://github.com/minc-nice-100)(Windows のテスト分離)の貢献に感謝します。また、問題の報告や提案をしてくださった [@shangchaovo](https://github.com/shangchaovo)、[@gsmchen](https://github.com/gsmchen)、[@winter-maple](https://github.com/winter-maple)、[@guangzh3n](https://github.com/guangzh3n)、[@AltCtrlFn](https://github.com/AltCtrlFn)、[@R-Tsubasa](https://github.com/R-Tsubasa)、[@Lingbou](https://github.com/Lingbou)、[@Enough1122](https://github.com/Enough1122)、[@IAld010](https://github.com/IAld010) にも感謝します。 + +技術的な詳細は [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) をご覧ください。 diff --git a/docs/release-notes/v4.0.3-zh.md b/docs/release-notes/v4.0.3-zh.md new file mode 100644 index 000000000..65c0b0b77 --- /dev/null +++ b/docs/release-notes/v4.0.3-zh.md @@ -0,0 +1,61 @@ +# CC Switch v4.0.3 + +### 4.0 预览版的第三个修复版本 + +这个版本修复了 Claude Code 映射到 GPT、Grok 后关了思考仍然全力推理,以及导入 Skill 时勾选的其他应用实际收不到的问题,Claude Desktop 也能正常用 OpenCode Go 了。Claude Code 的快捷开关新增「关闭 auto mode 服务端检查」,每个开关都配了说明。MCP 和提示词改成整页编辑,离开前会提醒保存;「备份与恢复」里能看到所有备份占了多少空间;ChatGPT 订阅会显示 Codex Credits 余额。预设新增 OpenCode Zen 和模力方舟。4.0 完整的更新内容请见 [v4.0 发布说明](https://github.com/farion1231/cc-switch/blob/main/docs/release-notes/v4.0.0-zh.md)。 + +> **预览版不会自动更新。** 应用内更新只跟随正式版,已经装了 4.0.0 到 4.0.2 的话,请在本页手动下载 4.0.3 安装。 + +--- + +## 新增 + +**Claude Code 快捷开关:关闭 auto mode 服务端检查。** Claude Code 2.1.281 起,auto mode 会先请求官方的服务端检查,经过第三方网关或本地路由时检查不了,每个会话都会先停下来提示一次「不符合条件」。现在 Claude 供应商编辑器里多了「关闭 auto mode 服务端检查」,勾选后直接用本机检查,不再提示。新建第三方供应商时默认勾上,官方和云厂商的供应商不勾,官方端点也不要勾。另外,以前供应商配置里写的 `CLAUDE_CODE_AUTO_MODE_SERVER` 切换时不会写进 `settings.json`,现在会跟着供应商切换。 + +**每个快捷开关都有说明。** Claude 配置编辑器上方的每个快捷开关后面都加了「?」,用一句话说明它做什么、什么时候用,以及是全局设置还是跟着供应商切换。 + +**MCP 和提示词改成整页编辑,离开前提醒保存。** 编辑 MCP 服务器和提示词不再是弹窗,而是在内容区打开整页,侧栏和窗口拖动区域照常可用;供应商编辑页也不再限制宽度,跟着窗口变宽。有未保存的修改时,点侧栏、按 ⌘, 或从托盘切走都会先问一句;返回、取消和 Esc 照旧直接关闭。 + +**「备份与恢复」里能看到所有备份。** 以前这里只列数据库备份,`~/.cc-switch` 下其他备份一直在悄悄变大,Codex 会话迁移的备份就可能有好几 GB。现在数据库列表下方有一个可以展开的「其他备份」,列出 Skill 卸载备份、Codex 会话迁移备份、配置文件首次写入备份、Hermes 和 OpenClaw 的配置备份、旧版本遗留文件等,每项显示路径、大小和数量,可以在文件管理器里打开,也可以整类删除。删除前会说明删掉会失去什么,比如删了 Codex 会话统一迁移备份,关闭那个开关时就不能再「恢复备份」。 + +**显示 ChatGPT 订阅的 Codex Credits 余额。** 有 Credits 余额时,展开的额度详情和「授权中心」里会多一行「Credits」,显示余额和按 API 价折算的美元数(1 Credit 约 0.04 美元)。Credits 只在额度用完后才扣,所以供应商卡片平时不显示,等某个额度用完才会出现。 + +**OpenCode 2.0 的新版供应商配置。** OpenCode 2.0 支持在 `providers` 里写新格式的供应商,以前 CC Switch 只认旧的 `provider`,新格式的供应商看不到,写入也落在 OpenCode 不读的地方。现在两种格式都能读写,新格式的供应商在 JSON 编辑器里编辑,保存时会保留注释,格式有误会指出具体哪个字段。 + +**用量统计的模型标签页加上成功率和速度。** 和供应商标签页一样,模型统计现在也有成功率和速度两列;「平均成本」列去掉了,鼠标悬停在成本上可以看到。 + +**其他:** +- 已安装 Skill 列表的表头加了全选框,作用于当前搜索和筛选出来的这些行。 +- 切换供应商和进出路由、聚合模式时,日志里会写明从哪切到哪、结果如何,排查「点了切换没反应」更方便。 +- 新增预设:OpenCode Zen(Claude Code、Codex,和 OpenCode Go 合成一行)、模力方舟(Claude Code、Codex、Pi、OpenCode、OpenClaw)。 + +## 修复 + +- **Claude Code 映射到 GPT、Grok 后,关了思考仍然全力推理。** Claude Code 关闭思考时仍会带上 `high` 的推理强度,转换成 OpenAI 格式后上游照样全力推理。现在关闭思考时推理强度降到 `low`;目标模型不支持的档位也会自动调到它能接受的档位,比如 GPT-5.x pro 不接受 `low`,以前用 `/effort low` 会直接报 400。Fable、Opus 5.5 这类没法关思考的模型,映射之后也会保持思考。 +- **导入 Skill 时勾选的其他应用,实际收不到这个 Skill。** 以前只记下了勾选状态,界面显示已启用,对应应用的 Skills 目录里却没有文件。现在导入时会直接复制过去;复制失败的应用不会标成已启用,并在导入结果里列出来。 +- **Claude Desktop 用 OpenCode Go 时报 `400 MissingSessionID`。** OpenCode Go 要求每个请求带会话标识,Claude Desktop 不带。现在发往 OpenCode 的请求缺少会话标识时,本地路由会自动补上,同一段对话始终用同一个标识。 +- **部分上游的流式响应里工具调用丢失。** 有的上游在流式响应里混用 LF 和 CRLF 换行,以前会切错事件,Claude Code 收不到 OpenAI Chat 上游的工具调用。 +- **用量统计的供应商和模型表格没算缓存 token。** 以前表格只加了新输入和输出,缓存命中率高时,各行加起来只有顶部总数的一小部分。现在和顶部的总 token 数对得上。 +- **没开路由时导入的用量,供应商名显示成英文。** 以前显示「Claude (Session)」这样的英文占位名,现在显示「Claude Code · 会话日志」,悬停会说明为什么分不出具体供应商;请求日志和请求详情里旁边已经写了应用,就只显示「会话日志」。 +- **硬盘慢时,写用量记录会拖慢路由服务。** 写入用量记录改到单独的线程,不再卡住同时进来的其他请求。 +- **macOS 上用量页切换标签时图表和图标抖动。** +- **Hermes、OpenClaw 的小米 MiMo 预设默认用了不支持图片的模型**,现在和其他应用一样默认 `mimo-v2.6-pro`。 +- **OpenCode Go 预设的「获取 API Key」链接打开后显示推荐活动已结束的提示**,现在改为不带推荐码的链接。 + +## 体验改进 + +- **去掉了 Claude 的「Teammates」和「最大强度」两个快捷开关。** 现在每个 Claude Code 会话都自带团队功能,Teammates 开关只剩分屏显示的作用;最大强度开关会把每个会话都锁在最贵的档位,`/effort` 也会失效。需要时可以在会话里用 `/effort max`。已经写在配置里的这两个变量不会被删掉。 + +## 升级说明 + +**数据库结构没有变化**,仍然是 20,装回 4.0.2 没有问题。 + +**预设的改动只影响新添加的供应商。** 已有的 Claude 供应商不会自动加上「关闭 auto mode 服务端检查」,需要的话在编辑器里勾选;已有的 Hermes、OpenClaw MiMo 供应商也不会改模型。 + +--- + +## 致谢 + +感谢 [@SailingLoong](https://github.com/SailingLoong)(auto mode 设置跟着供应商切换)、[@Owlbay](https://github.com/Owlbay)(整页编辑和未保存提醒、MiMo 预设)、[@DEAN-Cherry](https://github.com/DEAN-Cherry)(OpenCode 2.0 新版供应商配置)、[@lcgash](https://github.com/lcgash)(模力方舟预设)、[@allenxu09](https://github.com/allenxu09)(切换日志、Skill 全选、用量页抖动)、[@Chris-Xie369](https://github.com/Chris-Xie369)(OpenCode Go 会话标识)、[@ggbdpq](https://github.com/ggbdpq)(用量写入不再卡住路由)、[@fisHarly0](https://github.com/fisHarly0)(混合换行的流式响应)、[@minc-nice-100](https://github.com/minc-nice-100)(Windows 测试隔离)的贡献,感谢 [@shangchaovo](https://github.com/shangchaovo)、[@gsmchen](https://github.com/gsmchen)、[@winter-maple](https://github.com/winter-maple)、[@guangzh3n](https://github.com/guangzh3n)、[@AltCtrlFn](https://github.com/AltCtrlFn)、[@R-Tsubasa](https://github.com/R-Tsubasa)、[@Lingbou](https://github.com/Lingbou)、[@Enough1122](https://github.com/Enough1122)、[@IAld010](https://github.com/IAld010) 报告问题和提出建议。 + +完整的技术细节请见 [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md)。 diff --git a/src/whats-new/4.0.3.json b/src/whats-new/4.0.3.json new file mode 100644 index 000000000..94737f877 --- /dev/null +++ b/src/whats-new/4.0.3.json @@ -0,0 +1,33 @@ +{ + "version": "4.0.3", + "items": [ + { + "type": "fix", + "zh": "修复 Claude Code 映射到 GPT、Grok 后关了思考仍全力推理", + "zh-TW": "修復 Claude Code 對應到 GPT、Grok 後關了思考仍全力推理", + "en": "Fixed Claude Code mapped to GPT or Grok still reasoning at full strength with thinking off", + "ja": "GPT・Grok にマッピングした Claude Code が思考オフでも全力で推論する問題を修正" + }, + { + "type": "new", + "zh": "新增快捷开关:经网关使用时关闭 auto mode 服务端检查", + "zh-TW": "新增快捷開關:經閘道使用時停用 auto mode 伺服器端檢查", + "en": "New quick toggle to skip Claude Code's auto mode server check behind a gateway", + "ja": "ゲートウェイ経由時に auto mode のサーバー側チェックを無効にするスイッチを追加" + }, + { + "type": "fix", + "zh": "修复导入 Skill 时勾选的其他应用实际收不到", + "zh-TW": "修復匯入 Skill 時勾選的其他應用實際收不到", + "en": "Fixed imported skills not reaching the other apps ticked in the import dialog", + "ja": "Skill のインポート時に選んだ他のアプリへ実際には配置されない問題を修正" + }, + { + "type": "new", + "zh": "「备份与恢复」可查看并清理所有备份占用的空间", + "zh-TW": "「備份與還原」可查看並清理所有備份佔用的空間", + "en": "Backup & Restore now shows how much space every backup takes, and can clean it up", + "ja": "「バックアップと復元」ですべてのバックアップの容量を確認・削除できるように" + } + ] +}