{"record":{"id":"d73b10a1e69db0d7","repo":"openai/codex","slug":"failed-to-install-codex-app-to-any-applications-di","errorCode":null,"errorMessage":"failed to install Codex.app to any applications directory","messagePattern":"failed to install Codex\\.app to any applications directory","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/desktop_app/mac.rs","lineNumber":226,"sourceCode":"        })?;\n\n        let dest_app = applications_dir.join(\"Codex.app\");\n        if dest_app.is_dir() {\n            return Ok(dest_app);\n        }\n\n        match copy_app_bundle(app_in_volume, &dest_app).await {\n            Ok(()) => return Ok(dest_app),\n            Err(err) => {\n                eprintln!(\n                    \"warning: failed to install Codex.app to {applications_dir}: {err}\",\n                    applications_dir = applications_dir.display()\n                );\n            }\n        }\n    }\n\n    anyhow::bail!(\"failed to install Codex.app to any applications directory\");\n}\n\nfn candidate_applications_dirs() -> anyhow::Result<Vec<PathBuf>> {\n    let mut dirs = vec![PathBuf::from(\"/Applications\")];\n    dirs.push(user_applications_dir()?);\n    Ok(dirs)\n}\n\nasync fn download_dmg(url: &str, dest: &Path) -> anyhow::Result<()> {\n    eprintln!(\"Downloading installer...\");\n    let status = Command::new(\"curl\")\n        .arg(\"-fL\")\n        .arg(\"--retry\")\n        .arg(\"3\")\n        .arg(\"--retry-delay\")\n        .arg(\"1\")\n        .arg(\"-o\")\n        .arg(dest)","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/desktop_app/mac.rs#L208-L244","documentation":"install_codex_app_bundle exhausted every candidate Applications directory: Codex.app was absent and each copy_app_bundle attempt failed (a warning was printed per directory). It is an aggregate installation failure, typically permissions or a full disk.","triggerScenarios":"Thrown at codex-rs/cli/src/desktop_app/mac.rs:226 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the per-directory warnings above for the underlying copy error","Ensure write permission on ~/Applications or /Applications","Free disk space and retry","Copy Codex.app from the mounted DMG manually"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}