Major architecture refactoring with enhanced config sync and data protection

中文更新说明 Chinese Documentation →

---

What's New

Edit Mode & Provider Management

Custom Endpoint Management

Usage Query Enhancements

Thanks to @Sirhexs

Custom Configuration Directory (Cloud Sync)

Thanks to @ZyphrZero

Configuration Directory Switching (WSL Support)

Configuration Editor Improvements

Load Live Config When Editing

Claude Configuration Data Structure Enhancements

Updated Provider Models

New Provider Presets

Added 5 new provider presets:

Partner Promotion Mechanism

---

Improvements

Configuration & Sync

UI/UX Enhancements

Complete Internationalization

---

Bug Fixes

Configuration Management

Usage Query

UI Issues

Startup Issues

---

Architecture Refactoring

Backend (Rust) - 5 Phase Refactoring

  1. Phase 1: Unified error handling (AppError + i18n error messages)
  2. Phase 2: Command layer split by domain (commands/{provider,mcp,config,settings,plugin,misc}.rs)
  3. Phase 3: Integration tests and transaction mechanism (config snapshot + failure rollback)
  4. Phase 4: Extracted Service layer (services/{provider,mcp,config,speedtest}.rs)
  5. Phase 5: Concurrency optimization (RwLock instead of Mutex, scoped guard to avoid deadlock)

Frontend (React + TypeScript) - 4 Stage Refactoring

  1. Stage 1: Test infrastructure (vitest + MSW + @testing-library/react)
  2. Stage 2: Extracted custom hooks (useProviderActions, useMcpActions, useSettings, useImportExport, etc.)
  3. Stage 3: Component splitting and business logic extraction
  4. Stage 4: Code cleanup and formatting unification

Testing System

Code Quality

---

Internal Optimizations (User Transparent)

Removed Legacy Migration Logic

v3.6.0 removed v1 config auto-migration and copy file scanning logic:

Command Parameter Standardization

Backend unified to use app parameter (values: claude or codex):

---

Dependencies

---

Installation

macOS

Via Homebrew (Recommended):

brew tap farion1231/ccswitch
brew install --cask cc-switch

Manual Download:

Note: Due to lack of Apple Developer account, you may see "unidentified developer" warning. Go to System Settings → Privacy & Security → Click "Open Anyway"

Windows

Linux

---

Documentation

---

Acknowledgments

Special thanks to Zhipu AI for sponsoring this project with their GLM CODING PLAN!

---

Full Changelog: https://github.com/farion1231/cc-switch/compare/v3.5.1...v3.6.0