BigPizzaV3/CodexPlusPlus · error

当前平台暂不支持卸载 Codex++ 入口

Error message

当前平台暂不支持卸载 Codex++ 入口

What it means

Thrown by platform_uninstall on the non-Windows, non-macOS cfg fallback. Uninstalling Codex++ entry points has no implementation outside Windows/macOS, so uninstall_entrypoints on e.g. Linux always bails here; like the install twin, the trigger is the unsupported host platform rather than bad data.

Source

Thrown at crates/codex-plus-core/src/install/mod.rs:202

        anyhow::bail!("当前平台暂不支持安装 Codex++ 入口")
    }
}

fn platform_uninstall(options: &InstallOptions) -> anyhow::Result<()> {
    #[cfg(windows)]
    {
        windows::uninstall_shortcuts(options)
    }

    #[cfg(target_os = "macos")]
    {
        macos::uninstall_app_bundles(options)
    }

    #[cfg(not(any(windows, target_os = "macos")))]
    {
        let _ = options;
        anyhow::bail!("当前平台暂不支持卸载 Codex++ 入口")
    }
}

fn action_result(result: anyhow::Result<()>, success_message: &str) -> InstallActionResult {
    let state = inspect_entrypoints();
    match result {
        Ok(()) => InstallActionResult {
            status: "ok".to_string(),
            message: success_message.to_string(),
            silent_shortcut: state.silent_shortcut,
            management_shortcut: state.management_shortcut,
        },
        Err(error) => InstallActionResult {
            status: "failed".to_string(),
            message: error.to_string(),
            silent_shortcut: state.silent_shortcut,
            management_shortcut: state.management_shortcut,
        },

View on GitHub (pinned to f2074595a2)

Solutions

  1. 在 Windows 或 macOS 上执行卸载
  2. Linux 等平台手动删除自行创建的启动项
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at crates/codex-plus-core/src/install/mod.rs:202 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@f2074595a2 (2026-08-23). Data as JSON: /api/errors/fc052b7be2516cbf. Report an issue: GitHub.