{"record":{"id":"1ba3097b10ec9703","repo":"openai/codex","slug":"managed-codex-version-output-was-malformed","errorCode":null,"errorMessage":"managed Codex version output was malformed","messagePattern":"managed Codex version output was malformed","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/app-server-daemon/src/managed_install.rs","lineNumber":97,"sourceCode":"\n#[cfg(unix)]\npub(crate) fn executable_identity_from_bytes(bytes: &[u8]) -> ExecutableIdentity {\n    ExecutableIdentity {\n        digest: Sha256::digest(bytes).into(),\n    }\n}\n\nfn managed_codex_file_name() -> &'static str {\n    if cfg!(windows) { \"codex.exe\" } else { \"codex\" }\n}\n\n#[cfg(unix)]\nfn parse_codex_version(output: &str) -> Result<String> {\n    let version = output\n        .split_whitespace()\n        .nth(1)\n        .filter(|version| !version.is_empty())\n        .ok_or_else(|| anyhow!(\"managed Codex version output was malformed\"))?;\n    Ok(version.to_string())\n}\n\n#[cfg(all(test, unix))]\n#[path = \"managed_install_tests.rs\"]\nmod tests;\n","sourceCodeStart":79,"sourceCodeEnd":104,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/app-server-daemon/src/managed_install.rs#L79-L104","documentation":"Error \"managed Codex version output was malformed\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/app-server-daemon/src/managed_install.rs:97 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"}