Codex Pull Requests reports GitHub CLI as not installed although gh is installed and authenticated
Summary
In the ChatGPT macOS app, Codex → Pull Requests displays:
GitHub CLI setup required GitHub CLI (gh) is not installed
However, gh is installed, available on PATH, executable, and authenticated in the user's actual login-shell environment.
Steps to reproduce
- Install GitHub CLI through Nix Home Manager.
- Authenticate successfully with GitHub CLI.
- Launch the ChatGPT macOS desktop app.
- Open Codex → Pull Requests.
- Observe the “GitHub CLI (gh) is not installed” message.
- In the user's terminal, verify:
``sh``
command -v gh
gh --version
gh auth status
Actual behavior
The Pull Requests UI reports that GitHub CLI is not installed.
Expected behavior
Codex should detect and use the installed, authenticated gh binary available through the user's configured login-shell environment, including Nix/Home Manager paths.
Verified diagnostics from the actual host login shell
command -v gh
/Users/I339261/.nix-profile/bin/gh
gh --version
gh version 2.96.0 (nixpkgs)
gh auth status
✓ Logged in to github.com account jerome-benoit (keyring)
✓ Logged in to the configured GitHub Enterprise host (keyring)
Both accounts are active and authenticated. The Nix wrapper executes an actual Mach-O 64-bit arm64 binary.
Correction: an earlier diagnostic run from an isolated execution environment incorrectly reported authentication failures because it could not access the host keyring correctly. The host login-shell output above is authoritative.
Environment
- ChatGPT macOS: 26.715.31925 (build 5551)
- macOS: 26.5.2 (build 25F84)
- Architecture: Apple Silicon arm64
- GitHub CLI: 2.96.0, installed through Nix Home Manager
- CLI path:
/Users/I339261/.nix-profile/bin/gh - Authentication storage: macOS keyring
Suggested improvement
Ensure the desktop app inherits or resolves the user's login-shell PATH, including Nix/Home Manager paths. If the executable lookup occurs in a separate GUI-process environment, provide a configurable gh path or perform login-shell-aware discovery.
This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗