exec_command CreateProcess failed: os error 2

Open
#35,885 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
node.js, python, rust, zsh
Domain
cli, desktop, devtools

Research direction

Start with the exec_command entry point and reproduce the failure on an Intel Mac after extended use, checking the bundled Python, Node REPL, knowledge graph, and sub-agent tools mentioned in the report. Done means identifying the process-creation failure and demonstrating that exec_command and the dependent tools recover reliably without requiring a full app restart.

Written by the indexing model from the issue text.

Description

app bug performance tool-calls
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?

填:

  1. 打开 Codex App,在任意线程中密集使用(命令行操作、代码编辑、打包等),持续 8 小时以上
  2. exec_command 全部失败,报 CreateProcess failed: os error 2
  3. 所有工具(Node REPL、知识图谱、子 Agent)相继失效
  4. 完全退出 Codex 重启也无法修复
What is the expected behavior?

填:

exec_command 应持续可靠工作,不受使用时长影响。如出现异常应有自动恢复机制,而非全面崩溃且重启无效。

Additional information

填:

macOS 自带 Terminal 完全正常,/bin/zsh 可正常使用。仅 Codex App 内所有进程创建均失败,疑为沙箱或进程管理器长期运行后资源耗尽。附:Workspace dependencies 中有 bundled Python 和 Node,但均无法调用。

Dominant language
Rust
Stars
125k
Forks
19.5k
Avg merge
1m
Merged PRs (30d)
1k

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from openai/codex

All issues in openai/codex

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.