Codex desktop on Windows (WSL agent): Failed to create unified exec process: No such file or directory (os error 2)
质量检查: WARNING · 1 项提醒
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
💡 When every command fails identically before running, suspect the runner/sandbox, not the commands.
发生场景
Source(s): https://github.com/openai/codex/issues/49904 , https://github.com/openai/codex/pull/53412 Status: source reports fixed; not reproduced by us.
问题
Every agent shell command fails before it starts, even pwd. Later builds name a missing codex-linux-sandbox helper. WSL and bash work fine outside Codex (wsl.exe --exec /bin/bash -lc 'pwd').
报错原文(已脱敏/规范化)
Failed to create unified exec process: No such file or directory (os error 2)
适用环境
Codex Windows desktop app with the agent running in WSL, after the 2026-09-30 update (builds 26.1002, 26.1007 affected).
如何确认是这个问题
Agent pwd fails with the error above (or a missing codex-linux-sandbox message) while wsl.exe --exec /bin/bash -lc 'pwd' works.
不是这个问题时 / 边界
The agent runs on native Windows rather than WSL, or the failure is something else.
根因
A regression in the WSL runtime the desktop app manages: per a commenter's local inspection, the app-server pointed at a sandbox helper directory that no longer existed. Fixed upstream in PR #53412.
修复步骤
- Update the Windows desktop app to 26.1013.31256 or newer; its WSL runtime reports
codex-cli 0.163.0-alpha.10.2, which contains the fix. - Retest with normal sandbox permissions. → expect:
pwdexits 0 (confirmed by the reporter and two others); no workaround needed.
如何验证
The agent's pwd succeeds under workspace-write without escalation, and the codex-linux-sandbox error is gone.
试过没用的办法
Builds 26.1002 and 26.1007, a full app restart, a new chat, the Full Access profile.
风险提示
(our note) The thread also has a temporary workaround that runs commands outside the sandbox with approval. We left it out on purpose: it skips the sandbox and isn't needed after the update.
验证范围
Codex desktop 26.1013.31256 / codex-cli 0.163.0-alpha.10.2, Oct 2026
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/59/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。