From 014a33a42b86b96cdffe78a9e22cc83444023dad Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 6 Oct 2026 21:20:09 +0800 Subject: [PATCH] chore(release): v4.0.3 --- CHANGELOG.md | 65 +++++++++++++++++++++++++++++++++++++++ package.json | 2 +- src-tauri/Cargo.lock | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 2 +- 5 files changed, 69 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 30d4676ea..6d80e74b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,71 @@ 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.3] - 2026-10-06 + +Fixes and smaller additions on top of 4.0.2. Claude Code mapped to GPT or Grok no longer reasons at full strength with thinking turned off, and `low` effort no longer returns 400 on pro models. Claude Code behind a gateway can skip the auto mode server check with a new quick toggle (on by default for new third-party providers), and every quick toggle now explains itself. Skills imported with several apps ticked actually reach those apps, OpenCode Go works from Claude Desktop, and mixed LF / CRLF SSE streams no longer lose tool calls. MCP and prompt editors open as full pages that ask before discarding unsaved changes; Backup & Restore shows every backup location under `~/.cc-switch` with its size; ChatGPT subscriptions show their Codex Credits balance; the usage tables count cache tokens and the model tab gains success rate and speed. OpenCode 2.0 native providers round-trip through the JSON editor, and OpenCode Zen and MoArk join the presets. + +**Stats**: 29 commits | 116 files changed | +6,232 insertions | -773 deletions + +### Added + +- **Auto Mode Server-Check Quick Toggle for Claude Code** (refs #7538): Claude Code 2.1.281 added a server-side auto mode classifier that only official endpoints can serve, so every session through a gateway stopped once on a "not eligible" notice before falling back to the local check. + - The Claude provider editor gets a "Disable auto mode server check" toggle that writes `CLAUDE_CODE_AUTO_MODE_SERVER=0`; its hint says official endpoints should leave it unchecked. + - New Claude providers get the key by default unless the preset is official or a cloud provider, or already sets it; the custom provider's default form goes through the same overlay. + - The key itself is now a Claude provider-exclusive env field (#7893 by SailingLoong, fixes #7891): written on switch-in and removed on switch-out only when the value is unchanged, so a value set globally by hand is left alone. Before this, the key stayed in the provider row and never reached `settings.json`. The frontend preset-scan mirror (`tests/config/claudeKeyFields.json`) is updated in lockstep. +- **A Help Tip on Every Claude Quick Toggle**: Each toggle above the Claude config editor gets the standard "?" tip with one sentence on what it does, why you would want it, and whether it is global or follows the provider. The toggles render from one list (copy under `claudeConfig.` / `claudeConfig.Help`), and the help button sits outside the `