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

Jason6a6ec2c7fa88
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 84c533689..2f43ee337 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,50 @@ 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.47] - 2026-12-01
+
+Cloud sync can encrypt what it uploads: with an encryption key set, WebDAV and S3 snapshots are encrypted on the device before upload, and a device with a different key or no key cannot overwrite them by accident. The usage heatmap opens a day's totals and hourly trend in place, and Shift+click selects a date range. The Auth Center no longer collects logins the user has not added: Antigravity and WorkBuddy show an uncollected login with a button to collect it, and a displaced login is kept aside instead of being added. Antigravity third-party models on the Gemini native protocol can read images, and Codex usage from CodeBuddy IDE plugins is imported. Fixes cover the Windows Antigravity login waiting until timeout after the terminal closed, Antigravity quota missing when only the desktop app is installed, Codex managed official logins failing after Codex CLI 0.172 refreshed them, `codex login --with-api-key` logins deleted on the first third-party switch, Codex session headers dropped in aggregation, Claude Code terminals failing on Windows for providers with Chinese ids, Claude Code updates on the stable channel, OpenClaw models added while editing, OpenCode OMO state after failed writes and the macOS context menu staying in English.
+
+**Stats**: 32 commits | 134 files changed | +8012 insertions | -1416 deletions
+
+### Added
+
+- **Encrypted Cloud Sync** (#10152): WebDAV and S3 sync get an optional, device-local encryption key (`settings.json`, not synced). With a key, `db.sql` and `skills.zip` are encrypted with AES-256-GCM (key derived by PBKDF2-HMAC-SHA256, 600,000 iterations, fresh salt and nonce per upload) and decrypted before the size and SHA-256 checks on download; without one, snapshots stay plaintext and compatible. `manifest.json` records an `encryption` block with a key check, so uploads with a mismatched key or an unsupported format are refused, and overwriting an encrypted remote with plaintext is blocked in auto sync and needs an explicit confirmation when uploading by hand. Downloading an encrypted snapshot without a key reports it instead of failing on parse.
+- **Usage Heatmap Details and Range Selection** (#9994): Clicking a day in the heatmap expands a drawer below it with that day's tokens, requests, cost and cache hit rate plus an hourly trend; Shift+click selects a contiguous range (daily trend, including days kept only as daily rollups), and "Apply to main filter" copies the range to the dashboard. Days older than the raw-log retention show their totals with a note instead of an empty hourly chart.
+- **Antigravity Image Input for Third-party Models** (9de1dccc0, refs #10219): agy only lets gateway models whose id contains gemini, claude or gpt read images. Model rows get an "Image input" switch (filled from models.dev input modalities) that projects `supportsImages: true` onto `models.list[]` on the genai protocol only; on openai agy sends no image bytes, so the switch is disabled with a note and the row keeps the value. `supportedMimeTypes` is never written because agy then rejects the whole gateway config.
+- **CodeBuddy IDE Plugin Usage** (2ac55f7ba, refs #10011): Usage from the JetBrains and VS Code CodeBuddy plugins and the CodeBuddy IDE (`CodeBuddyExtension/Data/.../history/.../index.json`) is imported once per finished request, with cache reads and writes kept apart. CodeBuddy credits are points, not dollars, and are not used as cost.
+- **Presets**: Codex gets a Gemini preset on Google's OpenAI-compatible endpoint (#9822); TeleAI is renamed XingChenAGI in all seven apps (e3fa54d06).
+
+### Changed
+
+- **Auth Center Collects Logins Only When Asked** (#10140, #10153): Antigravity and WorkBuddy no longer import a login the user has not added when the Auth Center reads account status. An uncollected login is named in a notice with a "Collect current account" button (also on the official card form). A login displaced by switching or adding an account is kept in a hidden stash (`agy-login-stash.json` for Antigravity; a private per-account slot when a Claude Code card bound to another account is switched to), so it is not lost (Claude Code restores it if a later step fails), and dropped when that account is collected. WorkBuddy "Sign in to another account" now waits for the new login and collects it.
+- **Skills Page Layout** (#10050): Skills uses three flat tabs (Installed / Repositories / skills.sh) like the Plugins page, with the refresh / check-updates action in the page header and one toolbar layout across tabs: a fixed search box, a single "Filter" popover for status, source and repositories, an item count and the contextual action.
+- **Tray Quota Rows** (#10036, c646dc12d): Tray panel quota rows use short labels (5h, 7d, …), aligned progress bars and compact reset countdowns; single balances sit inline. Antigravity's 5-hour and weekly windows get their own rows (Gemini 5h / 7d, Claude 5h / 7d, Argon 7d) instead of one merged row showing the more used window, quota blocks are no longer cut to three rows, and in "used" mode the bar shows the used part.
+- **Fewer Redundant IPC Calls** (#10163, 826dcec1d): Directory and portable-mode settings load only on pages that need them, tool version checks, environment conflict checks and the Auth Center's provider lists are deduplicated, the Plugins page stops probing other apps when their CLI is missing, and Windows skips an unchanged tray tooltip at startup. The Auth Center reuses provider lists for 30 s on its own subscriptions, so provider pages still refetch on window focus.
+- **Preset Sort Weights** (e10eada5d): Presets with an agreed position register a weight in `presetSortOrder.ts`; the picker sorts by weight, then display name, within each category.
+
+### Fixed
+
+- **Windows Antigravity Login Waited until Timeout** (#10167, fixes #10105): The agy login terminal reports agy's exit code, or `closed` when the window is closed, through a local named pipe for cmd, PowerShell and Windows Terminal, so the add-account wait ends and restores the previous login as on macOS / Linux.
+- **Antigravity Quota with Only the Desktop App** (b23066210, refs #10162): On macOS / Linux agy is also found in `~/.gemini/bin`, where Antigravity Desktop installs it without adding it to PATH; the official CLI in `~/.local/bin` still wins.
+- **Absent Antigravity Desktop Listed as Installed** (#10189, fixes #10177).
+- **Codex Managed Login after Codex CLI 0.172** (efe1dd2aa, refs #10157): Extra bookkeeping keys that Codex CLI 0.172 writes into `auth.json` `tokens` (`login_owner_id`, `oauth_provenance`) no longer break the ownership check of a CC Switch-managed ChatGPT login.
+- **`codex login --with-api-key` Login Deleted on Switch** (4c3aab4cf, refs #10195): A key-only `auth.json` from the user's own login is no longer taken for a third-party key left by older versions, so switching to a third-party provider keeps (or stashes) it and switching back restores it.
+- **Codex Session Headers in Aggregation** (#10155, fixes #10147): Aggregation applies the same account-identity filter as routing for unmanaged upstreams, keeping Codex session headers and prompt cache keys.
+- **Claude Code Terminal on Windows with Non-ASCII Provider Ids** (7b1c88c22, refs #10156): The temporary settings file name keeps only ASCII characters of the provider id, so cmd no longer mangles it into "Settings file not found".
+- **Claude Code on the Stable Update Channel** (60a302b62, fixes #7102, co-authored with #10168): With `autoUpdatesChannel: "stable"`, the Apps page compares against the stable dist-tag, so it no longer offers an update that `claude update` never installs. Homebrew installs keep comparing against latest.
+- **OpenClaw Models Added while Editing** (#10191, fixes #6729): Saving a provider adds missing models of providers in the live config to `agents.defaults.models`, so they can be picked in `/model`.
+- **OpenCode OMO State after Failed Writes** (3002f0886, 9d2914eea, 098506018, refs #10209, #10210, #10211): Deleting or disabling the current OMO / OMO Slim config removes the live config before touching the row or pointer, and a failed switch puts the previous pointer back, so the card no longer disagrees with what OpenCode loads.
+- **Overlapping Skill Toggles** (52ef598b5, refs #10216): A failed toggle restores only its own cell and the list is refetched afterwards, instead of restoring a snapshot that undid another toggle.
+- **Last Hour in Hourly Trends** (#10200, fixes #10196): Requests at the inclusive end of an hourly range are counted in the last bucket.
+- **macOS Context Menu Language** (#4557): The bundle declares its eight interface languages, so WKWebView's native context menu follows the system language instead of staying English.
+- **VS Code copilot-shim on Linux** (ec997c4c0, refs #10228): A `copilot` that resolves into VS Code's `copilot-shim` placeholder is skipped, so Copilot CLI shows as not installed instead of installed but not runnable.
+
+### Internal
+
+- SECURITY.md lists the latest 4.x release as supported and documents the current CSP (c54e9eaee, refs #10208).
+- The exit-file terminal launcher is compiled only off Windows, fixing clippy there (3261fecd1).
+
## [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.
diff --git a/package.json b/package.json
index 96ba9a317..5c32f5f0b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "cc-switch",
- "version": "4.0.46",
+ "version": "4.0.47",
"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 50275fa1c..43a101462 100644
--- a/src-tauri/Cargo.lock
+++ b/src-tauri/Cargo.lock
@@ -767,7 +767,7 @@ dependencies = [
[[package]]
name = "cc-switch"
-version = "4.0.46"
+version = "4.0.47"
dependencies = [
"aho-corasick",
"anyhow",
diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml
index 136914720..1d5f10c7e 100644
--- a/src-tauri/Cargo.toml
+++ b/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "cc-switch"
-version = "4.0.46"
+version = "4.0.47"
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 3c7251b0d..e979fbbb9 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.46",
+ "version": "4.0.47",
"identifier": "com.ccswitch.desktop",
"build": {
"frontendDist": "../dist",