{"record":{"id":"88fc3388b6bc6383","repo":"openai/codex","slug":"codex-update-is-not-available-in-debug-builds-i","errorCode":null,"errorMessage":"`codex update` is not available in debug builds. Install a release build of Codex to use this command.","messagePattern":"`codex update` is not available in debug builds\\. Install a release build of Codex to use this command\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/main.rs","lineNumber":886,"sourceCode":"                .iter()\n                .map(crate::wsl_paths::normalize_for_wsl)\n                .collect();\n            std::process::Command::new(&command_path)\n                .args(&normalized_args)\n                .status()?\n        }\n    };\n    if !status.success() {\n        anyhow::bail!(\"`{cmd_str}` failed with status {status}\");\n    }\n    println!(\"\\n🎉 Update ran successfully! Please restart Codex.\");\n    Ok(())\n}\n\nfn run_update_command() -> anyhow::Result<()> {\n    #[cfg(debug_assertions)]\n    {\n        anyhow::bail!(\n            \"`codex update` is not available in debug builds. Install a release build of Codex to use this command.\"\n        );\n    }\n\n    #[cfg(not(debug_assertions))]\n    {\n        let Some(action) = codex_tui::get_update_action() else {\n            anyhow::bail!(\n                \"Could not detect the Codex installation method. Please update manually: https://developers.openai.com/codex/cli/\"\n            );\n        };\n        run_update_action(action)\n    }\n}\n\nfn run_execpolicycheck(cmd: ExecPolicyCheckCommand) -> anyhow::Result<()> {\n    cmd.run()\n}","sourceCodeStart":868,"sourceCodeEnd":904,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/main.rs#L868-L904","documentation":"Error \"`codex update` is not available in debug builds. Install a release build of Codex to use this command.\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/main.rs:886 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"}