CC Switch v4.0.6

The second fix release for 4.0 stable

The provider page header now has a search button, and you can also search by API address. When Skills finds updates, you can update them all in one click, and the Skills to be updated are listed before you confirm. The green, orange and red colors for quota numbers are back, and the numbers change color when less than 20% is left. In Codex's Aggregation mode, subagents could not read their tasks when the main agent and the subagent used different providers; you can now turn on a new switch to have subagents use the classic tools instead. This release also fixes the last part of the reply being lost when Claude Code is routed to OpenAI Chat format, official models disappearing in Codex's Aggregation mode, and 5-hour quotas for Volcengine and others missing from the tray. For everything new in 4.0, see the v4.0 release notes.


New

The provider page has a search button. Search used to open only with ⌘F / Ctrl+F, and many people did not know it existed. There is now a search button next to "Add Provider", and besides name, notes and website, you can also search by API address. Closing the search box restores the full list instead of leaving it on the filtered results. If you don't need the button, turn off "Show provider search" under "Settings → General → Sidebar and header"; the shortcut still works.

Update all Skills in one click. You used to check for updates, filter the list to "Has updates", and then find "Update All" in the filter bar. Now, once updates are found, the "Check Updates" button turns into "Update all (N)", and the confirmation dialog lists each Skill to be updated along with its source repository. After you confirm, the dialog closes right away and the button shows the update progress. Checking again has moved to the "…" menu.

Quota numbers have their colors back. 4.0 made all quota text gray, so it was hard to tell at a glance whether a quota was plentiful or nearly used up. The green, orange and red from 3.x are back, applied only to the numbers; tier names and the word "left" stay gray. Numbers change color when less than 20% is left (it used to be 10%), and "almost out" in the tray also uses 20%.

Codex's Aggregation mode can have subagents use the classic tools. Codex's newer subagent tools have the main agent's provider encrypt the task the main agent hands over, so a subagent on a different provider cannot decrypt it and can only report an error or get an empty task. After you turn on "Classic sub-agent tools in aggregation" under "Settings → App config → Codex", every model in Aggregation uses Codex's classic subagent tools and tasks are passed as plain text; the trade-off is losing newer features such as followup_task and interrupt_agent. The switch is off by default, only affects Aggregation mode, and Codex must be restarted after you change it. With the switch off, when this happens CC Switch now returns an error explaining the cause and pointing to this switch, instead of letting the subagent run with an empty task or letting Codex retry over and over.

Codex prompts you to restart its background service after switching accounts. Codex's background service does not always reread the sign-in information, so after switching accounts it may keep using the previous account. You used to be prompted to restart only when the model list changed in Aggregation mode; now you are prompted whenever you switch accounts in Direct, Routing or Aggregation mode, and the background service restarts only after you confirm with the button. With the Codex desktop app or an editor extension, you are prompted to quit it completely and reopen it.

When a new version of CC Switch is available, the dot on "Settings" in the sidebar is now green, and clicking "Settings" opens the "About" page directly. The tool update dot on "Apps" is unchanged.

Fixes

Other:

Upgrade Notes

The database schema is unchanged, still at 20.

Codex sessions routed to a third-party provider using Chat format or to GitHub Copilot compact their context once automatically when you continue them after upgrading.


Thanks

Thanks to @SailingLoong (the last part of the reply lost when Claude Code is routed), @ggbdpq (502 when compacting context in Aggregation mode), @Komikawayi (the restart prompt after switching Codex accounts), @CacinieP (upgrading Claude Code under npm 12), @SaladDay (reporting and first fixing the dangling binding after deleting an account), @ljie-PI (follow-up cleanup of the GitHub Copilot provider for Codex), @Lingbou (checking Linux packages in the release pipeline) and @Railgun-wiki (user manual updates) for their contributions.

Thanks to @zjyzhj, @Camsyn, @Tison6, @fpga-go, @j1406493495, @RichardZhengkay, @spancerxing and @HansYeoh for reporting issues and making suggestions.

For the full technical details, see the CHANGELOG.