openai/codex · error

network proxy restricting SID requires the elevated Windows…

Error message

network proxy restricting SID requires the elevated Windows sandbox backend

What it means

A unified-exec request supplied network_proxy_restricting_sid, but execution fell through to the non-elevated backend. SID-based proxy restriction requires the elevated Windows sandbox; the request is rejected because the restriction could not be honored.

Solutions

  1. Enable the elevated Windows sandbox backend, or remove the network proxy restricting SID configuration.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/mod.rs:78 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/8fcfaf0b7cbc432d. Report an issue: GitHub.

Appendix: source

Thrown at codex-rs/windows-sandbox-rs/src/unified_exec/mod.rs:78

            request.network_proxy_restricting_sid,
            request.proxy_settings_mode,
            request.timeout_ms,
            request.read_roots_override,
            request.read_roots_include_platform_defaults,
            request.write_roots_override,
            request.deny_read_paths_override,
            request.deny_write_paths_override,
            request.tty,
            request.stdin_open,
            request.use_private_desktop,
        )
        .await
    } else {
        if request.proxy_enforced {
            bail!("managed networking requires the elevated Windows sandbox backend");
        }
        if request.network_proxy_restricting_sid.is_some() {
            bail!("network proxy restricting SID requires the elevated Windows sandbox backend");
        }
        spawn_windows_sandbox_session_legacy(
            request.permission_profile,
            request.workspace_roots,
            request.codex_home,
            request.command,
            request.cwd,
            request.env_map,
            request.timeout_ms,
            request.deny_read_paths_override,
            request.deny_write_paths_override,
            request.tty,
            request.stdin_open,
            request.use_private_desktop,
        )
        .await
    }
}

View on GitHub (pinned to 339751715c)