{"record":{"id":"28db3f950ebff576","repo":"openai/codex","slug":"windows-sandbox-is-only-available-on-windows","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/cli/src/debug_sandbox.rs","lineNumber":336,"sourceCode":"    }\n\n    // Special-case Windows sandbox: execute and exit the process to emulate inherited stdio.\n    if let SandboxType::Windows = sandbox_type {\n        #[cfg(target_os = \"windows\")]\n        {\n            run_command_under_windows_session(\n                &config,\n                &permission_profile,\n                command,\n                cwd,\n                workspace_roots,\n                env,\n            )\n            .await;\n        }\n        #[cfg(not(target_os = \"windows\"))]\n        {\n            anyhow::bail!(\"Windows sandbox is only available on Windows\");\n        }\n    }\n\n    #[cfg(target_os = \"macos\")]\n    let mut denial_logger = log_denials.then(DenialLogger::new).flatten();\n    #[cfg(not(target_os = \"macos\"))]\n    let _ = log_denials;\n\n    let managed_network_requirements_enabled = config.managed_network_requirements_enabled();\n\n    // This proxy should only live for the lifetime of the child process.\n    let network_proxy = match config.permissions.network.as_ref() {\n        Some(spec) => Some(\n            spec.start_proxy(\n                &permission_profile,\n                /*policy_decider*/ None,\n                /*blocked_request_observer*/ None,\n                managed_network_requirements_enabled,","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/debug_sandbox.rs#L318-L354","documentation":"Error \"Windows sandbox is only available on Windows\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/debug_sandbox.rs:336 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"}