{"record":{"id":"97e6f99a49523325","repo":"openai/codex","slug":"managed-codex-binary-exited-with-status","errorCode":null,"errorMessage":"managed Codex binary {} exited with status {}","messagePattern":"managed Codex binary (.+?) exited with status (.+?)","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-daemon/src/managed_install.rs","lineNumber":50,"sourceCode":"            codex_bin.display()\n        )\n    })\n}\n\n#[cfg(unix)]\npub(crate) async fn managed_codex_version(codex_bin: &Path) -> Result<String> {\n    let output = Command::new(codex_bin)\n        .arg(\"--version\")\n        .output()\n        .await\n        .with_context(|| {\n            format!(\n                \"failed to invoke managed Codex binary {}\",\n                codex_bin.display()\n            )\n        })?;\n    if !output.status.success() {\n        return Err(anyhow!(\n            \"managed Codex binary {} exited with status {}\",\n            codex_bin.display(),\n            output.status\n        ));\n    }\n\n    let stdout = String::from_utf8(output.stdout).with_context(|| {\n        format!(\n            \"managed Codex version was not utf-8: {}\",\n            codex_bin.display()\n        )\n    })?;\n    parse_codex_version(&stdout)\n}\n\n#[cfg(unix)]\n#[derive(Debug, Clone, PartialEq, Eq)]\npub(crate) struct ExecutableIdentity {","sourceCodeStart":32,"sourceCodeEnd":68,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-daemon/src/managed_install.rs#L32-L68","documentation":"Error \"managed Codex binary {} exited with status {}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-daemon/src/managed_install.rs:50 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}