codex - 💡(How to fix) Fix [FIX Request] Codex Windows sandbox networking fails due to ACL error [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18821Fetched 2026-04-22 07:52:09
View on GitHub
Comments
2
Participants
2
Timeline
10
Reactions
0
Timeline (top)
labeled ×5commented ×2closed ×1cross-referenced ×1

On my Windows machine, Codex Desktop cannot use networked child-process commands inside the sandbox even though network_access = true is enabled.

Manual PowerShell outside Codex works normally:

  • nslookup registry.npmjs.org succeeds
  • node DNS lookup succeeds

But commands launched through Codex fail consistently:

  • nslookup registry.npmjs.org -> No response from server
  • node dns.lookup('registry.npmjs.org') -> EAI_FAIL
  • direct TCP connect to 104.16.0.34:443 -> UNKNOWN:connect UNKNOWN ...

The direct root cause appears to be that the Windows sandbox setup helper cannot grant a read ACE on the installed app resources directory under C:\Program Files\WindowsApps\OpenAI.Codex_...\app\resources.

I found the following persistent local state:

  • ~/.codex/.sandbox/setup_error.json contains:
    • {"code":"helper_unknown_error","message":"read ACL run had errors"}
  • ~/.codex/.sandbox/sandbox.log repeatedly shows:
    • grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5

I also confirmed that the command-runner request payload still contains network_access:true, so this does not look like a config propagation problem.

Error Message

[2026-04-21 17:03:18.874 codex.exe] helper launch resolution: using copied command-runner path <USER_HOME>.codex.sandbox-bin\codex-command-runner.exe [2026-04-21T08:03:18.874577500+00:00] granting read ACE to C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox users [2026-04-21 17:03:18.874 codex.exe] runner launch: exe=<USER_HOME>.codex.sandbox-bin\codex-command-runner.exe cmdline=<USER_HOME>.codex.sandbox-bin\codex-command-runner.exe --pipe-in=\.\pipe\codex-runner-5809c2ef6472c17b42fd7b5971d1c1cf-in --pipe-out=\.\pipe\codex-runner-f71e23823f15274712e437030b7b046-out cwd=<WORKSPACE> [2026-04-21T08:03:18.874678500+00:00] grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5 [2026-04-21T08:03:18.879815800+00:00] read ACL run completed with errors: ["grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5"] [2026-04-21T08:03:18.879837500+00:00] setup error: read ACL run had errors [2026-04-21 17:03:18.879 codex-windows-sandbox-setup.exe] setup error: read ACL run had errors

Root Cause

The direct root cause appears to be that the Windows sandbox setup helper cannot grant a read ACE on the installed app resources directory under C:\Program Files\WindowsApps\OpenAI.Codex_...\app\resources.

Fix Action

Fix / Workaround

As a practical workaround, I can run those commands in normal PowerShell outside Codex, but the more workloads we have, the more burdens we are causing to maintain codex-backed development.

Code Example

[2026-04-21 17:03:18.874 codex.exe] helper launch resolution: using copied command-runner path <USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe
[2026-04-21T08:03:18.874577500+00:00] granting read ACE to C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox users
[2026-04-21 17:03:18.874 codex.exe] runner launch: exe=<USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe cmdline=<USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe --pipe-in=\\.\pipe\codex-runner-5809c2ef6472c17b42fd7b5971d1c1cf-in --pipe-out=\\.\pipe\codex-runner-f71e23823f15274712e437030b7b046-out cwd=<WORKSPACE>
[2026-04-21T08:03:18.874678500+00:00] grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5
[2026-04-21T08:03:18.879815800+00:00] read ACL run completed with errors: ["grant read ACE failed on C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\\app\\resources for sandbox_group: SetNamedSecurityInfoW failed: 5"]
[2026-04-21T08:03:18.879837500+00:00] setup error: read ACL run had errors
[2026-04-21 17:03:18.879 codex-windows-sandbox-setup.exe] setup error: read ACL run had errors
RAW_BUFFERClick to expand / collapse

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

26.417.5275.0

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary

On my Windows machine, Codex Desktop cannot use networked child-process commands inside the sandbox even though network_access = true is enabled.

Manual PowerShell outside Codex works normally:

  • nslookup registry.npmjs.org succeeds
  • node DNS lookup succeeds

But commands launched through Codex fail consistently:

  • nslookup registry.npmjs.org -> No response from server
  • node dns.lookup('registry.npmjs.org') -> EAI_FAIL
  • direct TCP connect to 104.16.0.34:443 -> UNKNOWN:connect UNKNOWN ...

The direct root cause appears to be that the Windows sandbox setup helper cannot grant a read ACE on the installed app resources directory under C:\Program Files\WindowsApps\OpenAI.Codex_...\app\resources.

I found the following persistent local state:

  • ~/.codex/.sandbox/setup_error.json contains:
    • {"code":"helper_unknown_error","message":"read ACL run had errors"}
  • ~/.codex/.sandbox/sandbox.log repeatedly shows:
    • grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5

I also confirmed that the command-runner request payload still contains network_access:true, so this does not look like a config propagation problem.

Why I believe this is a Codex desktop bug

I tried all of the following and the exact same ACL failure still reproduces:

  • app restart
  • sign out / sign in
  • Windows Firewall rule review
  • Codex Repair
  • deleting / regenerating ~/.codex/.sandbox, .sandbox-bin, .sandbox-secrets
  • Windows reboot
  • reinstall on a newer package version

After reinstall, the package version changed, but the same SetNamedSecurityInfoW failed: 5 error still occurred on the new WindowsApps\...\app\resources path.

So at this point the failure seems to be in the Windows desktop sandbox helper / ACL setup path itself, not in my network_access setting.

Impact

This breaks common networked commands from Codex Desktop on Windows, for example:

  • npm install
  • DNS lookups from node
  • direct outbound TCP from child processes (pip and others)

As a practical workaround, I can run those commands in normal PowerShell outside Codex, but the more workloads we have, the more burdens we are causing to maintain codex-backed development.

Evidence

Representative local evidence:

  • ~/.codex/.sandbox/setup_error.json setup_error.json
  • ~/.codex/.sandbox/sandbox.log with the logs attached below
  • Codex child-process failures:
    • EAI_FAIL:getaddrinfo EAI_FAIL registry.npmjs.org
    • UNKNOWN:connect UNKNOWN 104.16.0.34:443 - Local (undefined:undefined)
  • manual PowerShell on the same machine succeeds for the equivalent DNS checks
[2026-04-21 17:03:18.874 codex.exe] helper launch resolution: using copied command-runner path <USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe
[2026-04-21T08:03:18.874577500+00:00] granting read ACE to C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox users
[2026-04-21 17:03:18.874 codex.exe] runner launch: exe=<USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe cmdline=<USER_HOME>\.codex\.sandbox-bin\codex-command-runner.exe --pipe-in=\\.\pipe\codex-runner-5809c2ef6472c17b42fd7b5971d1c1cf-in --pipe-out=\\.\pipe\codex-runner-f71e23823f15274712e437030b7b046-out cwd=<WORKSPACE>
[2026-04-21T08:03:18.874678500+00:00] grant read ACE failed on C:\Program Files\WindowsApps\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\app\resources for sandbox_group: SetNamedSecurityInfoW failed: 5
[2026-04-21T08:03:18.879815800+00:00] read ACL run completed with errors: ["grant read ACE failed on C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.417.5275.0_x64__2p2nqsd0c76g0\\app\\resources for sandbox_group: SetNamedSecurityInfoW failed: 5"]
[2026-04-21T08:03:18.879837500+00:00] setup error: read ACL run had errors
[2026-04-21 17:03:18.879 codex-windows-sandbox-setup.exe] setup error: read ACL run had errors

What steps can reproduce the bug?

  1. Install Codex Desktop on Windows.
  2. Enable network_access = true in user config.
  3. Launch a networked command through Codex Desktop sandbox / shell tool.
  4. Observe that Codex child-process networking fails.
  5. Check ~/.codex/.sandbox/setup_error.json and ~/.codex/.sandbox/sandbox.log.
  6. Observe repeated SetNamedSecurityInfoW failed: 5 on ...\app\resources.

What is the expected behavior?

If network_access = true is enabled and the machine itself has working DNS/networking, Codex Desktop child processes should be able to perform outbound networking normally.

Additional information

Suggested labels:

  • bug
  • sandbox
  • windows-os

extent analysis

TL;DR

The most likely fix is to modify the Windows sandbox setup to correctly grant read access to the Codex app resources directory.

Guidance

  1. Investigate Windows permissions: Check the current permissions on the C:\Program Files\WindowsApps\OpenAI.Codex_...\app\resources directory to understand why SetNamedSecurityInfoW is failing with error code 5, which typically indicates access denied.
  2. Manual permission adjustment: Attempt to manually grant read access to the sandbox_group on the resources directory to see if this resolves the issue, which could help confirm if the problem is indeed related to permissions.
  3. Review Windows Sandbox configuration: Ensure that the Windows Sandbox is correctly configured to allow network access and that there are no other restrictions in place that could be preventing the Codex child processes from accessing the network.
  4. Codex configuration review: Double-check the Codex configuration to ensure that network_access = true is correctly set and propagated to the child processes.

Example

No specific code example is provided as the issue seems to be related to Windows permissions and sandbox configuration rather than a code-level problem.

Notes

The provided information suggests a permissions issue with the Windows sandbox setup. However, without direct access to the system or more detailed error logs, it's challenging to provide a definitive solution. The steps outlined are intended to help diagnose and potentially resolve the issue but may require additional troubleshooting based on the specific environment and configuration.

Recommendation

Apply a workaround by manually adjusting the permissions on the Codex app resources directory or reviewing the Windows Sandbox configuration to ensure it allows the necessary network access. This is recommended because the issue appears to be related to a configuration or permissions problem rather than a bug in the Codex application itself.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

codex - 💡(How to fix) Fix [FIX Request] Codex Windows sandbox networking fails due to ACL error [2 comments, 2 participants]