A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io
Rust ai-toolsclaude-codecodexdeepseek-harnessdesktop-appgrokgrokbuildhermeskimi-codemcpopen-sourceopencodepiprovider-managementrustskillsskills-managementtauriwsl-support
docs(release): add v4.0.47 release notes
Jason95d4ce7bfdd1
diff --git a/docs/release-notes/v4.0.47-en.md b/docs/release-notes/v4.0.47-en.mdnew file mode 100644index 000000000..00a0c6cef--- /dev/null+++ b/docs/release-notes/v4.0.47-en.md@@ -0,0 +1,105 @@+# CC Switch v4.0.47++This release adds encryption to cloud sync: once you fill in an encryption key, WebDAV and S3 sync data is encrypted on this computer before upload, the storage provider can't see the API Keys inside, and a device with a different key won't overwrite the cloud data by mistake. In the Usage heatmap, click a day to see that day's totals and hourly trend right in place, and hold Shift to select a range of consecutive dates. Accounts no longer automatically adds logins you never added. Antigravity's third-party models can read images on the Gemini native protocol, and usage from the CodeBuddy IDE plugins can now be imported.++Fixes include: closing the terminal still waiting until the timeout when adding an Antigravity account on Windows, no quota shown when only Antigravity Desktop is installed, requests from managed official accounts failing after Codex CLI 0.172 refreshed its login, a `codex login --with-api-key` login being deleted on the first switch to a third-party provider, Aggregation mode dropping Codex session request headers, Claude Code's Open Terminal failing on Windows when the provider ID contains Chinese characters, Claude Code on the stable channel always offering an update, models added while editing OpenClaw not being selectable, OpenCode OMO state going out of sync after a failed write, and the macOS context menu always being in English.++---++## New++### Cloud sync encryption++([#10152](https://github.com/farion1231/cc-switch/pull/10152))++WebDAV and S3 sync in Settings now have a "Cloud Data Encryption Key". Once you fill it in, the uploaded database and Skills archive are first encrypted on this computer with AES-256-GCM, and the cloud stores only ciphertext; downloads are decrypted with the same key.++- **Fill in the same key on every device**: the key is stored only on this computer and isn't synced; if you forget it, the cloud data can't be decrypted, and CC Switch can't recover it.+- **No accidental overwrites**: when the cloud data is encrypted, a device with a different key can't upload, and a device without a key is asked to fill one in first when downloading. Overwriting encrypted cloud data with plain text is never done by auto sync, and a manual upload needs you to tick a confirmation.+- Left empty, data is uploaded in plain text as before, and devices on older versions can still read it.++### Usage heatmap details in place++([#9994](https://github.com/farion1231/cc-switch/pull/9994))++Click a day in the Usage heatmap and that day's tokens, requests, cost, cache hit rate and hourly trend chart expand below it, with no need to change the date filter. Shift+click another day to select the consecutive dates in between and see that range's totals and daily trend; "Apply to filter" syncs the range to the filter at the top of the page, and the request logs and detail tables below follow it.++### Antigravity third-party models read images++(see [#10219](https://github.com/farion1231/cc-switch/issues/10219))++agy only lets gateway models whose ID contains gemini, claude or gpt read images; other models (such as DeepSeek or Kimi) fail with "not supported by the current model" when reading an image. "More options" for each model in the Antigravity form now has "Supports image input": turn it on if the upstream model can see images, and it is turned on from models.dev when you pick a model from the list.++- It only takes effect on the Gemini native protocol: on the OpenAI-compatible protocol agy doesn't send images upstream, so the switch is grayed out.+- In Routing and Aggregation modes the Gemini native protocol doesn't write the model list, so the switch has no effect there for now either.++### Usage from the CodeBuddy IDE plugins++(see [#10011](https://github.com/farion1231/cc-switch/issues/10011))++Usage from the CodeBuddy plugins for JetBrains and VS Code and from the CodeBuddy IDE is now imported into Usage, once per completed request, with cache reads and writes recorded separately. CodeBuddy's credit is points, not dollars, so it isn't counted as cost.++### Presets++Codex adds Gemini (Google's official OpenAI-compatible endpoint, [#9822](https://github.com/farion1231/cc-switch/pull/9822)); TeleAI is renamed XingChenAGI.++---++## Changes++### Accounts no longer adds logins automatically++([#10140](https://github.com/farion1231/cc-switch/pull/10140), [#10153](https://github.com/farion1231/cc-switch/pull/10153))++Accounts lists only the accounts you add yourself. Opening Accounts used to add the accounts signed in to Antigravity and WorkBuddy to the list automatically; now their names are only shown in a notice, and they go in when you click "Import current account" (WorkBuddy: "Add"). The official card's form shows this notice too.++A login that is displaced when switching or adding accounts and hasn't been added yet is stashed on this computer by CC Switch, so it isn't lost, and it isn't added to the list automatically either; when you add that account later, the stashed copy is deleted. The same applies when Claude Code switches to an official card bound to another account. WorkBuddy's "Sign in to another account" now waits for you to finish signing in and adds the new account automatically.++### The Skills page has three tabs++([#10050](https://github.com/farion1231/cc-switch/pull/10050))++Like the Plugins page, the Skills page now has three tabs at the top: "Installed", "Repositories" and "skills.sh". All three tabs lay out their toolbar the same way: the search box on the left and the current tab's actions on the right; on "Installed" and "Repositories", status, source and the repositories taking part in discovery are combined into one "Filter"; "Check Updates" and "Refresh repos" sit in the page header.++### More compact tray quota++([#10036](https://github.com/farion1231/cc-switch/pull/10036))++Quota rows in the tray quick panel use short labels (5h, 7d and so on), the progress bars line up, and the reset countdown is shorter; a single balance row sits next to the title. Antigravity's 5-hour and weekly quotas each get their own row (Gemini 5h / 7d, Claude 5h / 7d, plus Argon 7d on Pro accounts); they used to be merged into one row showing only the more used one, so the weekly limit was often hidden. Quota blocks are no longer cut to three rows; in "Used" mode the progress bar shows the used part.++### Fewer redundant background calls++([#10163](https://github.com/farion1231/cc-switch/pull/10163))++Switching pages and opening the Plugins page and Accounts now send far fewer duplicate background requests; the Plugins page no longer reports errors because some CLI isn't installed; and Windows no longer updates the tray tooltip one extra time at startup.++---++## Fixes++- **Closing the terminal still waited until the timeout when adding an Antigravity account on Windows** ([#10167](https://github.com/farion1231/cc-switch/pull/10167), closes [#10105](https://github.com/farion1231/cc-switch/issues/10105)): the wait now ends as soon as agy exits or the terminal window is closed, and the original login is restored, as on macOS and Linux. cmd, PowerShell and Windows Terminal are all supported.+- **No quota in the tray or on cards when only Antigravity Desktop was installed** (see [#10162](https://github.com/farion1231/cc-switch/issues/10162)): the desktop app puts agy in `~/.gemini/bin` without adding it to PATH, so on macOS and Linux it wasn't found before. When the official CLI is installed in `~/.local/bin`, it is still preferred.+- **Antigravity Desktop showed under "Installed" even when it wasn't installed** ([#10189](https://github.com/farion1231/cc-switch/pull/10189), closes [#10177](https://github.com/farion1231/cc-switch/issues/10177))+- **Requests from managed official accounts failed after Codex CLI 0.172 refreshed its login** (see [#10157](https://github.com/farion1231/cc-switch/issues/10157)): the new Codex writes a few extra fields into `auth.json`, so CC Switch didn't recognize the login as one it manages, and routed requests kept failing with "current Codex session has not loaded the selected ChatGPT account"; restarting Codex didn't help.+- **A `codex login --with-api-key` login was deleted on the first switch to a third-party provider** (see [#10195](https://github.com/farion1231/cc-switch/issues/10195)): this kind of login was mistaken for a third-party Key left behind by older versions and deleted even with "Keep official login for direct switches" on, so Codex was signed out after switching back to the official card.+- **Aggregation mode dropped Codex session request headers** ([#10155](https://github.com/farion1231/cc-switch/pull/10155), closes [#10147](https://github.com/farion1231/cc-switch/issues/10147)): Aggregation mode now keeps Codex's session request headers and prompt cache key, as Routing mode does.+- **Claude Code's Open Terminal failed on Windows when the provider ID contained Chinese characters** (see [#10156](https://github.com/farion1231/cc-switch/issues/10156)): cmd decoded the Chinese characters in the temporary settings file name into mojibake and reported "Settings file not found". The file name now keeps only ASCII letters, digits and similar characters.+- **Claude Code on the stable update channel always offered an update** (closes [#7102](https://github.com/farion1231/cc-switch/issues/7102), see [#10168](https://github.com/farion1231/cc-switch/pull/10168)): when `~/.claude/settings.json` sets `autoUpdatesChannel: "stable"`, `claude update` installs only the stable version, but the "Apps" page compared against the latest version, so clicking update never changed anything. It now compares against the stable version; Homebrew installs still compare against the latest.+- **Models added while editing an OpenClaw provider couldn't be selected in `/model`** ([#10191](https://github.com/farion1231/cc-switch/pull/10191), closes [#6729](https://github.com/farion1231/cc-switch/issues/6729))+- **OpenCode cards didn't match the config actually in effect after an OMO config write failed** (see [#10209](https://github.com/farion1231/cc-switch/issues/10209), [#10210](https://github.com/farion1231/cc-switch/issues/10210), [#10211](https://github.com/farion1231/cc-switch/issues/10211)): when writing the file failed while deleting, disabling or switching OMO / OMO Slim, the record or current pointer used to be changed already; it is now kept or restored to its previous state.+- **When toggling two Skills at once, one failing reverted the other too** (see [#10216](https://github.com/farion1231/cc-switch/issues/10216))+- **The hourly usage trend dropped some requests from the last hour** ([#10200](https://github.com/farion1231/cc-switch/pull/10200), closes [#10196](https://github.com/farion1231/cc-switch/issues/10196))+- **The context menu on macOS was always in English** ([#4557](https://github.com/farion1231/cc-switch/pull/4557)): native menus such as Copy and Paste now follow the system language.+- **The copilot placeholder bundled with VS Code was taken for an installed Copilot CLI on Linux** (see [#10228](https://github.com/farion1231/cc-switch/issues/10228)): the "Apps" page now correctly shows it as not installed.++---++## Thanks++Thanks to [@funkpopo](https://github.com/funkpopo) (Accounts no longer adding logins automatically, fewer background calls, Windows agy login terminal), [@allenxu09](https://github.com/allenxu09) (Skills page, tray quota layout), [@fodangithub](https://github.com/fodangithub) (cloud sync encryption), [@RLlufee](https://github.com/RLlufee) (heatmap details), [@NostalgiaJohn](https://github.com/NostalgiaJohn) (Aggregation mode session request headers), [@SaladDay](https://github.com/SaladDay) (OpenClaw models), [@zhiwuyazhe-fjr](https://github.com/zhiwuyazhe-fjr) (Antigravity Desktop detection, hourly trend), [@chengww5217](https://github.com/chengww5217) (macOS context menu), [@HadesScience](https://github.com/HadesScience) (Codex Gemini preset) for their contributions.++Special thanks to [@Lingbou](https://github.com/Lingbou): [#10168](https://github.com/farion1231/cc-switch/pull/10168) found that Claude Code updates on the stable channel falsely succeeded, and this release's fix that compares versions by channel builds on that finding.++Thanks to [@eugenewang5425](https://github.com/eugenewang5425), [@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot), [@qing-ke](https://github.com/qing-ke), [@feiyun260](https://github.com/feiyun260), [@sunshine-demo](https://github.com/sunshine-demo), [@shuhuNB515](https://github.com/shuhuNB515), [@Zeng-BY](https://github.com/Zeng-BY), [@yhsder](https://github.com/yhsder), [@xingjunfeng](https://github.com/xingjunfeng), [@mangohl](https://github.com/mangohl), [@clearoce](https://github.com/clearoce) for issue reports and reproduction details.++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.47-ja.md b/docs/release-notes/v4.0.47-ja.mdnew file mode 100644index 000000000..618bd31d6--- /dev/null+++ b/docs/release-notes/v4.0.47-ja.md@@ -0,0 +1,105 @@+# CC Switch v4.0.47++今回のリリースでは、クラウド同期に暗号化を追加しました。暗号化キーを入力すると、WebDAV と S3 の同期データはこのコンピューターで暗号化してからアップロードされるため、ストレージ事業者は中の API Key を見られず、キーが一致しないデバイスがクラウドのデータを誤って上書きすることもありません。「使用量」のヒートマップでは、ある日をクリックするとその場でその日の合計と時間別の推移を確認でき、Shift を押しながらクリックすると連続した期間を選べます。「アカウント」は、自分で追加していないログインを自動で取り込まなくなりました。Antigravity のサードパーティモデルは Gemini ネイティブプロトコルで画像を読めるようになり、CodeBuddy IDE プラグインの使用量も取り込めるようになりました。++このほか、Windows で Antigravity のアカウントを追加するときにターミナルを閉じてもタイムアウトまで待たされる問題、Antigravity デスクトップ版だけをインストールしていると残量が表示されない問題、Codex CLI 0.172 がログインを更新した後に管理対象の公式アカウントのリクエストが失敗する問題、`codex login --with-api-key` のログインが初めてサードパーティに切り替えたときに削除される問題、集約モードで Codex のセッションリクエストヘッダーが失われる問題、Windows でプロバイダー ID に中国語が含まれると Claude Code のターミナルを開けない問題、Claude Code が stable チャネルのときに更新ありと表示され続ける問題、OpenClaw の編集中に追加したモデルを選べない問題、OpenCode の OMO の書き込みに失敗した後に状態が食い違う問題、macOS の右クリックメニューが常に英語になる問題を修正しました。++---++## 新機能++### クラウド同期の暗号化++([#10152](https://github.com/farion1231/cc-switch/pull/10152))++設定の WebDAV と S3 の同期に「クラウドデータ暗号化キー」が加わりました。入力すると、アップロードするデータベースと Skills の圧縮ファイルはまずこのコンピューターで AES-256-GCM により暗号化され、クラウドには暗号文だけが保存されます。ダウンロード時は同じキーで復号します。++- **すべてのデバイスに同じキーを入力**:キーはこのコンピューターにだけ保存され、クラウド同期されません。キーを忘れるとクラウドのデータを復号できず、CC Switch でも復元できません。+- **誤って上書きしない**:クラウドのデータが暗号化されている場合、キーが一致しないデバイスはアップロードできません。キーを入力していないデバイスでダウンロードすると、先にキーを入力するよう案内されます。クラウドの暗号化データを平文で上書きする操作は、自動同期では一切行わず、手動アップロードでは確認のチェックが必要です。+- 空欄の場合はこれまでどおり平文でアップロードし、旧バージョンのデバイスも引き続き読み込めます。++### 使用量ヒートマップでその場で詳細を表示++([#9994](https://github.com/farion1231/cc-switch/pull/9994))++「使用量」のヒートマップである日をクリックすると、その下にその日のトークン、リクエスト数、コスト、キャッシュヒット率と時間別の推移グラフが展開され、日付のフィルターを変える必要はありません。Shift を押しながら別の日をクリックすると、その間の連続した日付を選び、期間の合計と日別の推移を確認できます。「フィルターに適用」でその期間をページ上部のフィルターに反映すると、下のリクエストログと明細表も連動して変わります。++### Antigravity のサードパーティモデルで画像を読む++([#10219](https://github.com/farion1231/cc-switch/issues/10219) を参照)++agy はモデル ID に gemini、claude、gpt を含むゲートウェイのモデルにしか画像を読ませず、それ以外のモデル(DeepSeek、Kimi など)で画像を読もうとすると「not supported by the current model」というエラーになります。Antigravity のフォームのモデルの「その他のオプション」に「画像入力に対応」を追加しました。上流のモデルが画像を扱えるならオンにしてください。一覧からモデルを選ぶと models.dev に従って自動でオンになります。++- Gemini ネイティブプロトコルでのみ有効です。OpenAI 互換プロトコルでは agy が画像を上流に送らないため、スイッチはグレーアウトされます。+- ルーティングと集約モードでは Gemini ネイティブプロトコルでモデル一覧を書き込まないため、このスイッチは今のところ反映されません。++### CodeBuddy IDE プラグインの使用量++([#10011](https://github.com/farion1231/cc-switch/issues/10011) を参照)++JetBrains と VS Code の CodeBuddy プラグイン、および CodeBuddy IDE の使用量を「使用量」に取り込みます。完了したリクエストごとに 1 回記録し、キャッシュの読み取りと書き込みは分けて記録します。CodeBuddy の credit は米ドルではなくポイントなので、費用としては扱いません。++### プリセット++Codex に Gemini(Google 公式の OpenAI 互換エンドポイント、[#9822](https://github.com/farion1231/cc-switch/pull/9822))を追加しました。TeleAI は XingChenAGI に名称を変更しました。++---++## 変更++### 「アカウント」でログインを自動で取り込まないように++([#10140](https://github.com/farion1231/cc-switch/pull/10140)、[#10153](https://github.com/farion1231/cc-switch/pull/10153))++「アカウント」には、自分で追加したアカウントだけが取り込まれます。これまでは「アカウント」を開くと、Antigravity や WorkBuddy でログイン中のアカウントが自動で一覧に追加されていました。現在は案内に名前を表示するだけで、「現在のアカウントを取り込む」(WorkBuddy は「取り込む」)をクリックしたときだけ追加されます。公式カードのフォームにも同じ案内があります。++アカウントの切り替えや追加で外れた、まだ取り込んでいないログインは、CC Switch がこのコンピューターに別途保存するため失われず、一覧に自動で追加されることもありません。後でそのアカウントを取り込むと、別途保存した分は削除されます。Claude Code で別のアカウントを紐付けた公式カードに切り替えたときも同様です。WorkBuddy の「別のアカウントでログイン」は、ログインが終わるのを待って新しいアカウントを自動で取り込むようになりました。++### Skills ページを 3 つのタブに++([#10050](https://github.com/farion1231/cc-switch/pull/10050))++Skills ページはプラグインページと同じく、上部に「インストール済み」「リポジトリ」「skills.sh」の 3 つのタブを置きました。3 つのタブのツールバーは同じ並びで、左に検索ボックス、右に現在のタブの操作があります。「インストール済み」「リポジトリ」の状態、ソース、「見つける」で使うリポジトリは 1 つの「フィルター」にまとめました。「更新を確認」「リポジトリを更新」はヘッダーに移しました。++### トレイの残量表示をコンパクトに++([#10036](https://github.com/farion1231/cc-switch/pull/10036))++トレイのクイックパネルの残量行は短いラベル(5h、7d など)を使い、進捗バーを縦にそろえ、リセットまでのカウントダウンを短くしました。残高が 1 行だけのときはタイトルの横に表示します。Antigravity の 5 時間と週間の残量はそれぞれ 1 行に分けました(Gemini 5h / 7d、Claude 5h / 7d、Pro アカウントはさらに Argon 7d)。これまでは 1 行にまとめて使用率の高いほうだけを表示していたため、週間の上限が見えないことがよくありました。残量ブロックは 3 行で切り詰めなくなりました。「使用済み」モードでは、進捗バーが使用済みの部分を表示します。++### 不要なバックグラウンド呼び出しを削減++([#10163](https://github.com/farion1231/cc-switch/pull/10163))++ページの切り替え、プラグインページや「アカウント」を開くときに送っていた大量の重複したバックグラウンドリクエストを減らしました。ある CLI がインストールされていないことでプラグインページがエラーになることもなくなりました。Windows の起動時にトレイのツールチップを余計に 1 回更新しなくなりました。++---++## 修正++- **Windows で Antigravity のアカウントを追加するとき、ターミナルを閉じてもタイムアウトまで待たされる**([#10167](https://github.com/farion1231/cc-switch/pull/10167)、[#10105](https://github.com/farion1231/cc-switch/issues/10105) をクローズ):現在は agy が終了するかターミナルウィンドウが閉じられるとすぐに待機を終え、元のログインを書き戻します。macOS や Linux と同じ動作です。cmd、PowerShell、Windows Terminal のいずれにも対応します。+- **Antigravity デスクトップ版だけをインストールしていると、トレイとカードに残量が表示されない**([#10162](https://github.com/farion1231/cc-switch/issues/10162) を参照):デスクトップ版は agy を `~/.gemini/bin` に置き、PATH に追加しないため、macOS と Linux ではこれまで見つけられませんでした。公式 CLI が `~/.local/bin` にインストールされている場合は、引き続きそちらを優先します。+- **Antigravity デスクトップ版をインストールしていないのに「インストール済み」に表示される**([#10189](https://github.com/farion1231/cc-switch/pull/10189)、[#10177](https://github.com/farion1231/cc-switch/issues/10177) をクローズ)+- **Codex CLI 0.172 がログインを更新した後、管理対象の公式アカウントのリクエストが失敗する**([#10157](https://github.com/farion1231/cc-switch/issues/10157) を参照):新しい Codex は `auth.json` にいくつかのフィールドを追加で書き込むため、CC Switch は自分が管理するログインだと認識できず、ルーティング経由のリクエストは「現在の Codex セッションに選択した ChatGPT アカウントが読み込まれていない」という意味のエラーになり続け、Codex を再起動しても直りませんでした。+- **`codex login --with-api-key` のログインが、初めてサードパーティに切り替えたときに削除される**([#10195](https://github.com/farion1231/cc-switch/issues/10195) を参照):このログインが旧バージョンの残したサードパーティの Key と誤認され、「直接切替時に公式ログインを保持」をオンにしていても削除されていたため、公式カードに戻すと Codex がログアウトした状態になっていました。+- **集約モードで Codex のセッションリクエストヘッダーが失われる**([#10155](https://github.com/farion1231/cc-switch/pull/10155)、[#10147](https://github.com/farion1231/cc-switch/issues/10147) をクローズ):集約モードでもルーティングモードと同じく、Codex のセッションリクエストヘッダーとプロンプトキャッシュキーを保持するようになりました。+- **Windows でプロバイダー ID に中国語が含まれると、Claude Code のターミナルを開けない**([#10156](https://github.com/farion1231/cc-switch/issues/10156) を参照):一時設定ファイル名の中国語が cmd で文字化けし、「Settings file not found」と表示されていました。現在はファイル名に英字や数字などの文字だけを使います。+- **Claude Code が stable 更新チャネルのとき、更新ありと表示され続ける**([#7102](https://github.com/farion1231/cc-switch/issues/7102) をクローズ、[#10168](https://github.com/farion1231/cc-switch/pull/10168) を参照):`~/.claude/settings.json` で `autoUpdatesChannel: "stable"` を設定していると、`claude update` は stable 版しかインストールしないのに、「アプリ」ページは最新版と比較していたため、更新を押しても何も変わりませんでした。現在は stable 版と比較します。Homebrew でインストールしたものは引き続き最新版と比較します。+- **OpenClaw でプロバイダーの編集中に追加したモデルを `/model` で選べない**([#10191](https://github.com/farion1231/cc-switch/pull/10191)、[#6729](https://github.com/farion1231/cc-switch/issues/6729) をクローズ)+- **OpenCode の OMO 設定の書き込みに失敗した後、カードと実際に有効な設定が食い違う**([#10209](https://github.com/farion1231/cc-switch/issues/10209)、[#10210](https://github.com/farion1231/cc-switch/issues/10210)、[#10211](https://github.com/farion1231/cc-switch/issues/10211) を参照):OMO / OMO Slim の削除、無効化、切り替えでファイルの書き込みに失敗したとき、これまではレコードや現在のポインターが変わってしまっていましたが、現在は元の状態を保つか元に戻します。+- **2 つの Skill を同時にオン・オフしたとき、一方が失敗するともう一方も元に戻される**([#10216](https://github.com/farion1231/cc-switch/issues/10216) を参照)+- **時間別の使用量推移で最後の 1 時間のリクエストの一部が欠ける**([#10200](https://github.com/farion1231/cc-switch/pull/10200)、[#10196](https://github.com/farion1231/cc-switch/issues/10196) をクローズ)+- **macOS で右クリックメニューが常に英語になる**([#4557](https://github.com/farion1231/cc-switch/pull/4557)):コピーや貼り付けなどのネイティブメニューがシステムの言語に従うようになりました。+- **Linux で VS Code に同梱された copilot のプレースホルダープログラムを、インストール済みの Copilot CLI とみなしてしまう**([#10228](https://github.com/farion1231/cc-switch/issues/10228) を参照):「アプリ」ページで正しく未インストールと表示されるようになりました。++---++## 謝辞++[@funkpopo](https://github.com/funkpopo)(「アカウント」で自動で取り込まない、バックグラウンド呼び出しの削減、Windows の agy ログイン用ターミナル)、[@allenxu09](https://github.com/allenxu09)(Skills ページ、トレイの残量レイアウト)、[@fodangithub](https://github.com/fodangithub)(クラウド同期の暗号化)、[@RLlufee](https://github.com/RLlufee)(ヒートマップの詳細)、[@NostalgiaJohn](https://github.com/NostalgiaJohn)(集約モードのセッションリクエストヘッダー)、[@SaladDay](https://github.com/SaladDay)(OpenClaw のモデル)、[@zhiwuyazhe-fjr](https://github.com/zhiwuyazhe-fjr)(Antigravity デスクトップ版の検出、時間別の推移)、[@chengww5217](https://github.com/chengww5217)(macOS の右クリックメニュー)、[@HadesScience](https://github.com/HadesScience)(Codex の Gemini プリセット)の貢献に感謝します。++[@Lingbou](https://github.com/Lingbou) に特に感謝します:[#10168](https://github.com/farion1231/cc-switch/pull/10168) で Claude Code の stable チャネルの更新が成功したように見えて実際には変わらない問題を見つけてくださり、今回のチャネルに応じてバージョンを比較する修正はこの発見をもとにしています。++問題の報告と再現情報の提供に協力してくださった [@eugenewang5425](https://github.com/eugenewang5425)、[@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot)、[@qing-ke](https://github.com/qing-ke)、[@feiyun260](https://github.com/feiyun260)、[@sunshine-demo](https://github.com/sunshine-demo)、[@shuhuNB515](https://github.com/shuhuNB515)、[@Zeng-BY](https://github.com/Zeng-BY)、[@yhsder](https://github.com/yhsder)、[@xingjunfeng](https://github.com/xingjunfeng)、[@mangohl](https://github.com/mangohl)、[@clearoce](https://github.com/clearoce) に感謝します。++技術的な詳細は [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) をご覧ください。diff --git a/docs/release-notes/v4.0.47-zh.md b/docs/release-notes/v4.0.47-zh.mdnew file mode 100644index 000000000..479c0dd18--- /dev/null+++ b/docs/release-notes/v4.0.47-zh.md@@ -0,0 +1,105 @@+# CC Switch v4.0.47++本版本为云同步增加了加密:填了加密密钥后,WebDAV 和 S3 同步的数据在本机加密后再上传,存储服务商看不到其中的 API Key,密钥不一致的设备也不会误覆盖云端数据。用量统计的热力图点一下某天就能在原地看当天的合计和按小时趋势,按住 Shift 还能选一段连续日期。授权中心不再自动收录你没添加过的登录。Antigravity 的第三方模型在 Gemini 原生协议下可以读图片,CodeBuddy IDE 插件的用量也能导入了。++修复包括:Windows 上 Antigravity 添加账号时关掉终端仍要等到超时,只装了 Antigravity 桌面版时不显示额度,Codex CLI 0.172 刷新登录后托管的官方账号请求失败,`codex login --with-api-key` 的登录在第一次切到第三方时被删,聚合模式丢掉 Codex 会话请求头,Windows 上供应商 ID 带中文时 Claude Code 打开终端失败,Claude Code 在 stable 通道时一直提示可更新,OpenClaw 编辑时新加的模型选不到,OpenCode OMO 写入失败后状态不一致,以及 macOS 右键菜单总是英文。++---++## 新增++### 云同步加密++([#10152](https://github.com/farion1231/cc-switch/pull/10152))++设置里的 WebDAV 和 S3 同步多了「云数据加密密钥」。填了以后,上传的数据库和 Skills 压缩包先在本机用 AES-256-GCM 加密,云端只存密文;下载时用同一个密钥解密。++- **每台设备填同一个密钥**:密钥只存在本机,不随云同步;忘了就解不开云端数据,CC Switch 没法找回。+- **不会误覆盖**:云端已加密时,密钥不一致的设备不能上传;没填密钥的设备下载会提示先填密钥。想用明文覆盖云端的加密数据,自动同步一律不做,手动上传要勾选确认。+- 留空时照旧按明文上传,旧版本的设备照常能读。++### 用量热力图原地看详情++([#9994](https://github.com/farion1231/cc-switch/pull/9994))++用量统计的热力图点一下某天,下方展开这一天的 Token、请求数、成本、缓存命中率和按小时的趋势图,不用再去改日期筛选。按住 Shift 点另一天,选中中间的连续日期,看这一段的合计和按天趋势;「应用到主筛选」把这段日期同步到页面上方的筛选,下面的请求日志和明细表跟着变。++### Antigravity 第三方模型读图片++(见 [#10219](https://github.com/farion1231/cc-switch/issues/10219))++agy 只让模型 ID 里含 gemini、claude、gpt 的网关模型读图片,其他模型(如 DeepSeek、Kimi)读图会报「当前模型不支持」。Antigravity 表单的模型「更多选项」里新增「支持图片输入」,上游模型能看图就打开它,从列表选模型时按 models.dev 自动打开。++- 只在 Gemini 原生协议下生效:OpenAI 兼容协议下 agy 不把图片发给上游,开关是灰的。+- 路由和聚合模式下 Gemini 原生协议不写模型列表,这个开关暂时也不生效。++### CodeBuddy IDE 插件的用量++(见 [#10011](https://github.com/farion1231/cc-switch/issues/10011))++JetBrains、VS Code 的 CodeBuddy 插件和 CodeBuddy IDE 的用量会导入用量统计,每个完成的请求记一次,缓存读写分开记。CodeBuddy 的 credit 是积分不是美元,不当作费用。++### 预设++Codex 新增 Gemini(Google 官方 OpenAI 兼容端点,[#9822](https://github.com/farion1231/cc-switch/pull/9822));TeleAI 更名为 XingChenAGI。++---++## 变更++### 授权中心不再自动收录登录++([#10140](https://github.com/farion1231/cc-switch/pull/10140)、[#10153](https://github.com/farion1231/cc-switch/pull/10153))++授权中心只收录你自己添加的账号。以前打开授权中心时,Antigravity、WorkBuddy 里登着的号会被自动加进列表;现在只在提示里显示名字,点「收录当前账号」(WorkBuddy 是「收录」)才加进去,官方卡的表单里也有这个提示。++切换或添加账号时被换下的、还没收录的登录,CC Switch 会在本机另存一份,不会丢,也不会自动加进列表;之后收录这个号时,另存的那份随之删除。Claude Code 切到绑定了其他账号的官方卡时同样如此。WorkBuddy 的「登录另一个账号」现在会等你登录完,自动收录新号。++### Skills 页面改成三个页签++([#10050](https://github.com/farion1231/cc-switch/pull/10050))++Skills 页和插件页一样,顶部是「已安装」「仓库」「skills.sh」三个页签。三个页签的工具栏排法一致:左边搜索框,右边是当前页签的操作;「已安装」「仓库」的状态、来源和参与发现的仓库合进一个「筛选」;「检查更新」「刷新仓库」放在页头。++### 托盘额度更紧凑++([#10036](https://github.com/farion1231/cc-switch/pull/10036))++托盘快捷面板的额度行改用短标签(5h、7d 等),进度条上下对齐,重置倒计时更短;只有一行余额时放在标题旁边。Antigravity 的 5 小时和每周额度各占一行(Gemini 5h / 7d、Claude 5h / 7d,Pro 账号另有 Argon 7d),以前合成一行只显示用得多的那个,周限经常看不到。额度块不再截成三行;「已用」模式下进度条显示已用的部分。++### 减少多余的后台调用++([#10163](https://github.com/farion1231/cc-switch/pull/10163))++切换页面、打开插件页和授权中心时,少发了大量重复的后台请求;插件页不会再因为某个 CLI 没装而报错;Windows 启动时不再多改一次托盘提示。++---++## 修复++- **Windows 上 Antigravity 添加账号时,关掉终端仍要等到超时**([#10167](https://github.com/farion1231/cc-switch/pull/10167),关闭 [#10105](https://github.com/farion1231/cc-switch/issues/10105)):现在 agy 退出或终端窗口关闭后立即结束等待,并还原原来的登录,和 macOS、Linux 一样。cmd、PowerShell 和 Windows Terminal 都支持。+- **只装了 Antigravity 桌面版时,托盘和卡片不显示额度**(见 [#10162](https://github.com/farion1231/cc-switch/issues/10162)):桌面版把 agy 放在 `~/.gemini/bin`、不加进 PATH,macOS、Linux 上之前找不到它。官方 CLI 装在 `~/.local/bin` 时仍然优先用它。+- **没装 Antigravity 桌面版也显示在「已安装」里**([#10189](https://github.com/farion1231/cc-switch/pull/10189),关闭 [#10177](https://github.com/farion1231/cc-switch/issues/10177))+- **Codex CLI 0.172 刷新登录后,托管的官方账号请求失败**(见 [#10157](https://github.com/farion1231/cc-switch/issues/10157)):新版 Codex 往 `auth.json` 里多写了几个字段,CC Switch 认不出这是自己托管的登录,经路由的请求一直报「当前 Codex 会话未加载所选 ChatGPT 账号」,重启 Codex 也没用。+- **`codex login --with-api-key` 的登录在第一次切到第三方时被删**(见 [#10195](https://github.com/farion1231/cc-switch/issues/10195)):这种登录被误当成旧版本残留的第三方 Key,开着「非接管切换时保留官方登录」也会被删,切回官方卡后 Codex 就没登录了。+- **聚合模式丢掉 Codex 会话请求头**([#10155](https://github.com/farion1231/cc-switch/pull/10155),关闭 [#10147](https://github.com/farion1231/cc-switch/issues/10147)):聚合模式现在和路由模式一样保留 Codex 的会话请求头和提示词缓存键。+- **Windows 上供应商 ID 带中文时,Claude Code 打开终端失败**(见 [#10156](https://github.com/farion1231/cc-switch/issues/10156)):临时设置文件名里的中文被 cmd 解码成乱码,报「Settings file not found」。现在文件名只保留英文字母、数字等字符。+- **Claude Code 在 stable 更新通道时一直提示可更新**(关闭 [#7102](https://github.com/farion1231/cc-switch/issues/7102),见 [#10168](https://github.com/farion1231/cc-switch/pull/10168)):`~/.claude/settings.json` 里设了 `autoUpdatesChannel: "stable"` 时,`claude update` 只装 stable 版,「应用」页却拿最新版比,点更新永远没变化。现在按 stable 版比较;Homebrew 安装的仍按最新版比。+- **OpenClaw 编辑供应商时新加的模型,在 `/model` 里选不到**([#10191](https://github.com/farion1231/cc-switch/pull/10191),关闭 [#6729](https://github.com/farion1231/cc-switch/issues/6729))+- **OpenCode 的 OMO 配置写入失败后,卡片和实际生效的配置对不上**(见 [#10209](https://github.com/farion1231/cc-switch/issues/10209)、[#10210](https://github.com/farion1231/cc-switch/issues/10210)、[#10211](https://github.com/farion1231/cc-switch/issues/10211)):删除、停用、切换 OMO / OMO Slim 时文件写入失败,以前记录或当前指针已经改了,现在会保持或还原成原来的状态。+- **同时开关两个 Skill 时,一个失败会把另一个也改回去**(见 [#10216](https://github.com/farion1231/cc-switch/issues/10216))+- **按小时的用量趋势丢掉最后一小时的部分请求**([#10200](https://github.com/farion1231/cc-switch/pull/10200),关闭 [#10196](https://github.com/farion1231/cc-switch/issues/10196))+- **macOS 上右键菜单总是英文**([#4557](https://github.com/farion1231/cc-switch/pull/4557)):拷贝、粘贴等原生菜单现在跟随系统语言。+- **Linux 上把 VS Code 自带的 copilot 占位程序当成已安装的 Copilot CLI**(见 [#10228](https://github.com/farion1231/cc-switch/issues/10228)):「应用」页现在正确显示为未安装。++---++## 致谢++感谢 [@funkpopo](https://github.com/funkpopo)(授权中心不自动收录、减少后台调用、Windows agy 登录终端)、[@allenxu09](https://github.com/allenxu09)(Skills 页面、托盘额度布局)、[@fodangithub](https://github.com/fodangithub)(云同步加密)、[@RLlufee](https://github.com/RLlufee)(热力图详情)、[@NostalgiaJohn](https://github.com/NostalgiaJohn)(聚合模式会话请求头)、[@SaladDay](https://github.com/SaladDay)(OpenClaw 模型)、[@zhiwuyazhe-fjr](https://github.com/zhiwuyazhe-fjr)(Antigravity 桌面版检测、按小时趋势)、[@chengww5217](https://github.com/chengww5217)(macOS 右键菜单)、[@HadesScience](https://github.com/HadesScience)(Codex Gemini 预设)的贡献。++特别感谢 [@Lingbou](https://github.com/Lingbou):[#10168](https://github.com/farion1231/cc-switch/pull/10168) 找到了 Claude Code stable 通道更新假成功的问题,本版按通道比较版本的修复采用了这个发现。++感谢 [@eugenewang5425](https://github.com/eugenewang5425)、[@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot)、[@qing-ke](https://github.com/qing-ke)、[@feiyun260](https://github.com/feiyun260)、[@sunshine-demo](https://github.com/sunshine-demo)、[@shuhuNB515](https://github.com/shuhuNB515)、[@Zeng-BY](https://github.com/Zeng-BY)、[@yhsder](https://github.com/yhsder)、[@xingjunfeng](https://github.com/xingjunfeng)、[@mangohl](https://github.com/mangohl)、[@clearoce](https://github.com/clearoce) 报告问题和提供复现信息。++完整的技术细节请见 [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md)。diff --git a/src/whats-new/4.0.47.json b/src/whats-new/4.0.47.jsonnew file mode 100644index 000000000..18b952ec7--- /dev/null+++ b/src/whats-new/4.0.47.json@@ -0,0 +1,33 @@+{+ "version": "4.0.47",+ "items": [+ {+ "type": "new",+ "zh": "云同步可以加密:填了密钥,数据在本机加密后再上传",+ "zh-TW": "雲端同步可以加密:填了金鑰,資料在本機加密後再上傳",+ "en": "Cloud sync can encrypt data on your device before upload",+ "ja": "クラウド同期を暗号化可能に:鍵を設定するとアップロード前に端末で暗号化"+ },+ {+ "type": "new",+ "zh": "用量热力图点一下某天即可查看详情,Shift 可选日期范围",+ "zh-TW": "用量熱力圖點一下某天即可查看詳情,Shift 可選日期範圍",+ "en": "Click a day in the usage heatmap for details; Shift+click picks a range",+ "ja": "使用量ヒートマップで日付をクリックして詳細表示、Shift で範囲選択"+ },+ {+ "type": "improve",+ "zh": "授权中心不再自动收录你没添加过的登录",+ "zh-TW": "授權中心不再自動收錄你沒新增過的登入",+ "en": "The Auth Center no longer collects logins you have not added",+ "ja": "追加していないログインをアカウント画面が自動で取り込まなくなりました"+ },+ {+ "type": "new",+ "zh": "Antigravity 的第三方模型可以读取图片",+ "zh-TW": "Antigravity 的第三方模型可以讀取圖片",+ "en": "Antigravity third-party models can read images",+ "ja": "Antigravity のサードパーティモデルが画像を読み取れるように"+ }+ ]+}