CC Switch v4.0.17

This release fixes two issues introduced in 4.0.16 and polishes the tray quick panel. Lightweight mode frees the memory used by the tray panel again, so WebView2 processes exit normally on Windows; Codex no longer gets a long-expired ChatGPT login back when entering routing and gets stuck on the sign-in page. The tray panel no longer jumps while hovering between apps and fits on high-DPI and small Windows displays; quota bars line up and show how long until they reset, and remaining balances are shown in green; on Windows, a left click on the tray icon opens the main window again. The Hermes form now warns when a provider key has the same name as a built-in provider. Other fixes cover the routing port staying taken after quitting on Windows, Codex remote compaction usage recorded as 0, some MCP servers lost when several are toggled at once, URL-only MCP servers synced to Hermes and OpenCode as empty entries, curly quotes inside TOML strings being rewritten, WebDAV sync failing on Data Capsule, macOS capitalizing the first letter of a typed API key, and an MSI installed over a portable folder still being treated as portable. For everything new in 4.0, see the v4.0 release notes.


Improvements

Warning when a Hermes provider key has the same name as a built-in provider. When a key has the same name as a Hermes built-in provider (such as deepseek or openrouter), Hermes uses the built-in one, asks for that provider's own API key environment variable, and ignores this card's endpoint and key; 4.0.16 only fixed the two MiniMax presets (#8538). Now, when the key you enter is a Hermes built-in provider ID, a note under the field warns about it and suggests cc-switch-<key>; for a card that is already added and whose key can no longer be changed, it suggests adding the provider again under a different key. Aliases such as kimi are not affected and are not flagged. The warning does not block saving.

Quota lines in the tray panel. Each tier's label, bar and reset time now sit in three aligned columns, so bars start and end at the same place and are longer; the reset time shows how long is left instead of a date, for example "Resets in 1d 23h". For pay-as-you-go balances only the amount is shown in green, matching the provider card; a used-up balance keeps its warning color.

On Windows, a left click on the tray icon opens the main window again (#8572). A right click shows the tray style chosen in Settings (panel or menu). macOS is unchanged: both buttons show the chosen style.

Fixes

Upgrade Notes

The database schema is unchanged, still at 20.


Thanks

Thanks to @funkpopo (tray panel scrolling and scaling), @Chaoqi31 (Codex remote compaction usage), @chonngyi (installing the MSI over a portable folder) for their contributions.

Thanks to @SamPheng, @xinxinxiaoxin, @XinwangTao, @ramonmi, @Jdker22, @Geneslves, @Jinmoli, @nanfenggushi, @fereverlove, @hulkbig, @AngryBigCat, @QC2168 for reporting issues and providing reproduction details and fix ideas.

For the full technical details, see the CHANGELOG.