External CLIs fail with DNS lookup error, while Codex CLI works
What version of the Codex App are you using (From “About Codex” dialog)?
260203.1501 (523)
What subscription do you have?
Pro
What issue are you seeing?
When running external CLIs from the Codex macOS app (e.g., Linear CLI), network requests fail with a DNS lookup error. The same CLI command works fine when run via the regular Codex CLI (terminal), on the same machine and network.
This blocks any workflow that needs network access from within the Codex app.
Error example (from Codex app):
✗ Failed to fetch issue details
error: Uncaught (in promise) TypeError: error sending request for url (https://api.linear.app/graphql): client error (Connect): dns error: failed to lookup address information: nodename nor servname provided, or not known
What steps can reproduce the bug?
- Open Codex macOS app.
- In a workspace, run: linear issue view [Linear TICKET details]
- Observe the DNS lookup failure.
- Run the same command in terminal using Codex CLI (same machine/network, same API key).
- The command succeeds in Codex CLI.
Notes:
- It's not related only to this Linear CLI, it also happening for the other CLIs with an access to the remote API.
- This appears specific to the Codex macOS app runtime.
- External network access works fine outside the app.
What is the expected behavior?
Networked CLIs run from the Codex macOS app should resolve DNS and behave the same as when run from Codex CLI/terminal.
Additional information
Linear CLI referenced in the description: https://github.com/schpet/linear-cli
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗