diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f8ff5481..016995593 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 --- +## [3.10.1] - 2026-01-23 + +### Patch Release + +This maintenance release includes important bug fixes for Windows platform, UI improvements, and code quality enhancements. + +### Added + +- **Provider Icons**: Updated RightCode provider icon with improved visual design + +### Changed + +- **Proxy Rectifier**: Changed rectifier default state to disabled for better stability +- **Window Settings**: Reordered window settings and updated default values for improved UX +- **UI Layout**: Increased app icon collapse threshold from 3 to 4 icons +- **Code Quality**: Simplified `RectifierConfig` implementation using `#[derive(Default)]` + +### Fixed + +- **Windows Platform**: + - Fixed terminal window closing immediately after execution on Windows + - Corrected OpenCode config path resolution on Windows +- **UI Improvements**: + - Fixed ProviderIcon color validation to prevent black icons from appearing + - Unified layout padding across all panels for consistent spacing + - Fixed panel content alignment with header constraints +- **Code Quality**: Resolved Rust Clippy warnings and applied consistent formatting + +--- + ## [3.10.0] - 2026-01-21 ### Feature Release diff --git a/package.json b/package.json index e54f2aa60..0553e6c9f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cc-switch", - "version": "3.10.0", + "version": "3.10.1", "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 a727dfbdf..a49fa127b 100644 --- a/src-tauri/Cargo.lock +++ b/src-tauri/Cargo.lock @@ -701,7 +701,7 @@ dependencies = [ [[package]] name = "cc-switch" -version = "3.10.0" +version = "3.10.1" dependencies = [ "anyhow", "async-stream", diff --git a/src-tauri/Cargo.toml b/src-tauri/Cargo.toml index 06f359de7..5a1fdc9c1 100644 --- a/src-tauri/Cargo.toml +++ b/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "cc-switch" -version = "3.10.0" +version = "3.10.1" description = "All-in-One Assistant for Claude Code, Codex & Gemini CLI" authors = ["Jason Young"] license = "MIT" diff --git a/src-tauri/src/proxy/types.rs b/src-tauri/src/proxy/types.rs index 9ff8b5253..82ad47cb6 100644 --- a/src-tauri/src/proxy/types.rs +++ b/src-tauri/src/proxy/types.rs @@ -195,7 +195,7 @@ pub struct AppProxyConfig { /// 整流器配置 /// /// 存储在 settings 表中 -#[derive(Debug, Clone, Serialize, Deserialize)] +#[derive(Debug, Clone, Serialize, Deserialize, Default)] #[serde(rename_all = "camelCase")] pub struct RectifierConfig { /// 总开关:是否启用整流器 @@ -208,15 +208,6 @@ pub struct RectifierConfig { pub request_thinking_signature: bool, } -impl Default for RectifierConfig { - fn default() -> Self { - Self { - enabled: false, - request_thinking_signature: false, - } - } -} - fn default_true() -> bool { true } diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index dc8fd6dd4..ea521c1a6 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": "3.10.0", + "version": "3.10.1", "identifier": "com.ccswitch.desktop", "build": { "frontendDist": "../dist", diff --git a/src/components/ProviderIcon.tsx b/src/components/ProviderIcon.tsx index 2628e4dd2..9b575af8d 100644 --- a/src/components/ProviderIcon.tsx +++ b/src/components/ProviderIcon.tsx @@ -42,7 +42,7 @@ export const ProviderIcon: React.FC = ({ // 获取有效颜色:优先使用传入的有效 color,否则从元数据获取 defaultColor const effectiveColor = useMemo(() => { // 只有当 color 是有效的非空字符串时才使用 - if (color && typeof color === 'string' && color.trim() !== '') { + if (color && typeof color === "string" && color.trim() !== "") { return color; } // 否则从元数据获取 defaultColor