exec_command CreateProcess failed: os error 2
Open 💬 2 comments Opened Jul 29, 2026 by jsfyq917-crypto
💡 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)?
150.0.7871.128 (26.721.41059)
What subscription do you have?
Free
What platform is your computer?
apple的MacBook Pro,Intel Core i9
What issue are you seeing?
对,改:
所有exec_command调用失败,报错CreateProcess failed: os error 2,跨所有线程。完全退出 Codex 重启也无法恢复。
What steps can reproduce the bug?
填:
- 打开 Codex App,在任意线程中密集使用(命令行操作、代码编辑、打包等),持续 8 小时以上
exec_command全部失败,报CreateProcess failed: os error 2- 所有工具(Node REPL、知识图谱、子 Agent)相继失效
- 完全退出 Codex 重启也无法修复
What is the expected behavior?
填:
exec_command 应持续可靠工作,不受使用时长影响。如出现异常应有自动恢复机制,而非全面崩溃且重启无效。
Additional information
填:
macOS 自带 Terminal 完全正常,/bin/zsh 可正常使用。仅 Codex App 内所有进程创建均失败,疑为沙箱或进程管理器长期运行后资源耗尽。附:Workspace dependencies 中有 bundled Python 和 Node,但均无法调用。
2 Comments
English translation:
What version of the Codex App are you using (From “About Codex” dialog)?
150.0.7871.128 (26.721.41059)
What subscription do you have?
Free
What platform is your computer?
Apple MacBook Pro, Intel Core i9
What issue are you seeing?
Yes, change it to:
What steps can reproduce the bug?
Enter:
exec_commandcalls fail withCreateProcess failed: os error 2What is the expected behavior?
Enter:
Additional information
Enter:
<!-- codex-issue-translator -->
Bug Description
After roughly 12+ hours of continuous use across a single session, all
exec_commandcalls fail with:CreateProcess failure for
/bin/zsh -c '...':"Rejected(\"Failed to create unified exec process: No such file or directory (os error 2)\")"
Impact
js_reset,js) also failsReproduction
Workaround
Environment
写哪里?