CC Switch v4.0.5

The first fix release for 4.0 stable

Codex can now use a GitHub Copilot account. The "All" heatmap in Usage is no longer limited to the past year: you can go back all the way to the first day with records. This release also fixes subagents always being sent to a worktree when Claude Code is mapped to GPT over the Responses protocol, and GLM and other models disappearing from /model in Codex's Aggregation mode; Linux deb and rpm packages can now be updated in-app too. For everything new in 4.0, see the v4.0 release notes.

Linux deb and rpm users, please install this version manually. Installed deb and rpm versions still carry the old install type marker, so updating to this version in-app still reports insufficient permissions. After you download and install 4.0.5 manually once, automatic updates work normally from then on.


New

Codex can use a GitHub Copilot account. When adding a provider in Codex, pick the "GitHub Copilot" preset and sign in to your GitHub account in "Accounts"; a Copilot account already signed in for Claude Code can be used directly. Codex needs Routing turned on. Different models on Copilot support different protocols: local routing picks Responses or Chat Completions automatically for each model, and you can also set it by hand under "Upstream Format" in the editor. Context windows differ by account tier, so the preset defaults to conservative values; clicking "Fetch Models" fills in the model catalog with your account's actual windows and reasoning levels.

The "All" heatmap shows your full history. With the time range set to "All", the heatmap used to show only the last 53 weeks. It still shows the last 53 weeks by default; clicking "Show more" adds earlier sections of 53 weeks each, going back to the first day with records. Each section shows its date range, tokens, requests and cost, and the color shading can be compared directly across sections.

Fixes

Other:

Upgrade Notes

The database schema is unchanged, still at 20.

Linux deb and rpm users, please install this version manually; automatic updates work normally after that.

Windows users: if the icon pinned to the taskbar goes blank after upgrading, unpin it and pin it again.


Thanks

Thanks to @ljie-PI (GitHub Copilot for Codex, together with @ump45nose), @SailingLoong (subagents no longer sent to a worktree), @cenglin123 (GLM models disappearing in Aggregation mode), @lcgash (the MoArk model catalog), @Lingbou (deb and rpm auto-updates on Linux), @Railgun-wiki (the Wayland title bar buttons), @Besty0728 (the Windows taskbar icon) and @funkpopo (installing Claude Code with npm 12, and reviewing the MoArk presets) for their contributions.

Thanks to @Timetraps-x, @ggbdpq, @c2519352073-star, @yukitakasama, @liuziyuan and @Suaig for submitting fixes or implementations for the same problems.

Thanks to @WK-Apollo, @caoguanjie, @kirkchinese, @ZMKC404, @sunwayking, @Vistonz, @van23qf, @echoescheng, @xlht4106, @YueZhang2019, @hueifeng and @jingzhang94 for reporting issues and making suggestions.

For the full technical details, see the CHANGELOG.