mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-11-20 07:52:52 +08:00
chore(release): v4.0.31
This commit is contained in:
@@ -5,6 +5,49 @@ 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.31] - 2026-11-12
|
||||
|
||||
This release adds Tencent WorkBuddy as a managed app: custom models are written into WorkBuddy's own `models.json`, MCP servers, Skills, the global prompt, sessions and session-log usage are supported, and saved WorkBuddy accounts can be switched from official cards or the Auth Center with their plan, credits and credit expiry shown. The UI gains German as an eighth language, and the README is now available in all eight UI languages. The privacy filter now runs at the forwarder egress, so it also covers failover retries, CC Switch's own compaction summaries and other bodies built after the handler. Fixes cover Claude Code sessions stuck on HTTP 400 when a Responses relay spreads one conversation across Azure OpenAI resources, Gemini Native rejecting parallel tool results split across messages and losing its prompt cache to per-turn system messages, the macOS tray tooltip that would not go away, the quick panel not showing over full-screen apps, `CLAUDE_CODE_SUBAGENT_MODEL_FORCE` dropped in route mode, Codex resumed threads whose usage never imported, the Codex "keep official login" switch not applying until the next switch, copy buttons on KDE Wayland, and more.
|
||||
|
||||
> The database schema goes from v25 to v26 (WorkBuddy columns). Older versions cannot open the upgraded database; a backup is taken before the upgrade.
|
||||
|
||||
**Stats**: 31 commits | 194 files changed | +22891 insertions | -582 deletions
|
||||
|
||||
### Added
|
||||
|
||||
- **WorkBuddy** (#8757, 4587b5c0a, f2420dc85, 61bd4d422, acdab9c9a, 29aed9040; requested in #4802, #5802, #7419, #7076): A new additive app for Tencent WorkBuddy, which runs its bundled CodeBuddy engine with `~/.workbuddy` (or `WORKBUDDY_CONFIG_DIR`) as its config dir. Each provider expands into custom model entries in `~/.workbuddy/models.json` marked with `ccSwitchProviderId`; entries added inside WorkBuddy, unknown keys and an existing `availableModels` allow-list are kept. Custom models are OpenAI Chat Completions only. Models without a name are written with the vendor label, so WorkBuddy's picker reads "Kimi:kimi-k3.1-pro"; preset models get thinking effort levels derived from the reviewed Pi thinking maps (WorkBuddy translates them through `thinkingLevelMap`). WorkBuddy uses the model ID as both key and upstream name, so one ID can live in only one card: presets skip IDs held by another card and say which, and a typed duplicate blocks saving. Also syncs MCP servers (`mcp.json`, leaving connector-managed entries alone), Skills, the global prompt (`CODEBUDDY.md`), lists sessions, and imports usage from session logs (`prompt_tokens` includes cache hits; WorkBuddy credits are not treated as USD).
|
||||
- **Official accounts**: the signed-in account is collected automatically. "WorkBuddy Official Sign-in" cards bind a saved account; adding one restores that account's sign-in files, and only one official card is added at a time. WorkBuddy must be fully quit first, otherwise it writes its current login back. The Auth Center lists accounts with nickname, plan and credits, offers "Switch WorkBuddy to this account" in each account's menu, and "Sign in to another account" only writes the local logout marker (no server-side logout). Plan and credits come from WorkBuddy's local WBIPC endpoint while WorkBuddy is running; after the resource summary, the free/paid package details are read too, so cards and the Auth Center show when credits expire (the earlier of resource end and cycle end, orange within three days). Kimi, Antigravity and WorkBuddy now share one in-use badge and one switch label.
|
||||
- Schema v25 → v26 adds `enabled_workbuddy` to `mcp_servers` and `skills`.
|
||||
- **German UI** (51a96e24b): German joins the language picker and is chosen on first launch for German systems (whole subtags only, so `dsb` stays English). Dates and provider sorting use de-DE, backend JSON/TOML errors are answered in German, and the tray menu and panel have a full German block. Privacy filter placeholders stay English for German, as for Korean and Russian.
|
||||
- **READMEs in All Eight UI Languages** (c0a8d87b1): Adds README_ZH-TW, README_KO, README_TR and README_RU; every language switcher lists all eight. `readmeParity.test.ts` checks each README against the English one (switcher, heading structure, sponsor row count, order of HTML links and images), and README changes now trigger the frontend CI job.
|
||||
- **"Resync now" on the Skills Page** (18f856159, refs #9417): The Skills page more menu offers "Resync now" next to "Storage and sync", sharing one in-flight state with the button inside that dialog.
|
||||
- **Codex Desktop Chats Grouped** (c1bf062d2, refs #9415): In the session manager's "By project" view, Codex desktop chats without a project (`<Documents>/Codex/<YYYY-MM-DD>/<slug>`) are folded into one "Codex chats" group instead of one group per chat.
|
||||
- **More Status Codes in the Request Log Filter** (72fe4edf0, refs #9425): 403, 404, 502, 503, 504, 520 and 529 join 200/400/401/429/500.
|
||||
|
||||
### Changed
|
||||
|
||||
- **Privacy Filter at the Forwarder Egress** (#9460): The filter moved from the handler entry points into the forwarder and runs on every attempt (failover and rectifier retries included): on the client-format body, after Copilot cleanup and merging, on a temporary copy of local body overrides, and on the final upstream body. It now also covers CC Switch's own base64-wrapped compaction summaries, Gemini countTokens wrappers, Alpha Search queries and Responses `tool_search_output` (with the tool-results switch). Tool definitions are left untouched. Keyword prefiltering for gitleaks rules uses one Aho-Corasick automaton with identical output. Replacements remain irreversible.
|
||||
- **Faster Codex Usage Import** (#9400): Rollout parsing keeps only timestamp, event type and token info when loading parent timelines, reuses the line buffer and skips repeated full-line searches; JSON validation and last-key-wins behavior are unchanged.
|
||||
|
||||
### Fixed
|
||||
|
||||
- **Claude Code Stuck on 400 with Responses Relays Spanning Azure Resources** (4151bc33d, refs #9424): Claude Code routed to an OpenAI Responses upstream replays the upstream's reasoning items; a relay that load-balances one session across several Azure OpenAI resources then answered "The requested item was created under a different Azure OpenAI resource", and switching provider mid-session gave `invalid_encrypted_content`, after which no request could succeed. Claude and Claude Desktop now take the opaque-state retry: thinking blocks carrying a Responses reasoning envelope are dropped (and, for the foreign-resource case, hosted web search call/result pairs), then the request is retried once. Rejections reported after HTTP 200 are treated the same way. Working requests are unchanged.
|
||||
- **Gemini Native Rejected Split Parallel Tool Results** (fd9794213, refs #9453): Results of parallel tool calls spread over several consecutive user messages became separate Gemini contents, and Gemini answered 400 "the number of function response parts is equal to the number of function call parts". Such runs are merged when two or more of them carry tool results; other histories convert to the same bytes.
|
||||
- **Gemini Native Lost Its Prompt Cache to Per-Turn System Messages** (da830bfd1, refs #9450): Claude Code appends a `<total_tokens>` system message every turn, which was hoisted into `systemInstruction` ahead of the whole history, so the implicit prefix cache missed (about 21% hit rate on long sessions). Only leading system messages are hoisted now; later ones stay in place as user content, after the function response when wedged between a call and its response.
|
||||
- **Gemini Native Stream Usage Logged Early Counts** (e91114fe2, refs #9464): A trailing usage-only frame (often the only one with `cachedContentTokenCount`) was dropped, and a final `promptTokenCount` larger than the first one was ignored. Usage is read from every frame and the last `message_delta` is taken as final for Gemini-converted streams.
|
||||
- **macOS Tray Tooltip Stuck on Screen** (#9446, fixes #9445, #9329): The "CC Switch" hover tooltip could stay on screen until quitting. macOS no longer sets a tray tooltip; the icon dot and the panel's problem section still report issues. Windows is unchanged.
|
||||
- **macOS Quick Panel Hidden over Full-Screen Apps** (063c22d8d, refs #9331): The panel window now also gets `NSWindowCollectionBehaviorFullScreenAuxiliary`, so clicking the menu-bar icon shows it over another app's full-screen Space.
|
||||
- **`CLAUDE_CODE_SUBAGENT_MODEL_FORCE` Dropped in Route Mode** (#9455, fixes #9451): It was a key field and so never part of the route contract. It is now a provider-exclusive env field: written with the provider and removed on switch-away only while unchanged.
|
||||
- **Codex Resumed Threads Never Imported Usage** (457f898c7, refs #9420): Codex 0.167 resumes a finished thread into a new rollout that continues from `forked_from_ordinal_exclusive` without copying parent history; CC Switch waited for the parent to catch up and deferred the child forever. Such children are accepted when every billable event has exact `last_token_usage` and a timestamp after the fork.
|
||||
- **Codex "Keep Official Login" Did Not Apply to the Current Provider** (f6423b5d8, refs #9367): Turning it off while on a direct third-party provider changed nothing until the next switch. Saving the setting now re-applies the current direct third-party provider under the switch lock, and rolls the flag back if the rewrite fails.
|
||||
- **Codex Display Names on Mirrored Official GPT Rows** (f1d438e0a, refs #9380): Third-party rows mirrored from the official catalog ignored the row's display name; it is now written to `display_name` and restored on read.
|
||||
- **Claude Desktop Listed as Installed After Uninstall on macOS** (6463262c7, refs #9383): The leftover `~/Library/Application Support/Claude` no longer counts; macOS looks for `Claude.app` in `/Applications` or `~/Applications`.
|
||||
- **Copy Buttons Failed on KDE Wayland** (3706cac35, refs #9384): On Linux, copying now goes through the WebView clipboard first, falling back to the native command.
|
||||
- **Copilot CLI Unbound Account Option** (36041067b, refs #9408): On the official Copilot CLI card the empty option now reads "Follow Copilot CLI's own sign-in" instead of "Use default account", since unbound means Copilot's own GitHub login.
|
||||
- **DeepSeek Harness Compatibility Editor on Custom Models** (cf319bcf3, refs #9330): Models added by hand now show the compatibility editor too, so `supportsDeveloperRole: false` can be set for endpoints such as DashScope that reject the `developer` role.
|
||||
- **Skill Symlink Errors Hid the OS Error** (86aeb47a6, refs #9439): The message now includes the underlying OS error (e.g. Windows `os error 5`).
|
||||
- **Sidebar Bottom Items Truncated** (0f593e9fd): Apps and Settings at the bottom of the sidebar are sized by their labels, so longer German, Turkish and Russian labels are no longer cut off.
|
||||
|
||||
## [4.0.30] - 2026-11-11
|
||||
|
||||
This release adds an opt-in privacy filter: in routing and aggregation mode the local proxy can replace personal data and secrets in user input and system prompts with placeholders before a request leaves the machine. Most of the rest is Codex compatibility with third-party native Responses upstreams: since third-party routes are written as the built-in `openai` provider, Codex sends fields only the ChatGPT backend accepts, and strict gateways such as LM Studio, LiteLLM and some relays rejected whole requests with 400; those fields are now stripped, and threads that replay a tool call with a repeated JSON key no longer fail on every turn. Other fixes cover the main window opening under the Windows taskbar, Antigravity quota on free and region-locked accounts and with agy 1.5 logins, Antigravity usage sync reading every transcript every minute, Gemini usage from Vertex-style upstreams, Copilot BYOK cards limited to 128K input, a slow first open of the provider editor, and OMO Slim forms that ignored clicks.
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "cc-switch",
|
||||
"version": "4.0.30",
|
||||
"version": "4.0.31",
|
||||
"description": "All-in-One Assistant for Claude Code, Codex & Gemini CLI",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
||||
Generated
+1
-1
@@ -758,7 +758,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "cc-switch"
|
||||
version = "4.0.30"
|
||||
version = "4.0.31"
|
||||
dependencies = [
|
||||
"aho-corasick",
|
||||
"anyhow",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "cc-switch"
|
||||
version = "4.0.30"
|
||||
version = "4.0.31"
|
||||
description = "All-in-One Assistant for Claude Code, Codex & Gemini CLI"
|
||||
authors = ["Jason Young"]
|
||||
license = "MIT"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$schema": "https://schema.tauri.app/config/2",
|
||||
"productName": "CC Switch",
|
||||
"version": "4.0.30",
|
||||
"version": "4.0.31",
|
||||
"identifier": "com.ccswitch.desktop",
|
||||
"build": {
|
||||
"frontendDist": "../dist",
|
||||
|
||||
Reference in New Issue
Block a user