You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot find the specified module codex-windows-sandbox-setup.exe #29089
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
changed the title [-]找不到指定的模块 codex-windows-sandbox-setup.exe[/-][+]Cannot find the specified module codex-windows-sandbox-setup.exe[/+]on Jun 19, 2026
Helper path shown in the Windows dialog: C:\Program Files\WindowsApps\OpenAI.Codex_26.616.6631.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe
OS from systeminfo: Microsoft Windows 11 Home, 10.0.26200, x64
Windows dialog text, zh-CN: 找不到指定的模块。
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:
Error: 0x800f080c
Feature name Containers-DisposableClientVM is unknown.
A Windows feature name was not recognized.
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:
app\resources\codex-windows-sandbox-setup.exe
Then Windows shows the raw loader dialog:
The specified module could not be found.
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:
Check whether Containers-DisposableClientVM / the required Windows sandbox capability exists and is enabled.
If the capability is unavailable, do not launch codex-windows-sandbox-setup.exe in a way that produces a raw Windows modal error.
Gracefully degrade by disabling only sandbox-dependent functionality, or fall back to a non-sandbox path where safe.
Show a clear Codex-level diagnostic, for example: 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.
Rename .env to .env.bak, or remove/comment out the proxy variables.
Edit .codex\.sandbox\setup_marker.json.
Change proxy_ports to an empty array:
"proxy_ports": []
Restart Codex.
After doing this, Codex stopped launching codex-windows-sandbox-setup.exe, and file editing / apply_patch started working again.
So this seems to be related to a mismatch between proxy settings in .codex\.env and 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, or ALL_PROXY directly in Codex’s .env until this bug is fixed.
Reacted by JJjyJJ7F3, Bitcoin-Holder, Dongming, dasasdhba, Ziang Zhao, XEric7, Sun Cong, Lggyy9, Blank, Q. Yan and 16 more
Reacted by ImCaO and Gavin
Reacted by Ziang Zhao, Lggyy9, Blank, Gilgamesh, ImCaO and Gavin
For users who still need a proxy, using a system-level/TUN proxy mode may be safer than setting HTTP_PROXY, HTTPS_PROXY, or ALL_PROXY directly in Codex’s .env until this bug is fixed.
What other ways are there to solve the problem without using a system-level/TUN proxy mode?
I can reproduce this on another Windows 11 machine, and I have one extra data point that may help narrow it down.
Environment
Codex Desktop/App package observed in the sandbox log: OpenAI.Codex_26.623.13972.0_x64__2p2nqsd0c76g0
codex-windows-sandbox-setup.exe path shown in the Windows dialog after switching CODEX_CLI_PATH to the bundled app CLI: C:\Users\Samsen\AppData\Local\OpenAI\Codex\bin\38dff8711e296435\codex-windows-sandbox-setup.exe
OS from systeminfo: Microsoft Windows 11 Home / 10.0.26200 / x64
Dialog text: 找不到指定的模块。 / The specified module could not be found.
This matches the confusing user-visible behavior: apply_patch can create the file successfully, while Windows still shows the native codex-windows-sandbox-setup.exe modal 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:
So this may be consistent with the proxy/setup-marker angle mentioned above, even without a .codex/.env file.
Other checks
dumpbin /imports on codex-windows-sandbox-setup.exe only 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.).
The ordinary system DLLs are present under C:\Windows\System32 / SysWOW64.
The copied command runner in .codex\.sandbox-bin\codex-command-runner-0.142.0.exe has the same SHA256 as the bundled codex-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 can reproduce this on the current Windows release, and the impact is much broader than a single failed helper launch.
Environment
ChatGPT/Codex desktop app: 26.707.3748.0
Codex CLI: 0.144.1
Windows 11 x64, build 26200
ChatGPT Plus
Date reproduced: 2026-07-12
What 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.Codex process 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
terminated all ChatGPT/Codex processes
restarted Windows
Windows App settings: Repair, Terminate, and Reset
uninstalled and clean-installed the current ChatGPT app from Microsoft Store
closed ChatGPT Classic completely
tested with the existing .codex directory moved aside
confirmed the window was not opening off-screen
The 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_HOME at the preserved data, and run codex 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
Fix or roll back the broken Windows migration/startup path.
Guarantee preservation and automatic recovery of projects, sessions, permissions, and running tasks.
Publish a clear status/workaround for affected Windows build 26200 users.
Provide a support route for compensation/redress relating to paid-service downtime and lost working time.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
[-]找不到指定的模块 codex-windows-sandbox-setup.exe[/-][+]Cannot find the specified module codex-windows-sandbox-setup.exe[/+]github-actions commentedon Jun 19, 2026
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
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
github-actions commentedon Jun 19, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
JJjyJJ7F3 commentedon Jun 21, 2026
same here, quite annoying
Onlydreams commentedon Jun 21, 2026
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.
Lggyy9 commentedon Jun 22, 2026
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:"proxy_ports": []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.RenzudadiZZA commentedon Jun 23, 2026
@Lggyy9 Thanks mate, that works for me
sincereliu commentedon Jun 23, 2026
Has anyone tried just running VS Code as an administrator first? That actually solved the issue for me.
321Fontsize commentedon Jun 23, 2026
What other ways are there to solve the problem without using a system-level/TUN proxy mode?
MrWynn commentedon Jun 25, 2026
I fixed this by setting the sandbox option in the Codex config to
unelevated:[windows]
sandbox = "unelevated"
CHrisWinXP34 commentedon Jul 2, 2026
I'm using Windows 11, WebStorm, and codex-cli in the terminal. Once I ran WebStorm as an administrator, this error stopped appearing.
Samsen879 commentedon Jul 3, 2026
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.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:{ "version": 5, "offline_username": "CodexSandboxOffline", "online_username": "CodexSandboxOnline", "proxy_ports": [10808], "allow_local_binding": false, "read_roots": [], "write_roots": [] }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.ElmTran commentedon Jul 5, 2026
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.
XEric7 commentedon Jul 8, 2026
You can try the method mentioned here:
#29418 (comment)
lovegamesmovies-alt commentedon Jul 12, 2026
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