Windows Codex elevated sandbox repeatedly fails when Codex is launched with HTTP_PROXY/HTTPS_PROXY to localhost proxy

Open 💬 3 comments Opened Jun 29, 2026 by STHxiao

What version of the Codex App are you using (From “About Codex” dialog)?

Codex App: 26.623.8305.0

What subscription do you have?

Plus

What platform is your computer?

  • Codex App: 26.623.8305.0 - Command runner: 0.142.3 - Windows - config.toml: [windows] sandbox = "elevated"

What issue are you seeing?

Windows Codex elevated sandbox repeatedly fails when Codex is launched with HTTP_PROXY/HTTPS_PROXY to localhost proxy

What steps can reproduce the bug?

  1. Launch Codex normally from Start Menu.
  2. Run apply_patch or shell commands: no error.
  3. Close Codex.
  4. Launch Codex via a script that sets:

HTTP_PROXY=http://127.0.0.1:7892
HTTPS_PROXY=http://127.0.0.1:7892
NO_PROXY=localhost,127.0.0.1,::1

  1. Run apply_patch or shell commands.
  2. Windows popup appears:

codex-windows-sandbox-setup.exe 找不到指定的模块

What is the expected behavior?

Codex elevated sandbox should handle localhost proxy settings without repeatedly refreshing firewall/sandbox state or launching a broken setup helper.

Additional information

Workaround:

  • Launch Codex normally without proxy script, or
  • Set [windows] sandbox = "unelevated" when using the proxy launcher.

sandbox.2026-06-29.log

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗