{"record":{"id":"a11d92bb78d5e05d","repo":"openai/codex","slug":"windows-sandbox-is-only-available-on-windows-a11d92","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/lib.rs","lineNumber":865,"sourceCode":"        pub exit_code: i32,\n        pub stdout: Vec<u8>,\n        pub stderr: Vec<u8>,\n        pub timed_out: bool,\n    }\n\n    #[allow(clippy::too_many_arguments)]\n    pub fn run_windows_sandbox_capture(\n        _permission_profile: &PermissionProfile,\n        _workspace_roots: &[AbsolutePathBuf],\n        _codex_home: &Path,\n        _command: Vec<String>,\n        _cwd: &Path,\n        _env_map: HashMap<String, String>,\n        _timeout_ms: Option<u64>,\n        _cancellation: Option<WindowsSandboxCancellationToken>,\n        _use_private_desktop: bool,\n    ) -> Result<CaptureResult> {\n        bail!(\"Windows sandbox is only available on Windows\")\n    }\n\n    pub fn run_windows_sandbox_legacy_preflight(\n        _permission_profile: &PermissionProfile,\n        _workspace_roots: &[AbsolutePathBuf],\n        _codex_home: &Path,\n        _cwd: &Path,\n        _env_map: &HashMap<String, String>,\n    ) -> Result<()> {\n        bail!(\"Windows sandbox is only available on Windows\")\n    }\n}\n","sourceCodeStart":847,"sourceCodeEnd":878,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/lib.rs#L847-L878","documentation":"Error \"Windows sandbox is only available on Windows\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/lib.rs:865 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"}