{"record":{"id":"0505e848dbf93a79","repo":"openai/codex","slug":"windows-sandbox-is-only-available-on-windows-0505e8","errorCode":null,"errorMessage":"Windows sandbox is only available on Windows","messagePattern":"Windows sandbox is only available on Windows","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/elevated_impl.rs","lineNumber":308,"sourceCode":"mod stub {\n    use super::ElevatedSandboxProfileCaptureRequest;\n    use anyhow::Result;\n    use anyhow::bail;\n\n    #[derive(Debug, Default)]\n    pub struct CaptureResult {\n        pub exit_code: i32,\n        pub stdout: Vec<u8>,\n        pub stderr: Vec<u8>,\n        pub timed_out: bool,\n    }\n\n    /// Stub implementation for non-Windows targets; sandboxing only works on Windows.\n    #[allow(clippy::too_many_arguments)]\n    pub fn run_windows_sandbox_capture_for_permission_profile(\n        _request: ElevatedSandboxProfileCaptureRequest<'_>,\n    ) -> Result<CaptureResult> {\n        bail!(\"Windows sandbox is only available on Windows\")\n    }\n}\n\n#[cfg(not(target_os = \"windows\"))]\npub use stub::run_windows_sandbox_capture_for_permission_profile;\n","sourceCodeStart":290,"sourceCodeEnd":314,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/elevated_impl.rs#L290-L314","documentation":"Error \"Windows sandbox is only available on Windows\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/elevated_impl.rs:308 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"}