Skip to content

Commit 0ef6703

Browse files
committed
chore: release v3.10.1
- Bump version to 3.10.1 across all config files - Update CHANGELOG with all fixes since v3.10.0 - Fix Rust Clippy warning by using derive(Default) - Apply code formatting
1 parent 07fc6b1 commit 0ef6703

File tree

7 files changed

+36
-15
lines changed

7 files changed

+36
-15
lines changed

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
---
1111

12+
## [3.10.1] - 2026-01-23
13+
14+
### Patch Release
15+
16+
This maintenance release includes important bug fixes for Windows platform, UI improvements, and code quality enhancements.
17+
18+
### Added
19+
20+
- **Provider Icons**: Updated RightCode provider icon with improved visual design
21+
22+
### Changed
23+
24+
- **Proxy Rectifier**: Changed rectifier default state to disabled for better stability
25+
- **Window Settings**: Reordered window settings and updated default values for improved UX
26+
- **UI Layout**: Increased app icon collapse threshold from 3 to 4 icons
27+
- **Code Quality**: Simplified `RectifierConfig` implementation using `#[derive(Default)]`
28+
29+
### Fixed
30+
31+
- **Windows Platform**:
32+
- Fixed terminal window closing immediately after execution on Windows
33+
- Corrected OpenCode config path resolution on Windows
34+
- **UI Improvements**:
35+
- Fixed ProviderIcon color validation to prevent black icons from appearing
36+
- Unified layout padding across all panels for consistent spacing
37+
- Fixed panel content alignment with header constraints
38+
- **Code Quality**: Resolved Rust Clippy warnings and applied consistent formatting
39+
40+
---
41+
1242
## [3.10.0] - 2026-01-21
1343

1444
### Feature Release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cc-switch",
3-
"version": "3.10.0",
3+
"version": "3.10.1",
44
"description": "All-in-One Assistant for Claude Code, Codex & Gemini CLI",
55
"type": "module",
66
"scripts": {

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cc-switch"
3-
version = "3.10.0"
3+
version = "3.10.1"
44
description = "All-in-One Assistant for Claude Code, Codex & Gemini CLI"
55
authors = ["Jason Young"]
66
license = "MIT"

src-tauri/src/proxy/types.rs

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ pub struct AppProxyConfig {
195195
/// 整流器配置
196196
///
197197
/// 存储在 settings 表中
198-
#[derive(Debug, Clone, Serialize, Deserialize)]
198+
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
199199
#[serde(rename_all = "camelCase")]
200200
pub struct RectifierConfig {
201201
/// 总开关:是否启用整流器
@@ -208,15 +208,6 @@ pub struct RectifierConfig {
208208
pub request_thinking_signature: bool,
209209
}
210210

211-
impl Default for RectifierConfig {
212-
fn default() -> Self {
213-
Self {
214-
enabled: false,
215-
request_thinking_signature: false,
216-
}
217-
}
218-
}
219-
220211
fn default_true() -> bool {
221212
true
222213
}

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "CC Switch",
4-
"version": "3.10.0",
4+
"version": "3.10.1",
55
"identifier": "com.ccswitch.desktop",
66
"build": {
77
"frontendDist": "../dist",

src/components/ProviderIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export const ProviderIcon: React.FC<ProviderIconProps> = ({
4242
// 获取有效颜色:优先使用传入的有效 color,否则从元数据获取 defaultColor
4343
const effectiveColor = useMemo(() => {
4444
// 只有当 color 是有效的非空字符串时才使用
45-
if (color && typeof color === 'string' && color.trim() !== '') {
45+
if (color && typeof color === "string" && color.trim() !== "") {
4646
return color;
4747
}
4848
// 否则从元数据获取 defaultColor

0 commit comments

Comments
 (0)