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.45

Jason9f537966563b
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f7158b0f9..2f0fcd145 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,61 @@ 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.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.
+
+**Stats**: 52 commits | 214 files changed | +15873 insertions | -7056 deletions
+
+### Changed
+
+- **Antigravity Switches Providers through the Enterprise Gateway** (37ddb1531, 28a4dfc43, 292e9481b, 64f987192, 840b3b254, 73b12d525, e45576b88, 8a5c5886b): Antigravity reads an Enterprise Gateway block from the top level of `~/.gemini/config/config.json` (verified with agy CLI 1.5.20 and Antigravity Desktop 2.36.0), so it becomes a switch-mode app. `gateway` and `models` are the floor and `caCertPath` is provider-exclusive; plugins, sidecars and user settings in the same file are never touched.
+ - Key cards project to a `genai` or `openai` gateway (adding `x-goog-api-key` for genai relays that ignore the bearer token; cards without an address use Google's Gemini API). An empty model list is not written, so agy fetches models from the gateway. Rows keep the old `env` shape; the old display-name model is not projected.
+ - Official cards clear the gateway block and switch the bound Auth Center account first; a failed login switch leaves the file and pointer untouched. When Antigravity has no cards yet, an enabled gateway already in `config.json` is imported at startup as the default key card.
+ - Switching, saving the current card, sync and the first card go through the write engine with the device-local pointer. The card in use shows "In use" and cannot be deleted, the others get "Switch" as the main button instead of "Open terminal", which stays available through the card's terminal icon. Deep links with `enabled=true` switch to the imported card, and the confirmation shows the switch toggle for Antigravity.
+ - Key-card terminals keep their private `--gemini_dir`, whose `config` is now a real directory linking every shared entry except `config.json`, which carries that card's own gateway. Opening an official card's terminal while a third-party card is in use is refused.
+ - The form edits protocol, model IDs (one per row, the first is the default, fetched models through the shared picker) and CA certificate, and the bottom editor previews `config.json` with the card applied; global settings edited there are written with a three-way check. Cards show the gateway's default model; the "agy in use" badge is gone.
+ - While a gateway card is current, quota queries return the last recorded quota without starting agy, since `agy --print /usage` reports no quota groups in gateway mode.
+- **Antigravity Provider Cards in the Tray** (402d8ec39, supersedes #10056): Antigravity joins the tray as a switch-mode row like Gemini CLI. Clicking a card switches through the gateway; an official card bound to an Auth Center account switches the agy login first. Bound cards show the account as their hint and, with official quota enabled, read that account's quota through the shared tray quota gate. The account-only section, its texts and the `nav:page:auth` target are gone.
+- **Antigravity Desktop Credential Sync** (#9999, 4cecfaa33): After a verified switch or sign-in, Antigravity Desktop's cached `credential-user-scope` is cleared and an existing standalone token file (`~/.gemini/jetski-standalone-oauth-token`) is updated; Linux reads and writes both the login and default Secret Service collections. Antigravity Desktop installs are detected, with fallback to the shared config directory and separate Desktop / IDE session roots. Adding an account clears the keychain login so agy opens straight into sign-in; cancel, dialog close, timeout and quitting CC Switch write the original login back if the keychain is still empty. Re-login passes the account id, recognizes a same-account re-login, warns when a different account signs in and clears the re-auth target on cancel. The running-agy check and its warning before switching, signing in and opening terminals are dropped; the switch toast says a running Antigravity needs a restart.
+- **Skills Discovery Traffic** (#10061, supersedes #8490): Opening Discover renders cached skills instead of re-downloading every repository. Before downloading an archive, discovery reads the Git Smart HTTP `info/refs` advertisement (10 s deadline, 512 KiB cap) for the default branch and commit; unchanged repositories reuse `~/.cc-switch/skill-discovery-cache.json` (0600) and download nothing. Archives are pinned to the commit, only `SKILL.md` entries are scanned in `spawn_blocking` with decompression budgets, and at most three repositories are fetched at once. Repositories saved with the `HEAD` branch get their resolved branch written back and displayed.
+- **Presets**: APIONE added as a basic sponsor (711f32d53, adds `gpt-6.2-sol` to Pi's catalog); FastAIToken links to its invite page (2932fb412); V-API removed (0e658b0ec).
+
+### Added
+
+- **Full URL Toggle for Claude Desktop** (#8713, fixes #8393): Claude Desktop cards whose connection mode is Model mapping (routed through the local proxy) get the Full URL switch, so endpoints with their own version segment (such as `/api/paas/v4`) no longer turn into `/v4/v1/chat/completions`. `meta.isFullUrl` is saved only when on and is no longer erased on save; the toggle resets when the connection mode goes back to Direct or the preset changes, and is hidden for official and managed OAuth providers.
+
+### Fixed
+
+- **Windows Tool Installs under Temp Paths with Spaces and Parentheses** (889e3f94b, refs #10067): The temporary install script runs as `cmd /D /V:OFF /S /C ""%CC_SWITCH_LIFECYCLE_SCRIPT%""`, so a home directory such as `C:\Users\A (B)` no longer splits the path at the first space.
+- **Codex Tool Turns to Fable 5.2 Rejected Locally** (4eba7b37b, refs #10070): `claude-fable-5-2` joins `accepts_unsigned_tool_history`, so a turn after a tool call without signed thinking is forwarded with `thinking: adaptive` instead of failing with `cc_switch_invalid_request`. Dated snapshots such as `fable-5-20260609` keep the local rejection.
+- **agy Ignored the Global Proxy** (2212741fc, refs #10071): Background agy runs (`/usage`, `agy models`) get the global proxy as `HTTPS_PROXY` / `HTTP_PROXY`, including SOCKS5 (`socks5h` is rewritten to `socks5`), plus a loopback `NO_PROXY` only when none is set. The `/usage` run, rebuilt without it in #10062, uses `background_command` again.
+- **agy.exe from the Antigravity Desktop Installer** (ab96ccbfe, refs #10105): Windows probes `%USERPROFILE%\.gemini\bin` after the install.ps1 directory, for the Auth Center login terminal, background quota and model listing, and the Apps page.
+- **Antigravity Quota for Non-current Accounts** (12602ddfc, #10073 fixes #10072, #10087): Non-current accounts in the Auth Center read the saved quota through a local-only `agy_account_last_quota` command, and their refresh button is disabled with a hint; bound provider cards say that only the signed-in account can be checked. Long quota notes no longer overflow the account name and show a tooltip when truncated.
+- **Antigravity Quota Failures and Login Terminal** (#10062): Failed quota results are reused for at most 20 s and not recorded; a query that finishes after the account changed returns the old account's saved quota. Timed-out `/usage` runs kill the whole process tree, and the frontend no longer retries a timed-out query. The "Add account" terminal starts agy through `real_agy_bin()`, keeping the Windows `.bat` pure ASCII.
+- **Importing Antigravity without agy Settings** (0d13ec4c1, refs #10107): "Import current config" with only Antigravity Desktop installed imports nothing instead of failing with "configuration files are missing".
+- **Linux AppImage Crash on Newer Wayland Systems** (aada03537, fixes #10078): `libwayland-cursor`, `libwayland-egl`, `libwayland-server`, `libXcursor` and `libxkbcommon` are no longer bundled, so the old `libwayland-cursor` no longer recurses on cyclic cursor themes.
+- **Linux Desktop Entry Name** (#7639, fixes #7638): deb, rpm and AppImage install `cc-switch.desktop` (still `Name=CC Switch`), so Wayland compositors find the window icon. Pinned taskbar entries may need to be pinned again.
+- **"Symlink Only" Skills Sync on Windows** (27b0a3875, refs #10081): When `symlink_dir` fails with `ERROR_PRIVILEGE_NOT_HELD`, an NTFS junction is created with `mklink /J`, so the option works without Developer Mode and "Auto" no longer falls back to copying. Paths containing `%` are refused.
+- **Copilot Quota Missing in the Tray** (5bef86acc, refs #10106): Copilot proxy cards without a usage script count as a quota source in the tray and the manual-only switch, query the Copilot path and refresh on the card's 5-minute interval.
+- **Kimi For Coding Global Quota** (#9667): `api.kimi.ai/coding` is recognized as a coding plan and queried at its own region's `/coding/v1/usages`; cards show the tighter monthly pool on a Monthly line, with both pools in the breakdown.
+- **Codex Standalone Web Search in Aggregation Mode** (#9864): `/v1/alpha/search` is routed by its model to the selected stack member instead of the default provider.
+- **Copilot Tool-free Claude Requests** (#9998): The warmup downgrade to `gpt-5-mini` requires the one-token probe shape, so regular requests with an empty tool list stay on Auto.
+- **Streamed Function Calls with Empty Names** (#7912, fixes #7671): Native Responses streams that send empty `name` / `call_id` in end events get them filled from `output_item.added`, so Codex no longer reports `unsupported call`.
+- **Read Tool with Empty Arguments** (#6481): A `function_call_arguments.done` event with empty `arguments` falls back to the buffered deltas.
+- **Pi Sessions over 128 MiB** (#8122, fixes #8121): The limit applies to each JSONL line instead of the whole file, and the exact append offset is stored in `last_byte_offset`.
+- **Hermes and OpenCode Remote MCP Servers** (#8824, fixes #8823): Hermes `url` entries import as `http` (or `sse` with `transport: sse`) and OpenCode `remote` servers as `http`; writing back to Hermes keeps an existing `transport: sse`.
+- **Empty MCP Command Arguments** (#8561, fixes #8560): Empty arguments keep their positions through form and JSON edits.
+- **OMO Disabled Variants** (#8152, fixes #8149): Model variants with `disabled: true` are left out of the OMO / OMO Slim choices.
+- **Re-adding a Seeded Official Provider** (#6297, fixes #6280): Re-adding the Claude Desktop or Grok Build official provider shows that it already exists instead of "Provider added".
+- **IME Input in Provider Forms** (#6648): Claude, Pi and Claude Desktop free-text fields use IME-safe inputs.
+- **Usage Date Range** (#4501, #7209): Picking a calendar day selects 00:00:00–23:59:59 of that day; the provider filter is wide enough for longer labels.
+- **Page Language for Screen Readers** (67070d276, refs #10097): The main window and tray panel set `<html lang>` to the interface language.
+
+### Internal
+
+- Table-driven consolidation of deeplink, proxy helper and Copilot helper tests (#10077, #10079, #10080) and a regression test for the Anthropic carrier tool lift (#7564); stale-issue workflow and path filters cleaned up (#8131); Antigravity rollback and binding-save tests run with their own test home (ec663402b, 8a5c5886b).
+
## [4.0.44] - 2026-11-27
CC Switch now manages ZCode (Zhipu's coding client): custom providers with per-model limits, MCP, Skills, prompts, sessions and usage import. Antigravity accounts no longer go through agy's own OAuth client: adding an account opens agy in a terminal, and quota comes from agy's `/usage`. Claude Desktop gets a Command Code preset. Fixes cover Codex tool calls rejected by Gemini behind Chat Completions gateways, saved accounts lost when an account file could not be read, Codex's stashed ChatGPT login dropped while clearing third-party residue, deleting every line that sets a variable instead of the selected one, image and video models in fetched model lists, skills.sh installs kept under `.claude/skills`, the tray panel scrolling too early, the xAI card hidden when only Grok Build is shown, unbounded SSE event buffers, an empty Marketplaces tab on unreadable output and Skill protection messages naming Pi on other apps.
diff --git a/package.json b/package.json
index c7685aa7e..505c17fcc 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cc-switch",
- "version": "4.0.44",
+ "version": "4.0.45",
"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 2ff709df5..f01d0412b 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -767,7 +767,7 @@ dependencies = [
[[package]]
name = "cc-switch"
-version = "4.0.44"
+version = "4.0.45"
dependencies = [
"aho-corasick",
"anyhow",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 64fa4b29b..d968982dd 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cc-switch"
-version = "4.0.44"
+version = "4.0.45"
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 ba7437f39..dc76f25b2 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.44",
+ "version": "4.0.45",
"identifier": "com.ccswitch.desktop",
"build": {
"frontendDist": "../dist",