You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
0.144.0-alpha.4: ChatGPT Desktop bundled Codex CLI fails to locate codex-code-mode-host after migration from Codex.app #32495
What terminal emulator and version are you using (if applicable)?
Apple Terminal (macOS)
Codex doctor report
Installed:codex-cli 0.144.0-alpha.4Latest:0.144.1State DB integrity: OKLogs DB integrity: OKReachability:ChatGPT base URL connect failedWebSocket:Connected successfully
What issue are you seeing?
After migrating from the old Codex Desktop app to the new ChatGPT Desktop app, the original ~/.local/bin/codex symlink still pointed to the removed Codex.app.
After updating the symlink to point to the bundled CLI inside ChatGPT.app, Codex started successfully, but every tool invocation failed because it attempted to launch: ~/.local/bin/codex-code-mode-host
resulting in: failed to spawn code-mode host No such file or directory
What steps can reproduce the bug?
Install the old Codex Desktop app.
Upgrade/migrate to the new ChatGPT Desktop app.
The original ~/.local/bin/codex symlink still points to:
Codex should locate and launch the bundled
codex-code-mode-host inside:
/Applications/ChatGPT.app/Contents/Resources/
without requiring manual changes after migration.
Additional information
This system was upgraded from the old standalone Codex Desktop application to the new ChatGPT Desktop application. It was not a clean installation.
The helper binary was not actually missing.
It existed here: /Applications/ChatGPT.app/Contents/Resources/codex-code-mode-host
As an experiment, I replaced the ~/.local/bin/codex symlink with a small launcher script: #!/bin/sh exec /Applications/ChatGPT.app/Contents/Resources/codex "$@"
After doing so, Codex successfully launched codex-code-mode-host.
I then ran a read-only smoke test including:
pwd
ls
echo
find
rg
git
All commands executed successfully and no further codex-code-mode-host errors occurred.
This workaround suggests the issue may be related to how the bundled CLI resolves the helper executable after migration, although I cannot confirm the underlying implementation.
Activity
github-actions commentedon Jul 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
codex-code-mode-hostis missing #31863codex-code-mode-host is missingerrors after upgrading codex #31833Powered by Codex Action
1-max-review, 1folder-tree: Codex из ChatGPT.app, когда его нет в PATH