Unable to locate the Codex CLI binary or ensure the Electron resources include bin/codex
What version of the Codex App are you using (From “About Codex” dialog)?
I can't see the version number now because I can't start it. But it should be the latest version.
What subscription do you have?
pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
I don't know where to report issues with the desktop version of Codex, so I'm giving feedback here in the hope that it can be passed along.
After yesterday's update, my desktop Codex can't start, and I've attached a screenshot of the error. I tried uninstalling and reinstalling, but that didn't fix the problem, which is really frustrating, so I wanted to reach out for help.
<img width="569" height="179" alt="Image" src="https://github.com/user-attachments/assets/3376909d-087f-483c-bad4-30a1f46a4fab" />
I'm not sure if it has anything to do with me changing Codex's installation directory? I had moved the installation folder from C: to D:, but previous updates all worked fine, and it ran normally. It's just after yesterday's update that it won't start.
My operating system is Windows 11. I hope you can help check the issue. Thanks a lot!
What steps can reproduce the bug?
Can't start after yesterday's update
What is the expected behavior?
Normal start codex
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
same
我也是 所以问题出在哪
看你这个issue上面的那个linux issue,它好像说是官方更新的新包没打包全漏下东西了。
怎么解决 等官方吗? 我不急得用
我看来只能等官方,你实在急可以用vs code插件,也一样的。
可以下载一个独立的CLI,然后SET路径解决
我看B站有人说把ChatGPT客户端用Windows系统设置迁移回C盘也能解决
一样的问题出现,昨天晚上切换账号时出现的问题,用claude排查并解决了问题。claude写了个脚本,大概逻辑是下载codex cli并存放补齐到缺失的路径下。最后完全重启后就正常使用了。
https://github.com/openai/codex/issues/41021 这个吗?
Diagnosis
The issue is caused by the Microsoft Store build of the ChatGPT/Codex desktop app,
version 26.820.7780.0.
During startup, the app tries to copy its bundled codex.exe, rg.exe, and Node runtime
from the encrypted WindowsApps package into:
Windows rejects the normal file-copy operation with:
The specified file could not be encrypted.
The desktop app then fails to locate its Codex CLI binary and reports:
Unable to locate the Codex CLI binary.
ChatGPT failed to start.
Testing confirmed that:
are not responsible.
This strongly indicates a bug in the current OpenAI desktop build’s handling of
encrypted Microsoft Store package files.
## Temporary solution
A process-scoped launcher was created:
The launcher:
This workaround was verified successfully: the Codex CLI initialized, connected, and
the desktop window remained responsive.
It does not:
Some features that depend on the bundled Computer Use Node runtime may remain
affected.
## After OpenAI fixes the issue
Completely exit ChatGPT/Codex, delete the temporary launcher, and return to launching
the application normally from the Windows Start menu.
可以试试把chatgpt移到c盘 在Windows系统设置应用里找到chatgpt 右边三个点有个移动 看看是否在c盘 如果不是 可以试试移到c盘
I ran into the same issue on Windows with
OpenAI.Codex 26.820.7780.0after the app was installed/moved to the D: drive.Repair and Reset did not help. Moving ChatGPT/Codex back to the C: drive via Settings → Apps → Installed apps → ChatGPT → ... → Move fixed the issue immediately.
Detailed steps and environment information are documented here:
https://github.com/JunbeiZhang/chatgpt-windows-26.820.7780.0-drive-fix
用everything找到codex.exe路径,设置用户环境变量CODEX_CLI_PATH就行
The official Codex installer has been updated, and I can open it now.
version:26.820.71523