BigPizzaV3/CodexPlusPlus · error

启动管理工具失败:

Error message

启动管理工具失败:{error}

What it means

open_manager_with_update_prompt spawns the manager companion binary (codex_plus_core::install::MANAGER_BINARY) with --show-update via spawn_companion, and wraps any spawn failure in this Chinese-language anyhow error. It means the launcher could not launch the manager GUI process to show the update prompt.

Solutions

  1. Reinstall/re-run the installer so MANAGER_BINARY exists at the expected path.
  2. Verify the binary at the resolved path exists and is executable (chmod +x on Unix / unblock on Windows).
  3. Launch the manager manually once to see any OS-level block (antivirus, Gatekeeper) and approve it.
  4. Check spawn_companion's underlying io::Error in the {error} message for the exact OS reason.
Defensive patterns

Strategy: fallback

Validate before calling

const bin = managerBinaryPath();
if (!fs.existsSync(bin) || fs.statSync(bin).mode & 0o111 === 0) throw new Error(`manager binary missing or not executable: ${bin}`);

Try / catch

if let Err(e) = open_manager_with_update_prompt() {
    tracing::warn!("{e}; falling back to CLI update notice");
    println!("Update available — run the installer to update.");
}

Prevention

When it happens

Trigger: spawn_companion failing because the manager binary does not exist at the expected install location, lacks execute permission, or the OS spawn call returns an error.

Common situations: Partial or broken installation where the manager binary was removed or never installed; PATH/install-dir mismatch after an update; running the launcher from a build directory without the companion installed; macOS Gatekeeper or Windows SmartScreen blocking execution.

Related errors


AI-assisted analysis of BigPizzaV3/CodexPlusPlus@b1ed92e5e4 (2026-09-19). Data as JSON: /api/errors/dcd908b9e59b17e2. Report an issue: GitHub.

Appendix: source

Thrown at apps/codex-plus-launcher/src/main.rs:295

}

async fn notify_manager_when_update_available() -> anyhow::Result<bool> {
    let update =
        codex_plus_core::update::check_for_update(codex_plus_core::version::VERSION).await?;
    if !update.update_available {
        return Ok(false);
    }
    open_manager_with_update_prompt()?;
    Ok(true)
}

fn open_manager_with_update_prompt() -> anyhow::Result<()> {
    codex_plus_core::install::spawn_companion(
        codex_plus_core::install::MANAGER_BINARY,
        ["--show-update"],
    )
    .map(|_| ())
    .map_err(|error| anyhow::anyhow!("启动管理工具失败:{error}"))
}

fn parse_launch_options<I, S>(args: I) -> LaunchOptions
where
    I: IntoIterator<Item = S>,
    S: AsRef<str>,
{
    let mut options = LaunchOptions::default();
    let mut iter = args.into_iter();
    while let Some(arg) = iter.next() {
        match arg.as_ref() {
            "--app-path" => {
                if let Some(value) = iter.next() {
                    let value = value.as_ref().trim();
                    if !value.is_empty() {
                        options.app_dir = Some(PathBuf::from(value));
                    }
                }

View on GitHub (pinned to b1ed92e5e4)