{"record":{"id":"dcd908b9e59b17e2","repo":"BigPizzaV3/CodexPlusPlus","slug":"error-dcd908","errorCode":null,"errorMessage":"启动管理工具失败：{error}","messagePattern":"启动管理工具失败：(.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/codex-plus-launcher/src/main.rs","lineNumber":295,"sourceCode":"}\n\nasync fn notify_manager_when_update_available() -> anyhow::Result<bool> {\n    let update =\n        codex_plus_core::update::check_for_update(codex_plus_core::version::VERSION).await?;\n    if !update.update_available {\n        return Ok(false);\n    }\n    open_manager_with_update_prompt()?;\n    Ok(true)\n}\n\nfn open_manager_with_update_prompt() -> anyhow::Result<()> {\n    codex_plus_core::install::spawn_companion(\n        codex_plus_core::install::MANAGER_BINARY,\n        [\"--show-update\"],\n    )\n    .map(|_| ())\n    .map_err(|error| anyhow::anyhow!(\"启动管理工具失败：{error}\"))\n}\n\nfn parse_launch_options<I, S>(args: I) -> LaunchOptions\nwhere\n    I: IntoIterator<Item = S>,\n    S: AsRef<str>,\n{\n    let mut options = LaunchOptions::default();\n    let mut iter = args.into_iter();\n    while let Some(arg) = iter.next() {\n        match arg.as_ref() {\n            \"--app-path\" => {\n                if let Some(value) = iter.next() {\n                    let value = value.as_ref().trim();\n                    if !value.is_empty() {\n                        options.app_dir = Some(PathBuf::from(value));\n                    }\n                }","sourceCodeStart":277,"sourceCodeEnd":313,"githubUrl":"https://github.com/BigPizzaV3/CodexPlusPlus/blob/b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6/apps/codex-plus-launcher/src/main.rs#L277-L313","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Reinstall/re-run the installer so MANAGER_BINARY exists at the expected path.","Verify the binary at the resolved path exists and is executable (chmod +x on Unix / unblock on Windows).","Launch the manager manually once to see any OS-level block (antivirus, Gatekeeper) and approve it.","Check spawn_companion's underlying io::Error in the {error} message for the exact OS reason."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":"const bin = managerBinaryPath();\nif (!fs.existsSync(bin) || fs.statSync(bin).mode & 0o111 === 0) throw new Error(`manager binary missing or not executable: ${bin}`);","typeGuard":null,"tryCatchPattern":"if let Err(e) = open_manager_with_update_prompt() {\n    tracing::warn!(\"{e}; falling back to CLI update notice\");\n    println!(\"Update available — run the installer to update.\");\n}","preventionTips":["Verify the manager binary exists and is executable at startup.","Keep launcher and manager installed together by the same installer.","Handle OS-level blocks (Gatekeeper/SmartScreen/antivirus) in onboarding docs.","Log the underlying io::Error to distinguish missing-binary vs permission issues."],"tags":["process-spawn","installation","missing-binary"],"backgroundTag":"command-not-found","analyzedSha":"b1ed92e5e4a2d74095d4b8db5af43cef7acba9c6","analyzedAt":"2026-09-19T23:35:21.129Z","contentChangedAt":"2026-09-19T23:35:21.129Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}