[Windows] codex-windows-sandbox-setup.exe fails with "The specified module could not be found"
What version of the Codex App are you using (From “About Codex” dialog)?
26.616.6631.0
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26100.0 x64
What issue are you seeing?
Description
While Codex was executing a task in the Windows app, Windows suddenly displayed an error dialog for:
codex-windows-sandbox-setup.exe
The error message shown in Chinese was:
找不到指定的模块。
English translation:
The specified module could not be found.
Codex was working normally last week. I did not intentionally change the sandbox configuration or the application settings before this started happening.
Steps to reproduce
- Open the Codex Windows app.
- Open a local Java project.
- Ask Codex to inspect and modify project files.
- Let Codex execute commands and edit files.
- During task execution, a Windows error dialog appears for
codex-windows-sandbox-setup.exe.
Expected behavior
The Windows sandbox should initialize successfully, and Codex should continue executing the task without displaying an operating system error dialog.
Actual behavior
Windows displays an error dialog saying:
The specified module could not be found.
The executable path shown in the dialog is similar to:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.6631.0_x64__...\codex-windows-sandbox-setup.exe
Additional information
- Codex worked normally last week.
- The issue appeared while Codex was running commands and editing Java Mapper files.
- The project itself continued to be accessible.
- I did not intentionally change the sandbox mode.
- This appears to be a regression or an incomplete/missing dependency in the Windows sandbox setup component.
Screenshot
A screenshot of the Windows error dialog is attached below.
What steps can reproduce the bug?
<img width="823" height="665" alt="Image" src="https://github.com/user-attachments/assets/6525c445-4001-4e5b-a80b-a6cf6b5f7f21" />
Steps to reproduce
- Open the Codex Windows app.
- Open a local Java project.
- Start a Codex session and ask Codex to inspect and modify several MyBatis Mapper files.
- Codex begins running commands and editing the project files.
- While the task is still executing, Windows suddenly displays an error dialog for:
codex-windows-sandbox-setup.exe
- The dialog shows the following Chinese error message:
找不到指定的模块。
English translation:
The specified module could not be found.
- Close the error dialog. Codex may remain on the task execution/editing screen.
Conversation information
- Conversation ID:
019eee34-ddc6-7a42-9cbe-14a4f085e555 - Context window remaining: approximately
62% - Context used: approximately
98,288 / 258K - 5-hour usage limit remaining:
0% - 5-hour limit reset time shown:
19:04 - 7-day usage limit remaining:
56% - 7-day limit reset date shown:
June 25
The quota screenshot was taken after the error occurred, so I cannot confirm whether the 5-hour limit had already reached 0% at the exact moment the error dialog appeared.
Additional details
- Codex worked normally last week.
- I did not intentionally change the sandbox configuration.
- The error occurred while Codex was executing commands and editing Java source files.
- The executable path shown in the dialog was similar to:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.6631.0_x64__...\codex-windows-sandbox-setup.exe
What is the expected behavior?
_No response_
Additional information
_No response_
14 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
这是手动修改了.env的原因
I don't have this file locally.
I can reproduce a very similar issue on Codex Windows app
26.616.6631.0with[windows] sandbox = "elevated".Additional observations from my case:
C:\Program Files\WindowsApps\OpenAI.Codex_26.616.6631.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe找不到指定的模块。(
The specified module could not be found.)fs sandbox helper failed ... windows sandbox failed: orchestrator_helper_launch_canceled: ShellExecuteExW failed to launch setup helper: 1223functions.view_imagereading a local image under the workspace, not only byapply_patch.stored_ports=[7890]todesired_ports=[]This looks related to #29178, but I have not confirmed whether the source of port 7890 is the same.
changing
C:\Users\<USER>\.codex\config.tomlfrom:``
toml
`[windows]
sandbox = "elevated"
`to:
toml
`[windows]
sandbox = "unelevated"
view_image` and normal shell behavior.and fully restarting Codex restored
我也是手动修改了.env,请问一下,忽略这个错误是否有什么问题?
codex 会使用 powershell 来填充修改文件,效率低,容易出错
临时解决:config.toml把sandbox改成unelevated
如果不修改.env,有没有什么别的能让它稳定走代理的方案?
clash,开启tun
---Original---
From: @.*>
Date: Fri, Jun 26, 2026 14:59 PM
To: @.*>;
Cc: @.****@.**>;
Subject: Re: [openai/codex] [Windows] codex-windows-sandbox-setup.exe fails with "The specified module could not be found" (Issue #29418)
HG731GZ left a comment (openai/codex#29418)
这是手动修改了.env的原因
如果不修改.env,有没有什么别的能让它稳定走代理的方案?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you commented.Message ID: @.***>
我也遇到的相同的问题,codex无法写入文件,会弹窗报错“找不到指定的模块”
我按照这里的步骤解决了:https://www.reddit.com/r/codex/comments/1uccr76/comment/ot2wdz0/
修复方案:
[features],在其下面加入:不要重复创建第二个
[features]。你原来的以下配置可以保留:
找到类似:
将它改成:
只改这一项,保留其余 JSON 内容。
如果仍然失败,可以先采用临时绕过方案,将
config.toml改为:然后重启 Codex。这个方案会降低沙箱隔离强度,只建议临时使用。
关键点是:必须先彻底退出所有 Codex 进程,再清空
proxy_ports,否则旧进程可能重新把7890写回去。雀食有用,顶!
亲测可行
复制发给codex,自己修好了,亲测有用,顶顶顶!!!!!😍
成功解决:[[Windows] codex-windows-sandbox-setup.exe fails with "The specified module could not be found"](https://github.com/openai/codex/issues/29418#top)
出现C:/ProgramFiles/WindowsApps/OpenAI.Codex_26.623.139.../codex-windows-sandbox-setup.exe找不到指定的模块。