Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.3309.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Windows x64
What issue are you seeing?
After updating to Codex Windows app 26.616.3309.0, Codex fails when launching the Windows native/elevated sandbox setup helper.
Windows shows an error dialog for:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe
The dialog message is:
The specified module could not be found.
In Chinese Windows, this appears as:
找不到指定的模块。
Codex reports the related error:
windows sandbox failed: orchestrator_helper_launch_canceled
ShellExecuteExW failed to launch setup helper: 1223
The issue appears when Codex uses apply_patch, for example when trying to delete a temporary file. Normal PowerShell commands, file reads, Node, Python, and npm tests still work.
I have already tried restarting Codex, restarting Windows, running workspace dependency diagnostics, resetting/reinstalling workspace dependencies, repairing Codex from Windows Settings, and fully uninstalling/reinstalling Codex. The issue still persists.
The executable exists at the path above and appears to have a valid OpenAI signature.
What steps can reproduce the bug?
Feedback ID: no-active-thread-019edc9c-474a-7f12-91ca-94e33521d229
What is the expected behavior?
Codex should be able to launch the Windows native/elevated sandbox setup helper successfully and complete apply_patch operations such as creating, modifying, or deleting files inside the workspace.
The sandbox setup helper should not show a Windows error dialog, and apply_patch should work normally in the current workspace.
Additional information
This started after updating Codex. I have seen another user report showing the same OpenAI.Codex_26.616.3309.0 path and the same codex-windows-sandbox-setup.exe error dialog.
This may be a regression in the latest Codex Windows app related to the Windows native/elevated sandbox setup helper.
I have not switched the sandbox setting to unelevated yet, because I wanted to report the default/native elevated sandbox failure first.
Activity
github-actions commentedon Jun 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
CZH0919 commentedon Jun 18, 2026
CZH0919 commentedon Jun 18, 2026
I found several related Windows sandbox/helper issues: #28278, #24490, #18845, #27125, #28457, #27367. My case appears to be the same subsystem, but the specific difference is that it happens in Codex Windows app 26.616.3309.0 and Windows shows “The specified module could not be found” for the Microsoft Store app path under OpenAI.Codex_26.616.3309.0.
unicbm commentedon Jun 19, 2026
I can confirm this also reproduces on Codex Windows app
26.616.3767.0.Environment:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3767.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exeObserved behavior:
apply_patchran.找不到指定的模块。Workaround that fixed it for me:
After fully restarting Codex Desktop, I validated:
Get-Locationsucceeded.apply_patchcould create/modify a temporary file underwork/.apply_patchcould delete that temporary file.codex-windows-sandbox-setup.exedialog appeared.ShellExecuteExW,orchestrator_helper_launch_canceled, or “specified module could not be found” error appeared.So this appears to be specific to the
elevatedWindows sandbox setup path in the recent Windows app build. Theunelevatedsandbox path is a working temporary workaround.CZH0919 commentedon Jun 19, 2026
Update: after updating Codex, this still reproduces on Codex Windows app 26.616.3767.0.
The Windows dialog now points to:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3767.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe
The dialog message is still:
The specified module could not be found.
Chinese Windows: 找不到指定的模块。
I retested with a minimal health check in the current workspace:
The Codex-side error is still:
windows sandbox failed: orchestrator_helper_launch_canceled:
ShellExecuteExW failed to launch setup helper: 1223
So the issue is not fixed in 26.616.3767.0. It still appears specific to the Windows native/elevated sandbox setup helper path. The helper executable appears to exist, but launching/loading it fails.
CZH0919 commentedon Jun 19, 2026
I also tested the VS Code Codex extension on the same machine.
VS Code extension:
C:\Users<user>.vscode\extensions\openai.chatgpt-26.609.30741-win32-x64\bin\windows-x86_64\codex.exe
In the VS Code extension, the same minimal apply_patch create/delete test succeeds:
So the issue appears specific to the Codex Windows Desktop app / Microsoft Store WindowsApps package path, not the general Codex CLI or apply_patch mechanism on this machine.
Batarbin commentedon Jun 19, 2026
I have the same issue
Batarbin commentedon Jun 19, 2026
This is crazy:
Codex app 26.616.3767.0 on Windows.
Relevant config:
Observed apply_patch behavior:
Exact error from apply_patch delete:
Sanitized sandbox log excerpt:
Important note:
The sandbox log repeatedly shows setup helper completion with errors=[], but apply_patch still fails with ShellExecuteExW failed to launch setup helper: 1223.
CZH0919 commentedon Jun 19, 2026
This is really bad. Open AI should fix this problem immediately.
CZH0919 commentedon Jun 19, 2026
Update after installing Codex Windows app 26.616.4196.0:The issue still reproduces on my machine.
windows sandbox failed: orchestrator_helper_launch_canceled:
ShellExecuteExW failed to launch setup helper: 1223
Temporary test files were cleaned up successfully using normal PowerShell.
ltxhhz commentedon Jun 19, 2026
I am using the VSCode Codex plugin, and I have the same issue.
dialog:
[Window Title]
c:\Users\ltxhhz.vscode\extensions\openai.chatgpt-26.616.31447-win32-x64\bin\windows-x86_64\codex-windows-sandbox-setup.exe
[Content]
c:\Users\ltxhhz.vscode\extensions\openai.chatgpt-26.616.31447-win32-x64\bin\windows-x86_64\codex-windows-sandbox-setup.exe
找不到指定的模块。(The specified module could not be found.)
[确定]
I have already tried reloading and reinstalling the plugin. It still doesn't work.
9 remaining items
ID-jasmine commentedon Jun 21, 2026
I deleted the .env file under ~/.codex, and the issue was fixed.apply_patch works again.thank you
houkaiyao commentedon Jun 21, 2026
2026 06 21 china user
Codex在执行任务时发生报错(C:\ProgramFiles\WindowsApps\OpenAI.Codex_26.616.663...\codex-windows-sandbox-setup.exe COM+ 注册表数据库检测到一个系统错误)
.env设置了7890端口代理规则。是否与此有关?有没有了解真实状况的告知解决办法及原因。
CZH0919 commentedon Jun 21, 2026
(1)Enable TUN (such as Clash) mode so that network traffic is handled at the system routing layer.
(2)Comment out HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, WS_PROXY, WSS_PROXY, NO_PROXY in Codex user directory's .env.
(3)Clear proxy_ports in sandbox state, setting it to [].
(4)Restore [windows] sandbox = "elevated" — do not rely on unelevated long-term.
(5)If PowerShell shows shell snapshot errors, add shell_snapshot=false under [features].
CZH0919 commentedon Jun 21, 2026
(1)Enable TUN (such as Clash) mode so that network traffic is handled at the system routing layer.
(2)Comment out HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, WS_PROXY, WSS_PROXY, NO_PROXY in Codex user directory's .env.
(3)Clear proxy_ports in sandbox state, setting it to [].
(4)Restore [windows] sandbox = "elevated" — do not rely on unelevated long-term.
(5)If PowerShell shows shell snapshot errors, add shell_snapshot=false under [features].
houkaiyao commentedon Jun 21, 2026
Config.toml设置以下
model_provider = "openai_http"
[model_providers.openai_http]
name = "OpenAI HTTP only"
wire_api = "responses"
requires_openai_auth = true
supports_websockets = false
[windows]
sandbox = "unelevated" # 将此行从 "elevated" 改为 "unelevated"
Believer-xh commentedon Jun 21, 2026
JJjyJJ7F3 commentedon Jun 21, 2026
@codex Please fix this bug!
slimshaco commentedon Jun 22, 2026
我遇到了同样的问题
ID-jasmine commentedon Jun 23, 2026
上面有人发解决办法了,我是把.env删了,然后清除沙盒状态下的proxy_ports残留,就好了。
JJjyJJ7F3 commentedon Jun 23, 2026
我也这么做了,但可能是我在使用代理的缘故,还是会有同样的问题出现
yanyuwei123 commentedon Jun 23, 2026
JJjyJJ7F3 commentedon Jun 24, 2026
这个我是知道的,不过看官方推荐用 sandbox = "elevated",所以就去没改
Norlandz commentedon Jul 11, 2026
#28982 (comment)
is this problem fixed?
For vscode extension
Installation
Identifier
openai.chatgpt
Version
26.707.31428
I dont see the problem anymore?
I dont think i used any workaround like
sandbox = "elevated".