Cannot find the specified module codex-windows-sandbox-setup.exe
Open 💬 14 comments Opened Jun 19, 2026 by Jiuxiao-yunwai
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.32156
What subscription do you have?
plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
找不到指定的模块 codex-windows-sandbox-setup.exe
<img width="834" height="283" alt="Image" src="https://github.com/user-attachments/assets/43d1a111-2693-483b-abc0-fad33fbb230c" />
019edfe9-d109-7920-a40d-0e8cc3df7e30
What steps can reproduce the bug?
Feedback ID: 019edfe9-d109-7920-a40d-0e8cc3df7e30
What is the expected behavior?
_No response_
Additional information
_No response_
14 Comments
English translation:
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.32156
What subscription do you have?
plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Cannot find the specified module codex-windows-sandbox-setup.exe
<img width="834" height="283" alt="Image" src="https://github.com/user-attachments/assets/43d1a111-2693-483b-abc0-fad33fbb230c" />
019edfe9-d109-7920-a40d-0e8cc3df7e30
What steps can reproduce the bug?
Feedback ID: 019edfe9-d109-7920-a40d-0e8cc3df7e30
What is the expected behavior?
_No response_
Additional information
_No response_
<!-- codex-issue-translator -->
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
same here, quite annoying
I can reproduce the same
codex-windows-sandbox-setup.exedialog, and I think there is a clearer root-cause / graceful-degradation case here.Environment
OpenAI.Codex_26.616.6631.0_x64__2p2nqsd0c76g0C:\Program Files\WindowsApps\OpenAI.Codex_26.616.6631.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exesysteminfo:Microsoft Windows 11 Home,10.0.26200, x64找不到指定的模块。Equivalent:
The specified module could not be found.The helper executable exists on disk. Its static import table only references normal Windows DLLs such as
KERNEL32.dll,advapi32.dll,user32.dll,ws2_32.dll, etc.; no obvious third-party runtime DLL is missing.Key finding
On this machine, Windows Sandbox is not just disabled. The feature is unknown to the OS image:
Output:
This matches the machine being Windows 11 Home, where the Windows Sandbox feature is not available in the image.
Current behavior
Codex still tries to launch:
Then Windows shows the raw loader dialog:
The user gets no actionable message explaining that Windows Sandbox is unavailable on this edition/image.
Expected behavior
Codex should detect this before launching the sandbox setup helper:
Containers-DisposableClientVM/ the required Windows sandbox capability exists and is enabled.codex-windows-sandbox-setup.exein a way that produces a raw Windows modal error.Windows Sandbox is not available on this Windows edition/image. Some sandbox-dependent Codex Desktop features are unavailable.This issue is less about making Windows Home support Windows Sandbox, and more about Codex handling unsupported Windows environments cleanly instead of surfacing an opaque native Windows error dialog.
I was able to fix this issue on my machine.
Environment:
OpenAI.Codex_26.616.6631.0_x64__2p2nqsd0c76g0codex-windows-sandbox-setup.exe/ “The specified module could not be found.”In my case, the problem was related to the proxy settings stored in Codex’s user directory.
I had proxy variables configured in:
For example:
And the sandbox state file also had the same proxy port recorded:
Before:
What fixed it for me:
.envto.env.bak, or remove/comment out the proxy variables..codex\.sandbox\setup_marker.json.proxy_portsto an empty array:After doing this, Codex stopped launching
codex-windows-sandbox-setup.exe, and file editing /apply_patchstarted working again.So this seems to be related to a mismatch between proxy settings in
.codex\.envand the Windows elevated sandbox state in.codex\.sandbox\setup_marker.json.For users who still need a proxy, using a system-level/TUN proxy mode may be safer than setting
HTTP_PROXY,HTTPS_PROXY, orALL_PROXYdirectly in Codex’s.envuntil this bug is fixed.@Lggyy9 Thanks mate, that works for me
Has anyone tried just running VS Code as an administrator first? That actually solved the issue for me.
> For users who still need a proxy, using a system-level/TUN proxy mode may be safer than setting
HTTP_PROXY,HTTPS_PROXY, orALL_PROXYdirectly in Codex’s.envuntil this bug is fixed.What other ways are there to solve the problem without using a system-level/TUN proxy mode?
I fixed this by setting the sandbox option in the Codex config to
unelevated:[windows]
sandbox = "unelevated"
I'm using Windows 11, WebStorm, and codex-cli in the terminal. Once I ran WebStorm as an administrator, this error stopped appearing.
I can reproduce this on another Windows 11 machine, and I have one extra data point that may help narrow it down.
Environment
OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0codex-windows-sandbox-setup.exepath shown in the Windows dialog after switchingCODEX_CLI_PATHto the bundled app CLI:C:\Users\Samsen\AppData\Local\OpenAI\Codex\bin\38dff8711e296435\codex-windows-sandbox-setup.exesysteminfo:Microsoft Windows 11 Home/10.0.26200/ x64找不到指定的模块。/The specified module could not be found.```toml
sandbox_mode = "workspace-write"
[windows]
sandbox = "elevated"
```
Interesting behavior
The Windows modal dialog appears, but the sandbox log shows the setup helper completing successfully in the same time window.
From
C:\Users\Samsen\.codex\.sandbox\sandbox.2026-07-03.log:This matches the confusing user-visible behavior:
apply_patchcan create the file successfully, while Windows still shows the nativecodex-windows-sandbox-setup.exemodal dialog. So at least one setup path is succeeding, while another concurrent/loader/elevated path appears to surface the modal.Proxy-related data point
This machine does not have
C:\Users\Samsen\.codex\.env, but the Codex process environment has proxy variables:And
C:\Users\Samsen\.codex\.sandbox\setup_marker.jsoncontains:So this may be consistent with the proxy/setup-marker angle mentioned above, even without a
.codex/.envfile.Other checks
dumpbin /importsoncodex-windows-sandbox-setup.exeonly showed normal Windows DLL imports (KERNEL32.dll,advapi32.dll,ntdll.dll,oleaut32.dll,bcrypt*.dll,crypt32.dll,ole32.dll,user32.dll,ws2_32.dll,fwpuclnt.dll,netapi32.dll, etc.).C:\Windows\System32/SysWOW64..codex\.sandbox-bin\codex-command-runner-0.142.0.exehas the same SHA256 as the bundledcodex-command-runner.exe.This looks less like a simple missing DLL on the host and more like an issue in the Windows sandbox setup / elevated spawn / proxy-port setup path. The main request from my side would be: if the setup helper can complete with
errors=[], Codex should not also surface a raw Windows loader modal to the user, or should log which secondary spawn/load path produced it.I’m seeing the same issue on Windows.
My setup:
What I observed:
.codex/.sandbox/setup_marker.jsonis regenerated withproxy_ports, for example:setup_marker.jsondoes not help, because Codex rewrites it on the next run..codex/.envalso triggers the same sandbox-related behavior.codex-windows-sandbox-setup.exe/ sandbox setup failures for me.Current workaround:
Together with terminal-level proxy variables, this currently works around both problems for me:
So this looks like a Windows sandbox/proxy interaction bug rather than a user config issue. Hope this helps with debugging.
You can try the method mentioned here:
https://github.com/openai/codex/issues/29418#issuecomment-4831792926
I can reproduce this on the current Windows release, and the impact is much broader than a single failed helper launch.
Environment
26.707.3748.00.144.126200What happened
After the forced migration/rename from the standalone Codex app to the new ChatGPT desktop app, the new app stopped launching entirely. Windows creates the
OpenAI.Codexprocess and AppX container, then immediately destroys the container. AppModel-Runtime records events 201/210/211/217, but there is no corresponding Application Error or Windows Error Reporting crash entry.The same machine then reproduces this issue in the officially installed CLI: setup blocks and Windows reports that it cannot find
codex-windows-sandbox-setup.exe.Recovery attempts that did not fix the desktop app
.codexdirectory moved asideThe only way to regain access to existing work was to install Codex CLI separately, select the non-admin sandbox / use a full-access workaround, point
CODEX_HOMEat the preserved data, and runcodex resume --all. That is not an acceptable replacement for the desktop product or for a migration that was supposed to preserve working access.User impact
Important running work had to be interrupted. Several hours were lost recovering access to existing projects and sessions. This is not the first stability incident. The user is ending their use of GPT/Codex and moving to Claude Code because they need a stable production tool, not repeated recovery work after product updates.
Because this is a paid service and the failure made the purchased functionality unavailable while causing a measurable loss of working time, the user also requests a formal response explaining what compensation or consumer redress is available under applicable law and OpenAI's terms. Please do not treat this only as a cosmetic Windows bug: the direct cost to the user is lost work time.
Requested action