Codex Desktop: DNS fails with automatic approval review despite workspace-write network access enabled
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- macos, rust
- Domain
- devtools, networking
Research direction
Start by tracing how Codex Desktop applies automatic approval review and workspace-write network access to default agent commands; the issue names no source files or tests, so locate the sandbox and resolver configuration entry points first. Compare the effective configuration in both approval modes and reproduce the reported DNS failure against the interactive terminal control. Done means the cause is identified and network behavior matches the configured permission, or any override is clearly surfaced with its source.
Written by the indexing model from the issue text.
Description
Environment
- Codex Desktop on macOS 27.2.1 (26B131), arm64. Settings showed Workspace tools version
26.1123.11515. - Sandbox mode:
workspace-write. The Allow network access toggle was on, and user configuration contained:
[sandbox_workspace_write]
network_access = true
What happened
With automatic approval review selected, repeated read-only GitHub requests from the agent's default command tool failed before reaching GitHub. The interactive terminal in the same worktree could run the GitHub command successfully.
curl: (6) Could not resolve host: api.github.com
gh debug: no such host
error connecting to api.github.com
After the user changed the approval-review setting from automatic review to using config.toml, the agent's next gh pr view completed successfully from the same worktree using the same default command tool. The user reported that this was the only setting they changed. The failed requests were ordinary sandboxed invocations and had not requested escalation.
Steps to reproduce
- In Codex Desktop, select
workspace-writewithnetwork_access = trueand select automatic approval review. - Ask the agent to run
curl -sS --max-time 8 https://api.github.com/andgh pr view PR_NUMBER --repo OWNER/REPOwith a repository and PR the account can read. - Run the GitHub command in the interactive terminal for the same workspace as a control.
- Switch the approval-review setting to use
config.tomland ask the agent to repeat the same repository read.
Expected behavior
Read-only network commands use the configured workspace-write network permission in either approval-review mode. If selecting automatic review changes the effective sandbox network access, the app identifies the override and its source.
Diagnostic question
Does selecting automatic approval review change the effective sandbox or resolver configuration for default agent commands? The mode change correlated with restored access in this session. The resolver failure was confirmed, and the mechanism behind it is unverified.
- Dominant language
- Rust
- Stars
- 136k
- Forks
- 21.6k
- Avg merge
- 1m
- Merged PRs (30d)
- 997
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openai/codex
-
app bug rate-limits
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Windows PowerShell 5.1: non-ASCII text piped into a native command arrives as `?`Possibly taken @akhil9tiet claimed this today. Openbug CLI tool-calls windows-os
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
openai/codex#64139 · 2 comments ·
Maintainers usually reply within 1 day
-
bug CLI connectivity
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
core-plugins: remote bundle install keeps the temp directory before a fallible rename and leaves it behind on failurePossibly taken @akhil9tiet claimed this 1 day ago. Openbug CLI skills
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openai/codex#63907 · 2 comments ·
Maintainers usually reply within 1 day
-
bug CLI
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openai/codex#63906 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
My Caps shows "Shared" on private Caps that were never sharedPossibly taken @AksharP5 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
CapSoftware/Cap#4569 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Document Web UIOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
parquet: reject truncated BYTE_STREAM_SPLIT numeric pages instead of silently fabricating valuesOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day