Skip to content

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode,DeepSeek Harness and more. Only official website: ccswitch.io

chore(release): v4.0.46

Jason872373c5d7f0
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2f0fcd145..84c533689 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,43 @@ All notable changes to CC Switch will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [4.0.46] - 2026-11-30
+
+Antigravity gets route, failover and aggregation modes: agy requests can go through the local router with usage recorded, fail over to the next queued provider, and pick models from several providers in one list. Antigravity model rows edit display name, context window, output limit and thinking levels, published as effort variants when routing. The global proxy in Settings now reaches every process CC Switch starts: "Open terminal", session resume, CLI install/upgrade, MCP connectivity checks and login terminals. Codex models get per-model Fast and Lite settings, and the tray follows the app page order. Fixes cover Gemini prompt cache misses on OpenAI-compatible relays, Claude Code dropping thinking blocks after model mapping, a terminal window flashing during Windows background quota refreshes, missing quota on Antigravity official cards, Claude Code request timing lost after long attachments, WorkBuddy image models dropped from the fetched list and several Antigravity sign-in edge cases.
+
+**Stats**: 34 commits | 148 files changed | +10062 insertions | -1314 deletions
+
+### Added
+
+- **Antigravity Route Mode** (620a5488c): Antigravity gets a device-level direct / route mode. `/agy/v1beta/*` and `/agy/v1/*` strip the prefix and pass genai and OpenAI Chat requests through unchanged; `AgyAdapter` sends Bearer plus `x-goog-api-key` for genai and Bearer only for openai, with the row's custom headers added by the forwarder. The contract points the gateway at `<proxy>/agy` with `PROXY_MANAGED` as the key. genai omits `models` and the proxy answers `GET /v1beta/models` from the route provider's model table, so switching between genai providers never touches `config.json`; openai keeps writing the model table. Official cards cannot be routed (user agreement), and keyless cards or cards with a custom CA certificate stay direct-only (`agy_direct::can_route`), enforced in the contract, route switching, the tray and the provider cards. Fixes a self-deadlock where paths already holding the agy switch lock tried to take it again.
+- **Antigravity Failover and Usage Dedupe** (80bbfbc03, 2045c5b14): Schema v30 rebuilds `proxy_config` with `agy` in its CHECK list (keeping every existing row's settings) and agy becomes `local_proxy`, enabling routing settings, pricing source, the failover toggle, the queue and health badges. Only routable cards join the queue, and genai / openai cards cannot stand in for each other: the router skips members whose wire protocol differs from the route (`provider_router::same_wire_protocol`), enqueueing checks it and the card list shows an "other protocol" chip. genai usage is recorded once: the proxy builds the request id from the request labels as `agy:<cascade_id>:<last_step_index+1>`, the same id the session import uses, so either order leaves one row and the proxy's wins; successful requests without an id or billable tokens are not recorded. openai requests carry no session id and stay import-only. agy joins `CACHE_INCLUSIVE_APP_TYPES`. Verified end to end with agy CLI 1.5.20: the first queued provider answering 503 failed over to the second, usage was recorded once, and `config.json` stayed unchanged until leaving the route.
+- **Antigravity Aggregation (Stack) Mode** (f4ac2da70): Member model ids are `ccs-<key>--<model>` (with `@<level>` for chosen effort variants) and display as "<model>(<provider>)". The proxy decodes the stack id first, then applies the effort variant, and sends the request to that member only. Only routable cards on the default provider's protocol join; when the default switches protocol, old-protocol members stay listed but unpublished (`stack::agy_unpublished_reason`). genai leaves `config.json` unchanged and the proxy appends member models to `GET /v1beta/models` (fetching the upstream list first when the default lists none); openai appends them to the contract model list. Usage is attributed to the member, and session import maps `ccs-<key>--` ids through the device stack key registry.
+- **Antigravity Model Options** (9802d7c0c, beed6dbd8, 183c2475f): Per-model options in `gateway.modelOptions` project onto `models.list[]` (`displayName`, `maxTokens`, `maxOutputTokens` only together with `maxTokens`, `supportsThinking`) and round-trip on import. Each model row expands to display name, context window and output limit, filled from models.dev (output capped at half the context). Saving is blocked where agy 1.5.20 fails: an output limit without a context window, a context window under twice the output limit, or no context window for an id without gemini / gpt / claude. The form also edits `gateway.customHeaders`. There is deliberately no thinking switch: `supportsThinking` only unlocks the `--effort` launch flag.
+- **Antigravity Effort Variants** (b75884af1, 75dcec665, 283c92a32, 7062fb70d, 6bdcfd5b7, 357f76275, 237ffb743, d068b6544): agy cannot change the effort of gateway models at runtime, so route and stack modes publish each level chosen under a model's thinking levels as a variant such as `deepseek-flash@max`, shown as "DeepSeek Flash (Max)". The proxy strips the marker and overrides one field (openai `reasoning_effort`; genai `thinkingConfig.thinkingLevel`, dropping `thinkingBudget`); only known level names count, so Vertex-style ids like `claude-sonnet-4@20250514` are untouched, and requests without a variant are forwarded byte for byte. Labels use Low / Medium / High / XHigh / Max and stack members put the level last, so Antigravity Desktop groups the variants into one row with a "Thinking effort" submenu. A model with levels publishes only its variants, and the default model points at `defaultEffort` (else medium, high, then the first level). Levels are picked with the shared reasoning levels dropdown (moved from the Codex catalog) and filled from models.dev; direct connections are unchanged. Usage rows keep the requested model with its marker in `request_model`.
+- **Tray Follows the App Page Order** (16aa53425): The tray menu, quick panel and tray usage refreshes resolve `appOrder` with the same rule as the frontend's `orderAppIds`; a shared fixture in `backendConstants.json` pins both implementations.
+- **THB Display Currency** (#9966, fixes #9958).
+
+### Changed
+
+- **Global Proxy for Every Subprocess** (7c3d3f818, 54d0faaed, refs #10119): The global proxy now reaches what CC Switch starts, not only its own requests. "Open terminal" and the agy session resume terminal pass it to that one client (agy also gets SOCKS5 with `socks5h` rewritten to `socks5`; other clients get http(s) only plus `NO_PROXY=localhost,127.0.0.1,::1`); a card that sets any proxy variable keeps its own. On macOS / Linux the proxy is exported to the shell running the client and unset before the interactive shell, instead of an `env` prefix that skipped the user's `claude` alias or function, so a proxy exported in the user's rc wins. CLI install / upgrade scripts, stdio MCP connectivity checks (unless the server's env sets a proxy) and the CodeBuddy login and Hermes dashboard terminals get the proxy too; HTTP / SSE MCP checks build their client with it (loopback stays direct). Session resume prefixes `NAME='value'` assignments, skipped when the proxy URL carries credentials. The Warp launcher runs `exec env`, which also fixes Oh My Pi resume there.
+- **Codex Per-Model Fast and Lite** (#10039 e8bfa2abb, 166d6e818, 2ef23b3f8, refs #9695): Codex model rows get three-state Fast / Lite settings (default off) that survive catalog regeneration through recoverable markers, for direct and aggregated catalogs. Fast reuses the official entry's service tiers when the model matches one and works in aggregation; Lite fixes premature compaction from re-estimated reasoning tokens on relays that forward official ChatGPT accounts. The card-level "Keep official Fast tier" switch is removed: opening the form migrates it to Fast on GPT rows without their own setting, and the backend still honors `officialSpeedTiers` until the card is saved. Hidden for Copilot profiles.
+- **Antigravity Cards Show the Endpoint** (82fc176fa): Key cards show the note / website / endpoint like Claude Code and Codex instead of the gateway default model; bound official cards show the account only.
+- **Antigravity Sign-in without the CLI** (#10122, #10127): "Add account" runs agy in a terminal when the CLI exists, otherwise hands sign-in to Antigravity Desktop (shared keychain, watched but never cleared or restored) and imports an untracked keychain login on the first poll. Windows treats only `agy.exe` as the CLI and launches it directly in the preferred terminal; paths with `&`, `(`, `)` and other cmd metacharacters are passed through `CC_SWITCH_TERMINAL_PROGRAM` for the cmd, PowerShell and Windows Terminal branches. `agyHelp` is updated in all eight locales.
+
+### Fixed
+
+- **Gemini Prompt Cache on OpenAI-Compatible Routes** (#10125, refs #10090): Mid-conversation `system` messages from Claude Code / Claude Desktop are demoted to `user` for every Gemini model on both `openai_chat` (previously only Copilot) and `openai_responses`, so relays no longer hoist them into `systemInstruction` and rewrite the prompt prefix every turn. Responses `system` items between a function call and its output are moved after the output.
+- **Claude Response Model after Mapping** (#10108, refs #5578): Successful Claude / Claude Desktop `/v1/messages` responses report the client's request model, so Claude Code keeps signed thinking blocks on later turns; the outbound request and usage logging are unchanged.
+- **Windows Background agy Quota Refresh** (#10124, fixes #10123): `process-wrap` 10.0.2 preserves the hidden background process flags, so refreshing Antigravity quota no longer opens Windows Terminal.
+- **Antigravity Official Card Quota** (38c960474): Official cards without a saved usage config query official quota by default in the tray, the card and the usage dialog (bound cards read their account, unbound ones follow the current agy login); cards turned off stay off. 4.0.45 showed no quota for the card imported on first launch.
+- **Claude Request Timing after Long Attachments** (#10149, fixes #9954): When attachment data between a request and its reply pushed the request start beyond the 256 KiB lookback, incremental session-log scans left latency and time to first token blank. A completed reply whose start is unresolved now gets one retry of up to 1 MiB, before the SQLite write transaction, and each reply reuses its first successful lookup.
+- **WorkBuddy Image Models** (1ca69056d, refs #10129): An opt-in `includeNonChatModels` option on `fetch_models_for_config`, passed only by the WorkBuddy form, keeps image, video, embedding and rerank models that the 4.0.44 filter dropped.
+- **Antigravity Login Terminal** (#10102, fixes #10099): On macOS / Linux the launcher records agy's exit code and the add-account wait ends (restoring the cleared login) as soon as agy exits; the global proxy (SOCKS5 included) reaches the login terminal on every platform; Ghostty comes to the front on warm start; agy is found through an interactive zsh / bash when PATH is only set in rc files; agy 1.5's token-less metadata after `/logout` counts as signed out; the pending flow is dropped after a switch or account removal; launcher scripts are written 0700.
+
+### Internal
+
+- CI tiers PR backend checks across operating systems and speeds up Rust compilation (#10017).
+
## [4.0.45] - 2026-11-29
Antigravity third-party cards now switch like Claude Code: switching writes an Enterprise Gateway block into `~/.gemini/config/config.json`, so new agy sessions and Antigravity Desktop (after a restart) use the relay without opening a terminal from the card. The tray lists Antigravity provider cards, and the provider form edits the gateway protocol, model list and CA certificate with a preview of the resulting `config.json`. Antigravity Desktop's own credential copies are kept in sync after a switch or sign-in. Claude Desktop model-mapping cards get the Full URL toggle, and Skills discovery skips repositories that have not changed. Fixes cover Windows tool installs under temp paths with spaces and parentheses, Codex tool turns to Fable 5.2 rejected locally, agy ignoring the global proxy and the desktop installer's `agy.exe`, the Linux AppImage crashing on newer Wayland systems, "Symlink only" Skills sync on Windows without Developer Mode, Copilot quota missing in the tray, Kimi For Coding Global quota, Codex standalone web search in aggregation mode, streamed tool calls with empty names, Pi sessions over 128 MiB, Hermes and OpenCode remote MCP servers imported as SSE, empty MCP arguments, IME input in more provider forms and screen readers reading the interface in Chinese.
diff --git a/docs/release-notes/v4.0.46-en.md b/docs/release-notes/v4.0.46-en.md
new file mode 100644
index 000000000..61247cee5
--- /dev/null
+++ b/docs/release-notes/v4.0.46-en.md
@@ -0,0 +1,104 @@
+# CC Switch v4.0.46
+
+This release adds Routing, failover and Aggregation modes to Antigravity: as with Claude Code and Codex, requests can be forwarded through local routing with usage recorded, the next provider takes over automatically when one fails, and the models of several providers can go into one agy model list. Antigravity's Routing and Aggregation modes don't yet convert to and from the OpenAI Responses and Anthropic Messages formats; that will come later. Antigravity models can now have a display name, context window, output limit and reasoning levels, and in Routing you switch the thinking effort right in agy's model menu. The Global Proxy in Settings now covers every program CC Switch starts: opening a terminal, installing and upgrading tools, MCP connectivity checks and login terminals all use it.
+
+Fixes include: the cache hit rate dropping to zero when Claude Code uses Gemini models through an OpenAI-compatible relay, Claude Code dropping thinking blocks after model mapping, Codex compacting the context early with an explicit model list, a terminal popping up when Antigravity quota is checked in the background on Windows, Antigravity official cards not showing quota by default, WorkBuddy "Fetch Models" dropping image models, and several problems when adding Antigravity accounts.
+
+> ⚠️ Antigravity's Direct mode doesn't support reasoning levels for third-party models yet: in Direct mode agy doesn't send a thinking effort to gateway models, so the level you pick has no effect. To set reasoning levels for models from third-party platforms (such as Gemini models through a relay), turn on Routing or Aggregation mode.
+
+---
+
+## New
+
+### Antigravity Routing mode
+
+The "Routing" tab at the top of the app page now supports Antigravity too. Once you enter Routing, CC Switch points the gateway in `~/.gemini/config/config.json` at local routing, and CC Switch forwards agy's requests to the routed provider:
+
+- **Switching providers doesn't change the file**: with the Gemini native (genai) protocol, routing answers the model list itself, so switching between providers of the same protocol only changes the route and leaves `config.json` alone; the next request goes to the new provider. With the OpenAI-compatible protocol the model list is still written.
+- **Which cards can be routed**: official cards can't be the route (per the user agreement); cards without an API Key and cards with a CA certificate can only connect directly as well.
+- **Usage**: Gemini native requests have their usage recorded by routing, as the same row the session log import produces, so nothing is counted twice; OpenAI-compatible requests are still imported from the session logs.
+- Antigravity Desktop reads the model list only at startup, so after entering or leaving Routing or changing models, restart the desktop app to see the change.
+
+### Antigravity failover
+
+In Routing mode you can turn on failover and queue providers, as with Claude Code and Codex: when the routed provider fails, requests go to the next one in the queue automatically. A gateway can use only one protocol, so only cards that speak the routed provider's protocol and can serve as the route can join the queue; if the route later moves to the other protocol, members on a different protocol are marked "Other protocol" and skipped during failover.
+
+### Antigravity Aggregation mode
+
+The "Aggregation" tab at the top of the app page now supports Antigravity too: other providers' models appear in agy's model picker with a `ccs-` prefix, and whichever model you pick, the request goes to that provider, with no need to go back to CC Switch and switch. Only cards that speak the default provider's protocol and can serve as the route are accepted; when the default provider moves to the other protocol, members on the old protocol stay in the list, but their models aren't published for now.
+
+### Antigravity model options
+
+Each model in the Antigravity form can expand "More options" to set a display name, context window, max output and reasoning levels. When you pick a model from the list or type a model ID, the context window, output limit and reasoning levels are filled in from models.dev.
+
+- **Why set the context window**: agy only knows the context windows of the Gemini, GPT and Claude families; other models (such as DeepSeek, Kimi or Qwen) fail on the first turn without one, and with only a context window set the output limit is just 4096 tokens. Saving checks for what agy rejects: a model it does not recognize without a context window, an output limit without a context window, or a context window smaller than twice the output limit.
+- **Reasoning levels**: agy can't change a gateway model's thinking effort while it's running, so in Routing and Aggregation modes the model is published as one variant per level you pick, such as `deepseek-flash@max`, shown as "DeepSeek Flash (Max)". When routing receives the request, it strips `@max` and rewrites it to the matching thinking effort before forwarding. Antigravity Desktop merges a model's levels into one row and switches between them in a "Thinking effort" submenu. A model with levels picked is published only as its variants, and the default model points at the default level picked on the first row.
+- The form can also edit the gateway's custom request headers.
+
+### The tray follows the Apps page order
+
+After you reorder apps on the "Apps" page, the tray menu and quick panel show them in the same order.
+
+### THB in usage statistics
+
+([#9966](https://github.com/farion1231/cc-switch/pull/9966), closes [#9958](https://github.com/farion1231/cc-switch/issues/9958))
+
+Thai baht (THB) is now available as a display currency.
+
+---
+
+## Changes
+
+### The Global Proxy covers all subprocesses
+
+(see [#10119](https://github.com/farion1231/cc-switch/issues/10119))
+
+The Global Proxy in Settings used to apply only to CC Switch's own requests. Command-line tools in a terminal only read environment variables such as `HTTPS_PROXY`, not the system proxy, so they went direct when the user's shell didn't set one, and agy couldn't reach Google without TUN mode. The Global Proxy is now passed to every program CC Switch starts:
+
+- **Open Terminal**: when you open a terminal from a card or resume a session in a terminal, the client gets the Global Proxy. agy also gets SOCKS5 proxies; other clients get only HTTP(S) proxies and skip local addresses, so local routing still connects directly. When a card configures its own proxy, the card wins; a proxy you set yourself in your shell config file also takes precedence. When the proxy address carries a user name and password, resumed sessions don't get the proxy, because the command is shown in the terminal.
+- **Installing and upgrading tools**: install and upgrade scripts on the "Apps" page get the proxy, so both npm and the official install scripts use it.
+- **MCP connectivity checks**: locally started MCP servers get the proxy (npx and uvx download on first run) unless their own environment variables set one; HTTP / SSE checks now use the Global Proxy, and local addresses still connect directly.
+- **Login terminals**: the CodeBuddy login and Hermes dashboard terminals get the proxy too.
+
+### Per-model Fast and Lite for Codex
+
+([#10039](https://github.com/farion1231/cc-switch/pull/10039), see [#9695](https://github.com/farion1231/cc-switch/issues/9695))
+
+Each model in the Codex model list can now set Fast and Lite on its own; both are off by default:
+
+- **Fast**: when on, this model can use the Fast speed tier in Codex, including in Aggregation mode. The card's old "Keep official Fast tier" switch is gone; cards that had it on turn Fast on for their GPT models the next time you open the form.
+- **Lite**: when on, Codex requests this model in the Responses Lite format, and usage is counted as including past reasoning, so the context is no longer compacted early, before it's full, because past reasoning was estimated twice. Only relays that forward to official ChatGPT accounts accept this format.
+
+The settings are kept when the model catalog is regenerated.
+
+### Antigravity cards show the endpoint
+
+Antigravity Key cards no longer show the gateway's default model in the subtitle; like Claude Code and Codex, they show the note, website or endpoint. Official cards bound to an account show only the account.
+
+### Signing in to Antigravity through the desktop app when the CLI isn't installed
+
+([#10122](https://github.com/farion1231/cc-switch/pull/10122), [#10127](https://github.com/farion1231/cc-switch/pull/10127))
+
+When you click "Add account" in "Accounts" and Antigravity Desktop is installed but agy isn't, the desktop app opens so you can sign in there, and CC Switch doesn't clear or change the current login; a login already in the keychain that hasn't been added yet is added directly. On Windows only `agy.exe` is recognized, and it is started directly in the preferred terminal instead of through a temporary .bat; it also starts when the user directory contains characters such as `&`, `(` or `)`.
+
+---
+
+## Fixes
+
+- **The cache hit rate dropped to zero when Claude Code used Gemini models through an OpenAI-compatible relay** ([#10125](https://github.com/farion1231/cc-switch/pull/10125), see [#10090](https://github.com/farion1231/cc-switch/issues/10090)): Claude Code inserts system messages mid-conversation, and the relay moved them all into Gemini's system instruction, rewriting the start of the prompt every turn. When sending to Gemini models, mid-conversation system messages are now sent as user messages, in both the OpenAI Chat and Responses formats.
+- **Claude Code dropped thinking blocks after model mapping** ([#10108](https://github.com/farion1231/cc-switch/pull/10108), see [#5578](https://github.com/farion1231/cc-switch/issues/5578)): when the upstream returned the mapped model name, Claude Code dropped earlier signed thinking blocks. The model name in responses is now changed back to the one the client requested; requests sent upstream are unchanged, and usage is still recorded with the real upstream model.
+- **A terminal popped up when Antigravity quota was checked in the background on Windows** ([#10124](https://github.com/farion1231/cc-switch/pull/10124), closes [#10123](https://github.com/farion1231/cc-switch/issues/10123))
+- **Antigravity official cards didn't show quota by default**: after the tray moved to listing provider cards in 4.0.45, official cards with no saved usage settings (including the one imported on first launch) showed no quota in the tray or on the card. Official quota is now queried by default: bound cards query their account, and unbound cards follow agy's current login; cards where you turned it off still aren't queried.
+- **WorkBuddy "Fetch Models" dropped image models** (see [#10129](https://github.com/farion1231/cc-switch/issues/10129)): since 4.0.44, "Fetch Models" filters out image, video and other non-chat models, so a relay's image models (such as gpt-image) could no longer be picked in WorkBuddy. WorkBuddy no longer filters them; other apps are unchanged.
+- **Several problems when adding Antigravity accounts** ([#10102](https://github.com/farion1231/cc-switch/pull/10102), closes [#10099](https://github.com/farion1231/cc-switch/issues/10099)): on macOS and Linux, the wait ends as soon as agy exits in the terminal, and the original login is restored (Windows still waits until sign-in or timeout); the login terminal gets the Global Proxy on all platforms; Ghostty is brought to the front when it's already open; agy is found even when PATH is set only in shell config files; and the metadata agy 1.5 leaves after `/logout` is no longer taken as signed in.
+- **Resuming Oh My Pi sessions in Warp failed**: Warp's launch script now uses `exec env`.
+
+---
+
+## Thanks
+
+Thanks to [@allenxu09](https://github.com/allenxu09) (Gemini relay caching, response model name, CI speed-up), [@fightingnoble](https://github.com/fightingnoble) (per-model Fast and Lite for Codex), [@codexvn](https://github.com/codexvn) (response model name), [@jimpablo](https://github.com/jimpablo) (Antigravity login terminal), [@funkpopo](https://github.com/funkpopo) (Antigravity Desktop sign-in), [@z570093689](https://github.com/z570093689) (no terminal for background quota checks on Windows), [@awakenginexe](https://github.com/awakenginexe) (THB), [@YUZHEthefool](https://github.com/YUZHEthefool) (CI speed-up) for their contributions.
+
+Thanks to [@niruiqing](https://github.com/niruiqing), [@kingys1992](https://github.com/kingys1992), [@Leafseaquiet](https://github.com/Leafseaquiet), [@ref4rain](https://github.com/ref4rain), [@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot) 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.46-ja.md b/docs/release-notes/v4.0.46-ja.md
new file mode 100644
index 000000000..ef50cb5ba
--- /dev/null
+++ b/docs/release-notes/v4.0.46-ja.md
@@ -0,0 +1,104 @@
+# CC Switch v4.0.46
+
+今回のリリースでは、Antigravity にルーティング、フェイルオーバー、集約モードを追加しました。Claude Code や Codex と同じく、ローカルルーティング経由で転送して使用量を記録し、1 つのプロバイダーでエラーが起きると自動で次のプロバイダーに切り替えられます。複数のプロバイダーのモデルを agy の 1 つのモデル一覧にまとめることもできます。Antigravity のルーティングと集約モードは、OpenAI Responses や Anthropic Messages 形式との変換にはまだ対応しておらず、今後対応する予定です。Antigravity のモデルには表示名、コンテキストウィンドウ、最大出力、思考レベルを設定でき、ルーティング中は agy のモデルメニューで思考の強さを直接切り替えられます。設定のグローバルプロキシは、CC Switch が起動するすべてのプログラムに適用されるようになりました。ターミナルを開く操作、ツールのインストールとアップグレード、MCP の接続チェック、ログイン用ターミナルのいずれもこのプロキシを使います。
+
+このほか、Claude Code で OpenAI 互換の中継経由で Gemini モデルを使うとキャッシュヒット率がゼロになる問題、モデルマッピング後に Claude Code が思考ブロックを失う問題、Codex の明示的なモデル一覧でコンテキストが早めに圧縮される問題、Windows でバックグラウンドで Antigravity の残量を照会するとターミナルが開く問題、Antigravity の公式カードにデフォルトで残量が表示されない問題、WorkBuddy の「モデル一覧を取得」で画像モデルが除外される問題、Antigravity でアカウントを追加するときの複数の問題を修正しました。
+
+> ⚠️ Antigravity の直接接続モードは、サードパーティモデルの思考レベルにまだ対応していません。直接接続では agy がゲートウェイのモデルに思考の強さを送らないため、選んだ段階は反映されません。サードパーティのプラットフォームが提供するモデル(中継の Gemini モデルなど)で思考レベルを調整するには、ルーティングまたは集約モードをオンにしてください。
+
+---
+
+## 新機能
+
+### Antigravity のルーティングモード
+
+アプリのページ上部の「ルーティング」タブが Antigravity にも対応しました。ルーティングに入ると、CC Switch は `~/.gemini/config/config.json` のゲートウェイをローカルルーティングに向け、agy のリクエストは CC Switch 経由でルーティング先のプロバイダーに転送されます。
+
+- **プロバイダーを替えてもファイルは変わらない**:Gemini ネイティブ(genai)プロトコルでは、モデル一覧にはルーティングが代わりに応答するため、同じプロトコルのプロバイダー間で切り替えてもルーティング先が変わるだけで `config.json` には触れず、次のリクエストから新しいプロバイダーに送られます。OpenAI 互換プロトコルでは、これまでどおりモデル一覧を書き込みます。
+- **ルーティング先にできるカード**:公式カードはルーティング先にできません(利用規約に従うため)。API Key を入力していないカードと、CA 証明書を設定したカードも直接接続のみです。
+- **使用量**:Gemini ネイティブプロトコルのリクエストはルーティングが使用量を記録します。セッションログから取り込むものと同じ 1 件として扱うため、二重に計上されません。OpenAI 互換プロトコルのリクエストは、これまでどおりセッションログから取り込みます。
+- Antigravity デスクトップ版は起動時にしかモデル一覧を読まないため、ルーティングに入ったり出たり、モデルを変えたりした後は、デスクトップ版を再起動すると反映されます。
+
+### Antigravity のフェイルオーバー
+
+ルーティングモードではフェイルオーバーをオンにでき、Claude Code や Codex と同じくキューを組めます。ルーティング先のプロバイダーでエラーが起きると、リクエストは自動でキューの次のプロバイダーに送られます。1 つのゲートウェイは 1 つのプロトコルしか使えないため、キューに追加できるのは、ルーティング先と同じプロトコルで、ルーティング先にできるカードだけです。その後ルーティング先を別のプロトコルに替えると、プロトコルの異なるメンバーには「プロトコルが異なる」と表示され、フェイルオーバーでは飛ばされます。
+
+### Antigravity の集約モード
+
+アプリのページ上部の「集約」タブも Antigravity に対応しました。ほかのプロバイダーのモデルが `ccs-` プレフィックス付きで agy のモデル選択に表示され、選んだモデルのプロバイダーにリクエストが送られるため、CC Switch に戻って切り替える必要はありません。追加できるのは、デフォルトのプロバイダーと同じプロトコルで、ルーティング先にできるカードだけです。デフォルトのプロバイダーを別のプロトコルに替えると、古いプロトコルのメンバーはリストに残りますが、そのモデルは公開されません。
+
+### Antigravity のモデルオプション
+
+Antigravity のフォームでは、モデルごとに「その他のオプション」を展開して、表示名、コンテキストウィンドウ、最大出力、思考レベルを設定できます。一覧からモデルを選んだときやモデル ID を手入力したときは、models.dev をもとにコンテキスト、最大出力、思考レベルを自動入力します。
+
+- **コンテキストを設定する理由**:agy がコンテキストウィンドウを把握しているのは Gemini、GPT、Claude 系のモデルだけで、それ以外のモデル(DeepSeek、Kimi、Qwen など)は設定しないと会話を始めた途端にエラーになります。コンテキストだけを設定した場合、出力上限は 4096 トークンになります。保存前に、agy が拒否するケース(agy が認識しないモデルでコンテキストを設定していない、最大出力を設定してコンテキストを設定していない、コンテキストが最大出力の 2 倍未満)をチェックします。
+- **思考レベル**:agy は実行中にゲートウェイのモデルの思考の強さを変えられないため、ルーティングと集約モードでは、選んだ段階の数だけこのモデルをバリアントとして公開します。たとえば `deepseek-flash@max` は「DeepSeek Flash (Max)」と表示されます。ルーティングはリクエストを受け取ると `@max` を取り除き、対応する思考の強さに書き換えて転送します。Antigravity デスクトップ版は同じモデルの複数の段階を 1 行にまとめ、「Thinking effort」サブメニューで切り替えます。段階を選んだモデルはバリアントだけを公開し、デフォルトモデルは先頭の行で選んだデフォルトの段階を指します。
+- フォームでゲートウェイのカスタムリクエストヘッダーも編集できます。
+
+### トレイを「アプリ」ページの順に表示
+
+「アプリ」ページでアプリの順序を変えると、トレイのメニューとパネルも同じ順序で表示されます。
+
+### 使用量統計でタイバーツに対応
+
+([#9966](https://github.com/farion1231/cc-switch/pull/9966)、[#9958](https://github.com/farion1231/cc-switch/issues/9958) をクローズ)
+
+表示通貨にタイバーツ(THB)を選べるようになりました。
+
+---
+
+## 変更
+
+### グローバルプロキシをすべての子プロセスに適用
+
+([#10119](https://github.com/farion1231/cc-switch/issues/10119) を参照)
+
+これまで設定のグローバルプロキシは、CC Switch 自身が送るリクエストにしか使われていませんでした。ターミナルのコマンドラインツールは `HTTPS_PROXY` のような環境変数しか見ずシステムプロキシを読まないため、ユーザーのシェルで設定していなければ直接接続になり、TUN モードを使っていない agy は Google に接続できませんでした。現在はグローバルプロキシを CC Switch が起動するすべてのプログラムに渡します。
+
+- **ターミナルを開く**:カードからターミナルを開くとき、ターミナルでセッションを再開するとき、クライアントにグローバルプロキシを渡します。agy には SOCKS5 プロキシも渡します。その他のクライアントには HTTP(S) プロキシだけを渡し、ローカルアドレスは除外するため、ローカルルーティングは引き続き直接接続されます。カード自体にプロキシが設定されている場合はカードの設定が優先され、シェルの設定ファイルで自分で設定したプロキシも優先されます。プロキシのアドレスにユーザー名とパスワードが含まれる場合、コマンドがターミナルに表示されるため、セッションの再開ではプロキシを渡しません。
+- **ツールのインストールとアップグレード**:「アプリ」ページのインストールとアップグレードのスクリプトにプロキシを渡し、npm と公式インストールスクリプトのどちらもこれを使います。
+- **MCP の接続チェック**:ローカルで起動する MCP には、自身の環境変数で設定されていない限りプロキシを渡します(初回実行時に npx や uvx がダウンロードするため)。HTTP / SSE のチェックはグローバルプロキシを使うようになり、ローカルアドレスは引き続き直接接続します。
+- **ログイン用ターミナル**:CodeBuddy のログインと Hermes ダッシュボードのターミナルにもプロキシを渡します。
+
+### Codex でモデルごとに Fast と Lite を設定
+
+([#10039](https://github.com/farion1231/cc-switch/pull/10039)、[#9695](https://github.com/farion1231/cc-switch/issues/9695) を参照)
+
+Codex のモデル一覧で、モデルごとに Fast と Lite を設定できるようになりました。どちらもデフォルトはオフです。
+
+- **Fast**:オンにすると、Codex でこのモデルに Fast 速度ティアを選べるようになり、集約モードでも有効です。カードにあった「公式の Fast ティアを残す」スイッチは削除しました。このスイッチをオンにしていたカードは、次にフォームを開いたときに GPT モデルの Fast が自動でオンになります。
+- **Lite**:オンにすると、Codex はこのモデルに Responses Lite 形式でリクエストし、使用量は過去の推論を含むものとして計算されるため、過去の推論を二重に見積もってコンテキストを使い切る前に圧縮することはありません。この形式を受け付けるのは、公式 ChatGPT アカウントへ転送する中継だけです。
+
+モデルカタログを再生成しても設定は保持されます。
+
+### Antigravity のカードに API アドレスを表示
+
+Antigravity の Key カードは、サブタイトルにゲートウェイのデフォルトモデルを表示しなくなり、Claude Code や Codex と同じくメモ、Web サイト、または API アドレスを表示します。アカウントを紐付けた公式カードはアカウントだけを表示します。
+
+### CLI がなければ Antigravity デスクトップ版でログイン
+
+([#10122](https://github.com/farion1231/cc-switch/pull/10122)、[#10127](https://github.com/farion1231/cc-switch/pull/10127))
+
+「アカウント」ページで「アカウントを追加」するとき、agy がインストールされておらず Antigravity デスクトップ版がある場合は、デスクトップ版を開いてそこでログインしてもらいます。CC Switch は現在のログインを消去したり変更したりしません。キーチェーンにすでにあり、まだ取り込まれていないログインはそのまま取り込みます。Windows では `agy.exe` だけを認識し、優先ターミナルで直接起動するため、一時的な .bat を書き出さなくなりました。ユーザーフォルダーに `&`、`(`、`)` のような文字が含まれていても起動できます。
+
+---
+
+## 修正
+
+- **Claude Code で OpenAI 互換の中継経由で Gemini モデルを使うと、キャッシュヒット率がゼロになる**([#10125](https://github.com/farion1231/cc-switch/pull/10125)、[#10090](https://github.com/farion1231/cc-switch/issues/10090) を参照):Claude Code は会話の途中にシステムメッセージを挿入しますが、中継がそれらをすべて Gemini のシステム指示に移すため、毎ターンプロンプトの先頭が書き換わっていました。現在は Gemini モデルに送るとき、会話途中のシステムメッセージをユーザーメッセージに変換します。OpenAI Chat と Responses の両方の形式に対応します。
+- **モデルマッピング後に Claude Code が思考ブロックを失う**([#10108](https://github.com/farion1231/cc-switch/pull/10108)、[#5578](https://github.com/farion1231/cc-switch/issues/5578) を参照):上流がマッピング後のモデル名を返すと、Claude Code はそれまでの署名付き思考ブロックを捨てていました。現在はレスポンスのモデル名をクライアントがリクエストしたものに戻します。上流に送るリクエストは変わらず、使用量は引き続き上流の実際のモデルで記録します。
+- **Windows でバックグラウンドで Antigravity の残量を照会するとターミナルが開く**([#10124](https://github.com/farion1231/cc-switch/pull/10124)、[#10123](https://github.com/farion1231/cc-switch/issues/10123) をクローズ)
+- **Antigravity の公式カードにデフォルトで残量が表示されない**:4.0.45 でトレイがプロバイダーカードを並べるようになってから、使用量の設定を保存したことのない公式カード(初回起動時に取り込んだカードを含む)は、トレイとカードのどちらにも残量が表示されませんでした。現在はデフォルトで公式の残量を照会します。アカウントを紐付けたカードはそのアカウントを、紐付けていないカードは agy の現在のログインを照会します。手動でオフにしたカードは引き続き照会しません。
+- **WorkBuddy でモデル一覧を取得すると画像モデルが除外される**([#10129](https://github.com/farion1231/cc-switch/issues/10129) を参照):4.0.44 から「モデル一覧を取得」は画像や動画などの会話用でないモデルを除外するようになり、WorkBuddy で中継の画像生成モデル(gpt-image など)を選べなくなっていました。現在は WorkBuddy では除外せず、ほかのアプリはこれまでどおりです。
+- **Antigravity でアカウントを追加するときの複数の問題**([#10102](https://github.com/farion1231/cc-switch/pull/10102)、[#10099](https://github.com/farion1231/cc-switch/issues/10099) をクローズ):macOS と Linux では、ターミナルで agy が終了するとすぐに待機を終え、元のログインを書き戻します(Windows は引き続きログインかタイムアウトまで待ちます)。ログイン用ターミナルはすべてのプラットフォームでグローバルプロキシを使います。Ghostty がすでに開いている場合は前面に表示されます。PATH をシェルの設定ファイルにだけ書いている場合も agy を見つけられます。agy 1.5 で `/logout` を実行した後に残るメタデータを、ログイン済みとみなさなくなりました。
+- **Warp で Oh My Pi のセッションを再開できない**:Warp の起動スクリプトで `exec env` を使うようにしました。
+
+---
+
+## 謝辞
+
+[@allenxu09](https://github.com/allenxu09)(Gemini の中継のキャッシュ、レスポンスのモデル名、CI の高速化)、[@fightingnoble](https://github.com/fightingnoble)(Codex のモデルごとの Fast と Lite)、[@codexvn](https://github.com/codexvn)(レスポンスのモデル名)、[@jimpablo](https://github.com/jimpablo)(Antigravity のログイン用ターミナル)、[@funkpopo](https://github.com/funkpopo)(Antigravity デスクトップ版でのログイン)、[@z570093689](https://github.com/z570093689)(Windows のバックグラウンドでの残量照会でターミナルを開かない)、[@awakenginexe](https://github.com/awakenginexe)(タイバーツ)、[@YUZHEthefool](https://github.com/YUZHEthefool)(CI の高速化)の貢献に感謝します。
+
+問題の報告と再現情報の提供に協力してくださった [@niruiqing](https://github.com/niruiqing)、[@kingys1992](https://github.com/kingys1992)、[@Leafseaquiet](https://github.com/Leafseaquiet)、[@ref4rain](https://github.com/ref4rain)、[@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot) に感謝します。
+
+技術的な詳細は [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md) をご覧ください。
diff --git a/docs/release-notes/v4.0.46-zh.md b/docs/release-notes/v4.0.46-zh.md
new file mode 100644
index 000000000..aa04f4d42
--- /dev/null
+++ b/docs/release-notes/v4.0.46-zh.md
@@ -0,0 +1,104 @@
+# CC Switch v4.0.46
+
+本版本为 Antigravity 增加了路由、故障转移和聚合模式:和 Claude Code、Codex 一样,可以经本地路由转发、记录用量,一家出错时自动换下一家,也可以把多家供应商的模型放进 agy 的同一个模型列表。Antigravity 的路由和聚合模式暂时还不支持和 OpenAI Responses、Anthropic Messages 格式之间的转换,后续会做。Antigravity 的模型可以填显示名、上下文窗口、输出上限和思考等级,路由时在 agy 的模型菜单里直接切换思考强度。设置里的全局代理现在覆盖 CC Switch 启动的所有程序:打开终端、安装升级工具、MCP 连通性检查和登录终端都会走它。
+
+修复包括:Claude Code 经 OpenAI 兼容中转用 Gemini 模型时缓存命中率归零,模型映射后 Claude Code 丢掉思考块,Codex 显式模型列表提前压缩上下文,Windows 后台查 Antigravity 额度弹出终端,Antigravity 官方卡默认不显示额度,WorkBuddy 获取模型列表丢掉图片模型,以及 Antigravity 添加账号时的多处问题。
+
+> ⚠️ Antigravity 的直连模式暂不支持第三方模型的思考等级:直连时 agy 不会给网关模型发思考强度,选的档位不生效。要用第三方平台提供的模型(比如中转的 Gemini 模型)调思考等级,请打开路由或聚合模式。
+
+---
+
+## 新增
+
+### Antigravity 路由模式
+
+应用页顶部的「路由」标签现在也支持 Antigravity。进入路由后,CC Switch 把 `~/.gemini/config/config.json` 的网关指向本地路由,agy 的请求经 CC Switch 转发给路由的那家:
+
+- **换供应商不改文件**:Gemini 原生(genai)协议下,模型列表由路由代答,在同协议的供应商之间切换只改路由,不碰 `config.json`,下一个请求就换家。OpenAI 兼容协议仍会写入模型列表。
+- **哪些卡能当路由**:官方卡不能当路由(遵守用户协议);没填 API Key 的卡、填了 CA 证书的卡也只能直连。
+- **用量**:Gemini 原生协议的请求由路由记录用量,和会话日志导入的是同一条,不会重复计算;OpenAI 兼容协议的请求仍从会话日志导入。
+- Antigravity 桌面版只在启动时读模型列表,进出路由、换了模型后要重启桌面版才能看到。
+
+### Antigravity 故障转移
+
+路由模式下可以打开故障转移,像 Claude Code、Codex 一样排队:路由的那家出错时,请求自动发给队列里的下一家。一个网关只能用一种协议,所以只有和路由那家同协议、能当路由的卡能加入队列;之后路由换成另一种协议时,协议不同的成员会标「协议不同」,故障转移时跳过。
+
+### Antigravity 聚合模式
+
+应用页顶部的「聚合」标签也支持 Antigravity 了:其他供应商的模型以 `ccs-` 前缀出现在 agy 的模型选择器里,选哪个模型,请求就发给哪一家,不用回 CC Switch 切换。只收和默认那家同协议、能当路由的卡;默认那家换成另一种协议后,旧协议的成员留在名单里,但模型暂不发布。
+
+### Antigravity 模型选项
+
+Antigravity 表单里每个模型都可以展开「更多选项」,填显示名、上下文窗口、输出上限和思考等级。从列表选模型或手动输入模型 ID 时,会按 models.dev 自动补全上下文、输出上限和思考等级。
+
+- **为什么要填上下文**:agy 只认得 Gemini、GPT、Claude 系列的上下文窗口,其他模型(如 DeepSeek、Kimi、Qwen)不填就一对话就报错;只填上下文时输出上限只有 4096 tokens。保存前会检查 agy 会拒绝的情况:它不认识的模型没填上下文、填了输出上限没填上下文、上下文小于输出上限的 2 倍。
+- **思考等级**:agy 运行中改不了网关模型的思考强度,所以路由和聚合模式下,选了几个档位,就把这个模型发布成几个变体,比如 `deepseek-flash@max`,显示为「DeepSeek Flash (Max)」。路由收到请求时去掉 `@max`,改写成对应的思考强度再转发。Antigravity 桌面版会把同一个模型的几档合成一行,在「Thinking effort」子菜单里切换。选了档位的模型只发布变体,默认模型指向第一行选的默认档。
+- 表单也可以编辑网关的自定义请求头。
+
+### 托盘按应用页的顺序排列
+
+在应用页调整应用顺序后,托盘菜单和快捷面板也按同样的顺序显示。
+
+### 用量统计支持泰铢
+
+([#9966](https://github.com/farion1231/cc-switch/pull/9966),关闭 [#9958](https://github.com/farion1231/cc-switch/issues/9958))
+
+显示币种可以选泰铢(THB)。
+
+---
+
+## 变更
+
+### 全局代理覆盖所有子进程
+
+(见 [#10119](https://github.com/farion1231/cc-switch/issues/10119))
+
+以前设置里的全局代理只作用于 CC Switch 自己发的请求。终端里的命令行工具只认 `HTTPS_PROXY` 这类环境变量、不读系统代理,用户 shell 里没设时会直连,没开 TUN 模式的 agy 连不上 Google。现在全局代理会交给 CC Switch 启动的所有程序:
+
+- **打开终端**:从卡片打开终端、在终端里恢复会话时,客户端带上全局代理。agy 还会收到 SOCKS5 代理;其他客户端只收 HTTP(S) 代理,并跳过本机地址,保证本地路由仍然直连。卡片自己配了代理时以卡片为准;你在 shell 配置文件里自己设的代理也优先。代理地址带账号密码时,恢复会话不带代理,因为命令会显示在终端里。
+- **安装、升级工具**:「应用」页的安装和升级脚本带上代理,npm 和官方安装脚本都走它。
+- **MCP 连通性检查**:本地启动的 MCP 带上代理(首次运行时 npx、uvx 要下载),除非它自己的环境变量里设了;HTTP / SSE 检查改用全局代理,本机地址仍然直连。
+- **登录终端**:CodeBuddy 登录和 Hermes 仪表盘的终端也带上代理。
+
+### Codex 每个模型单独设置 Fast 和 Lite
+
+([#10039](https://github.com/farion1231/cc-switch/pull/10039),见 [#9695](https://github.com/farion1231/cc-switch/issues/9695))
+
+Codex 模型列表里每个模型都可以单独设置 Fast 和 Lite,默认都是关:
+
+- **Fast**:打开后这个模型在 Codex 里可以选 Fast 速度档,聚合模式下也生效。原来卡片上的「保留官方 Fast 档」开关去掉了,打开过它的卡在下次打开表单时会自动给 GPT 模型打开 Fast。
+- **Lite**:打开后 Codex 用 Responses Lite 格式请求这个模型,用量按包含历史推理计算,不会因为重复估算历史推理而在上下文还没用满时提前压缩。只有转发官方 ChatGPT 账号的中转认这种格式。
+
+设置在重新生成模型目录后会保留。
+
+### Antigravity 卡片显示接口地址
+
+Antigravity 的 Key 卡不再在副标题里显示网关的默认模型,改成和 Claude Code、Codex 一样显示备注、官网或接口地址;绑定了账号的官方卡只显示账号。
+
+### Antigravity 没装 CLI 时用桌面版登录
+
+([#10122](https://github.com/farion1231/cc-switch/pull/10122)、[#10127](https://github.com/farion1231/cc-switch/pull/10127))
+
+授权中心「添加账号」时,没装 agy 但装了 Antigravity 桌面版,会打开桌面版让你在里面登录,CC Switch 不会清掉或改动当前登录;钥匙串里已有、还没收录的登录会直接收录。Windows 上只认 `agy.exe`,直接在首选终端里启动它,不再写临时 .bat;用户目录带 `&`、`(`、`)` 这类字符时也能启动。
+
+---
+
+## 修复
+
+- **Claude Code 经 OpenAI 兼容中转用 Gemini 模型时,缓存命中率归零**([#10125](https://github.com/farion1231/cc-switch/pull/10125),见 [#10090](https://github.com/farion1231/cc-switch/issues/10090)):Claude Code 会在对话中间插入系统消息,中转把它们都挪到 Gemini 的系统指令里,每轮都改写了提示词开头。现在发给 Gemini 模型时,对话中间的系统消息改成用户消息,OpenAI Chat 和 Responses 两种格式都处理。
+- **模型映射后,Claude Code 丢掉思考块**([#10108](https://github.com/farion1231/cc-switch/pull/10108),见 [#5578](https://github.com/farion1231/cc-switch/issues/5578)):上游返回的是映射后的模型名时,Claude Code 会丢掉之前带签名的思考块。现在响应里的模型名改回客户端请求的那个,发给上游的请求不变,用量仍按上游真实模型记录。
+- **Windows 后台查 Antigravity 额度时弹出终端**([#10124](https://github.com/farion1231/cc-switch/pull/10124),关闭 [#10123](https://github.com/farion1231/cc-switch/issues/10123))
+- **Antigravity 官方卡默认不显示额度**:4.0.45 托盘改成列供应商卡片后,没保存过用量设置的官方卡(包括首次启动导入的那张)在托盘和卡片上都不显示额度。现在默认查官方额度:绑定了账号的卡查那个号,没绑定的跟随 agy 当前登录;手动关掉的仍然不查。
+- **WorkBuddy 获取模型列表时丢掉图片模型**(见 [#10129](https://github.com/farion1231/cc-switch/issues/10129)):4.0.44 起「获取模型列表」会过滤掉图片、视频等非对话模型,WorkBuddy 里用中转的作图模型(如 gpt-image)就选不到了。现在 WorkBuddy 不再过滤,其他应用照旧。
+- **Antigravity 添加账号的多处问题**([#10102](https://github.com/farion1231/cc-switch/pull/10102),关闭 [#10099](https://github.com/farion1231/cc-switch/issues/10099)):macOS、Linux 上 agy 在终端里退出后立即结束等待,并还原原来的登录(Windows 仍等到登录或超时);登录终端在所有平台都带上全局代理;Ghostty 已打开时会被带到前台;PATH 只写在 shell 配置文件里时也能找到 agy;agy 1.5 执行 `/logout` 后残留的元数据不再被当成已登录。
+- **在 Warp 里恢复 Oh My Pi 会话失败**:Warp 的启动脚本改用 `exec env`。
+
+---
+
+## 致谢
+
+感谢 [@allenxu09](https://github.com/allenxu09)(Gemini 中转缓存、响应模型名、CI 提速)、[@fightingnoble](https://github.com/fightingnoble)(Codex 每模型 Fast 和 Lite)、[@codexvn](https://github.com/codexvn)(响应模型名)、[@jimpablo](https://github.com/jimpablo)(Antigravity 登录终端)、[@funkpopo](https://github.com/funkpopo)(Antigravity 桌面版登录)、[@z570093689](https://github.com/z570093689)(Windows 后台查额度不弹终端)、[@awakenginexe](https://github.com/awakenginexe)(泰铢)、[@YUZHEthefool](https://github.com/YUZHEthefool)(CI 提速)的贡献。
+
+感谢 [@niruiqing](https://github.com/niruiqing)、[@kingys1992](https://github.com/kingys1992)、[@Leafseaquiet](https://github.com/Leafseaquiet)、[@ref4rain](https://github.com/ref4rain)、[@PHOENIX-collab-bot](https://github.com/PHOENIX-collab-bot) 报告问题和提供复现信息。
+
+完整的技术细节请见 [CHANGELOG](https://github.com/farion1231/cc-switch/blob/main/CHANGELOG.md)。
diff --git a/package.json b/package.json
index b5cb20cd4..96ba9a317 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cc-switch",
- "version": "4.0.45",
+ "version": "4.0.46",
"description": "All-in-One Assistant for Claude Code, Codex & Gemini CLI",
"type": "module",
"scripts": {
diff --git a/src-tauri/Cargo.lock b/src-tauri/Cargo.lock
index 1fcd54870..d6115cc32 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -767,7 +767,7 @@ dependencies = [
[[package]]
name = "cc-switch"
-version = "4.0.45"
+version = "4.0.46"
dependencies = [
"aho-corasick",
"anyhow",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 99d36eecc..a8ddcaa6f 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cc-switch"
-version = "4.0.45"
+version = "4.0.46"
description = "All-in-One Assistant for Claude Code, Codex & Gemini CLI"
authors = ["Jason Young"]
license = "MIT"
diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json
index dc76f25b2..3c7251b0d 100644
--- a/src-tauri/tauri.conf.json
+++ b/src-tauri/tauri.conf.json
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "CC Switch",
- "version": "4.0.45",
+ "version": "4.0.46",
"identifier": "com.ccswitch.desktop",
"build": {
"frontendDist": "../dist",
diff --git a/src/whats-new/4.0.46.json b/src/whats-new/4.0.46.json
new file mode 100644
index 000000000..66e32c897
--- /dev/null
+++ b/src/whats-new/4.0.46.json
@@ -0,0 +1,33 @@
+{
+ "version": "4.0.46",
+ "items": [
+ {
+ "type": "new",
+ "zh": "Antigravity 支持路由、故障转移和聚合模式",
+ "zh-TW": "Antigravity 支援路由、故障轉移和聚合模式",
+ "en": "Antigravity now supports route, failover and aggregation modes",
+ "ja": "Antigravity がルーティング・フェイルオーバー・集約モードに対応"
+ },
+ {
+ "type": "new",
+ "zh": "Antigravity 模型可设上下文、输出上限和思考等级",
+ "zh-TW": "Antigravity 模型可設上下文、輸出上限和思考等級",
+ "en": "Set context window, output limit and thinking levels for Antigravity models",
+ "ja": "Antigravity のモデルにコンテキスト・出力上限・思考レベルを設定可能に"
+ },
+ {
+ "type": "improve",
+ "zh": "全局代理覆盖打开终端、安装工具和 MCP 检查",
+ "zh-TW": "全域代理涵蓋開啟終端、安裝工具和 MCP 檢查",
+ "en": "The global proxy now covers Open terminal, tool installs and MCP checks",
+ "ja": "グローバルプロキシがターミナル起動・ツールのインストール・MCP チェックにも適用"
+ },
+ {
+ "type": "new",
+ "zh": "Codex 每个模型可以单独设置 Fast 和 Lite",
+ "zh-TW": "Codex 每個模型可以單獨設定 Fast 和 Lite",
+ "en": "Codex models get their own Fast and Lite settings",
+ "ja": "Codex のモデルごとに Fast と Lite を設定可能に"
+ }
+ ]
+}