docs/release-notes/v3.8.0-en.md
Persistence Architecture Upgrade, Laying the Foundation for Cloud Sync
CC Switch v3.8.0 is a major architectural upgrade that restructures the data persistence layer and user interface, laying the foundation for future cloud sync and local proxy features.
Release Date: 2025-11-28 Commits: 51 commits since v3.7.1 Code Changes: 207 files, +17,297 / -6,870 lines
Migrated from single JSON file storage to SQLite + JSON dual-layer architecture for hierarchical data management.
Architecture Changes:
v3.7.x (Old) v3.8.0 (New)
┌─────────────────┐ ┌─────────────────────────────────┐
│ config.json │ │ SQLite (Syncable Data) │
│ ┌───────────┐ │ │ ├─ providers Provider cfg │
│ │ providers │ │ │ ├─ mcp_servers MCP servers │
│ │ mcp │ │ ──> │ ├─ prompts Prompts │
│ │ prompts │ │ │ ├─ skills Skills │
│ │ settings │ │ │ └─ settings General cfg │
│ └───────────┘ │ ├─────────────────────────────────┤
└─────────────────┘ │ JSON (Device-level Data) │
│ └─ settings.json Local settings│
│ ├─ Window position │
│ ├─ Path overrides │
│ └─ Current provider ID │
└─────────────────────────────────┘
Dual-layer Structure Design:
| Layer | Storage | Data Types | Sync Strategy |
|---|---|---|---|
| Cloud Sync | SQLite | Providers, MCP, Prompts, Skills | Future syncable |
| Device | JSON | Window state, local paths | Stays local |
Technical Implementation:
backup.rs supports SQL dump for cloud storageconfig.json on first launchModular Refactoring:
database/
├── mod.rs Core Database struct and initialization
├── schema.rs Table definitions, schema version migrations
├── backup.rs SQL import/export, binary snapshot backup
├── migration.rs JSON → SQLite data migration engine
└── dao/ Data Access Object layer
├── providers.rs Provider CRUD
├── mcp.rs MCP server CRUD
├── prompts.rs Prompts CRUD
├── skills.rs Skills CRUD
└── settings.rs Key-value settings storage
Completely redesigned UI providing a more modern visual experience.
Visual Improvements:
Interaction Enhancements:
Compatibility Adjustments:
Added Japanese interface support, expanding internationalization to three languages.
Supported Languages:
Skills management system now supports recursive scanning of repository directories, automatically discovering nested skill files.
Improvements:
SKILL.md filesProvider presets now support custom icon configuration.
Features:
Provider forms now include required field validation with friendlier error messages.
Improvements:
Added auto-launch functionality supporting Windows, macOS, and Linux platforms.
Features:
Custom Endpoints Lost Issue
Fixed an issue where custom request URLs were unexpectedly lost when updating providers.
INSERT OR REPLACE executes DELETE + INSERT under the hood in SQLite, triggering foreign key cascade deletionUPDATE statement for existing providersGemini Configuration Issues
.env fileProvider Validation Issues
Linux
.desktop file customizationsProvider Service Modularization:
services/provider/
├── mod.rs Core service - add/update/delete/switch/validate
├── live.rs Live config file operations
├── gemini_auth.rs Gemini auth type detection
├── endpoints.rs Custom endpoint management
└── usage.rs Usage script execution
Deeplink Modularization:
deeplink/
├── mod.rs Module exports
├── parser.rs URL parsing
├── provider.rs Provider import logic
├── mcp.rs MCP import logic
├── prompt.rs Prompt import
├── skill.rs Skills import
└── utils.rs Utility functions
Cleanup:
Test Updates:
Overall Changes:
- Commits: 51
- Files: 207 files changed
- Additions: +17,297 lines
- Deletions: -6,870 lines
- Net: +10,427 lines
Commit Type Distribution:
- fix: 25 (Bug fixes)
- refactor: 11 (Code refactoring)
- feat: 9 (New features)
- test: 1 (Testing)
- other: 5
Change Area Distribution:
- Frontend source: 112 files
- Rust backend: 63 files
- Test files: 20 files
- i18n files: 3 files
Auto Migration - Executes automatically on first launch:
config.json existssettings.jsonData Safety:
config.json file is preserved (not deleted)config.json preservedVisit Releases to download:
CC-Switch-v3.8.0-Windows.msi or -Portable.zipCC-Switch-v3.8.0-macOS.tar.gz or .zipCC-Switch-v3.8.0-Linux.AppImage or .debbrew tap farion1231/ccswitch
brew install --cask cc-switch
Update:
brew upgrade --cask cc-switch
Thanks to all contributors who made this release possible:
Zhipu AI - GLM CODING PLAN Sponsor Get 10% off with this link
PackyCode - API Relay Service Partner Use code "cc-switch" for 10% off registration
ShandianShuo - Local-first AI Voice Input Free download for Mac/Windows
MiniMax - MiniMax M2 CODING PLAN Sponsor Black Friday sale, plans starting at $2
v3.9.0 Preview (Tentative):
Stay tuned for more updates!
Happy Coding!