{"record":{"id":"e8d7d61f39eba0ae","repo":"openai/codex","slug":"windows-sandbox-setup-is-missing-or-out-of-date-r","errorCode":null,"errorMessage":"Windows sandbox setup is missing or out of date; rerun the sandbox setup with elevation","messagePattern":"Windows sandbox setup is missing or out of date; rerun the sandbox setup with elevation","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/windows-sandbox-rs/src/identity.rs","lineNumber":249,"sourceCode":"    run_setup_refresh_with_overrides_and_proxy_settings(\n        crate::setup::SandboxSetupRequest {\n            permissions,\n            command_cwd,\n            env_map,\n            codex_home,\n            proxy_enforced,\n        },\n        crate::setup::SetupRootOverrides {\n            read_roots: Some(needed_read),\n            read_roots_include_platform_defaults,\n            write_roots: Some(needed_write),\n            deny_read_paths: Some(deny_read_paths_override.to_vec()),\n            deny_write_paths: Some(deny_write_paths_override.to_vec()),\n        },\n        &desired_offline_proxy_settings,\n    )?;\n    let identity = identity.ok_or_else(|| {\n        anyhow!(\n            \"Windows sandbox setup is missing or out of date; rerun the sandbox setup with elevation\"\n        )\n    })?;\n    Ok(SandboxCreds {\n        username: identity.username,\n        password: identity.password,\n    })\n}\n\nfn desired_offline_proxy_settings(\n    marker: Option<&SetupMarker>,\n    proxy_settings_mode: crate::WindowsSandboxProxySettingsMode,\n    env_map: &HashMap<String, String>,\n    network_identity: SandboxNetworkIdentity,\n) -> crate::setup::OfflineProxySettings {\n    match (marker, proxy_settings_mode) {\n        (Some(marker), crate::WindowsSandboxProxySettingsMode::Preserve)\n            if marker.version_matches() =>","sourceCodeStart":231,"sourceCodeEnd":267,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/windows-sandbox-rs/src/identity.rs#L231-L267","documentation":"Error \"Windows sandbox setup is missing or out of date; rerun the sandbox setup with elevation\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/windows-sandbox-rs/src/identity.rs:249 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"}