{"record":{"id":"912057394ff9ea28","repo":"openai/codex","slug":"missing-sandboxed-command-in-windows-sandbox-wrapp","errorCode":null,"errorMessage":"missing sandboxed command in windows sandbox wrapper request","messagePattern":"missing sandboxed command in windows sandbox wrapper request","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/wrapper.rs","lineNumber":180,"sourceCode":"    workspace_roots: Vec<AbsolutePathBuf>,\n    env_map: HashMap<String, String>,\n    permission_profile: PermissionProfile,\n    windows_sandbox_level: WindowsSandboxLevel,\n    windows_sandbox_private_desktop: bool,\n    proxy_enforced: bool,\n    network_proxy_restricting_sid: Option<String>,\n    proxy_settings_mode: crate::WindowsSandboxProxySettingsMode,\n    read_roots_override: Option<Vec<PathBuf>>,\n    read_roots_include_platform_defaults: bool,\n    write_roots_override: Option<Vec<PathBuf>>,\n    deny_read_paths_override: Vec<AbsolutePathBuf>,\n    deny_write_paths_override: Vec<AbsolutePathBuf>,\n    command: Vec<String>,\n}\n\nasync fn run_windows_sandbox_wrapper_request(request: WindowsSandboxWrapperRequest) -> Result<i32> {\n    if request.command.is_empty() {\n        bail!(\"missing sandboxed command in windows sandbox wrapper request\");\n    }\n    let spawned =\n        crate::spawn_windows_sandbox_session_for_level(crate::WindowsSandboxSessionRequest {\n            permission_profile: &request.permission_profile,\n            workspace_roots: request.workspace_roots.as_slice(),\n            codex_home: request.codex_home.as_path(),\n            command: request.command,\n            cwd: request.command_cwd.as_path(),\n            env_map: request.env_map,\n            windows_sandbox_level: request.windows_sandbox_level,\n            proxy_enforced: request.proxy_enforced,\n            network_proxy_restricting_sid: request.network_proxy_restricting_sid,\n            proxy_settings_mode: request.proxy_settings_mode,\n            timeout_ms: None,\n            read_roots_override: request.read_roots_override.as_deref(),\n            read_roots_include_platform_defaults: request.read_roots_include_platform_defaults,\n            write_roots_override: request.write_roots_override.as_deref(),\n            deny_read_paths_override: request.deny_read_paths_override.as_slice(),","sourceCodeStart":162,"sourceCodeEnd":198,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/wrapper.rs#L162-L198","documentation":"Error \"missing sandboxed command in windows sandbox wrapper request\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/wrapper.rs:180 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Include the sandboxed command after the -- separator in the wrapper invocation."],"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"}