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
[Feature][macOS] Discover the Codex desktop app's bundled CLI (ChatGPT.app) as a runtime candidate #6973
Let OpenCodex Desktop (and any proxy started with the macOS GUI PATH) find Codex when the only installation is the Codex desktop app, as asked in #6963 ("Desktop App doesnt pick up codex").
What prevents this today?
installedCodexCandidates in src/codex/runtime.ts lists Windows' Codex App directory (#4458) and WSL's (#5635) but on macOS only ~/.codex/packages/standalone, ~/.local/bin, /usr/local/bin and /opt/homebrew/bin. The Codex desktop app ships its CLI at /Applications/ChatGPT.app/Contents/Resources/codex (bundle id com.openai.codex, measured in devlog/_fin/260913_cross_platform_desktop_app_restart/001_platform_topology.md). The Desktop sidecar's GUI PATH never contains it.
What should OpenCodex do?
Add the app-bundled CLI as an installed candidate on macOS, with an explicit contract:
Handover policy: an automatically persisted CLI selection must not silently move to a newer app binary unless that is intended (resolveCodexRuntimeSteps handover rules, issue 4204).
Compatibility: verify debug models --bundled and debug prompt-input against the app binary, and cover unsupported-command, malformed-output and spawn failures through the catalog and prompt consumers; the prompt consumer resolves with probeVersion: false.
Identity: check the bundle identifier (read-only, bounded) or document the candidate as a conventional path, for /Applications and ~/Applications.
Example usage or interface
ocx doctor under Desktop: "Selected runtime: /Applications/ChatGPT.app/Contents/Resources/codex (installed)".
Alternatives or workarounds
Set CODEX_CLI_PATH or install the Codex CLI with Homebrew so it lands in /opt/homebrew/bin.
This is a runtime-candidate discovery request, distinct from #6980's compiled self-launch argv fix and #6971's permission to install a shim while Desktop supervises a proxy. Finding an app-bundled executable alone should not grant a new supervisor or overwrite the operator's selected CLI.
Please define the candidate's precedence relative to an explicit executable override and the existing durable CLI discovery, then pin a version/app-copy-aware fixture for unavailable, moved, unsupported and valid bundles. Reuse the existing runtime candidate/probe path and retain diagnostics rather than adding an independent hard-coded launch path. Actual macOS bundled-CLI behavior and project-owner acceptance remain unverified; no Desktop/native CLI was launched during this triage.
Fixed on dev by #7011 (commit 57d9e2a051, merge bf57900f55): on macOS the CLI bundled in the Codex app is an installed candidate after every existing one, only when the bundle id is com.openai.codex. Both Contents/Resources/codex-cli/bin/codex (current, verified on 26.1007) and Contents/Resources/codex are recognized; a persisted CLI selection is never silently moved to it. Ships in 2.84.0.
Activity
Ingwannu commentedon Oct 12, 2026
This is a runtime-candidate discovery request, distinct from #6980's compiled self-launch argv fix and #6971's permission to install a shim while Desktop supervises a proxy. Finding an app-bundled executable alone should not grant a new supervisor or overwrite the operator's selected CLI.
Please define the candidate's precedence relative to an explicit executable override and the existing durable CLI discovery, then pin a version/app-copy-aware fixture for unavailable, moved, unsupported and valid bundles. Reuse the existing runtime candidate/probe path and retain diagnostics rather than adding an independent hard-coded launch path. Actual macOS bundled-CLI behavior and project-owner acceptance remain unverified; no Desktop/native CLI was launched during this triage.
fix(startup): dashboard installer on compiled ocx and clearer Desktop…
fix(codex): check plist text with the XML Char predicate instead of a…
feat(codex): discover the Codex app's bundled CLI on macOS (#6973)
test(link): classify passive-read opens by write capability
docs(devlog): record the L4 lane plan, reviews and outcome for #6853 …
fix(codex): check plist text with the XML Char predicate instead of a…
feat(codex): discover the Codex app's bundled CLI on macOS (#6973)
test(link): classify passive-read opens by write capability
docs(devlog): record the L4 lane plan, reviews and outcome for #6853 …
fix(codex): check plist text with the XML Char predicate instead of a…
feat(codex): discover the Codex app's bundled CLI on macOS (#6973)
test(link): classify passive-read opens by write capability
docs(devlog): record the L4 lane plan, reviews and outcome for #6853 …
fix(codex): check plist text with the XML Char predicate instead of a…
lidge-jun commentedon Oct 12, 2026
Fixed on
devby #7011 (commit57d9e2a051, mergebf57900f55): on macOS the CLI bundled in the Codex app is an installed candidate after every existing one, only when the bundle id iscom.openai.codex. BothContents/Resources/codex-cli/bin/codex(current, verified on 26.1007) andContents/Resources/codexare recognized; a persisted CLI selection is never silently moved to it. Ships in 2.84.0.