Skip to content

Codex CLI failure: CC Switch

Quick fix

Upgrade cc-switch to v3.16.3 or later to fix blockers in local environment detection and the upgrade flow.

Error output
codex cli 失败:
English translation

codex cli failed:

In v3.16.1, cc-switch had several underlying defects in local environment detection and the CLI tool upgrade flow. The code did not correctly anchor the installation source and absolute path, causing updates to fail when a platform binary was missing. On Windows, improper character escaping also produced garbled text. In addition, the old version detection process severely blocked the About panel from rendering, preventing users from viewing the current status.

For some tools that do not include an official self-update command, such as Gemini CLI, cc-switch will also return a failure message when it tries to call their update interface. These issues stem from defects in the client’s internal upgrade pipeline and cross-platform compatibility, not user configuration errors.

  1. Open the cc-switch interface, go to Settings or About, and check for an upgrade to v3.16.3 or later.

  2. Fully restart the cc-switch application, then click the “Update” button next to the relevant tool again to check whether it works.

ToolClaude Code / Codex / Gemini CLI / Hermes
Version3.16.1
PlatformsWindowsmacOS
Why does clicking Update for Gemini CLI keep showing a failure message?
The official Gemini CLI does not currently provide a self-update command, so cc-switch returns a failure when it tries to call its update interface. This is an official limitation, not a software bug.
What should I do if the About panel still does not show the current version after upgrading?
This display blocking issue was fixed in v3.16.4. Make sure you have upgraded to v3.16.4 or later. If the version still does not appear, provide the latest runtime logs for further troubleshooting.

This is an unofficial community wiki with no affiliation to the cc-switch authors or the project itself. Its content is compiled from the project's public GitHub issues. This site distributes no software.