Automations fail with DNS resolution
Open 💬 7 comments Opened Apr 4, 2026 by lukemorales
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of the Codex App are you using (From “About Codex” dialog)?
26.325.31654 (1272)
What subscription do you have?
Pro
What platform is your computer?
Darwin 25.3.0 arm64 arm
What issue are you seeing?
I have automations to sync my repositories and prune branches everyday, and 95% of the time they fail with:
main could not be updated: git fetch --prune origin failed with DNS resolution for github.com.
If I immediately go and ask it to retry on the chat, it works without issues.
What steps can reproduce the bug?
Create a daily automation that runs locally with the following prompt:
Update local main branch with latest remote, and delete all local branches whose remotes have been deleted
What is the expected behavior?
For the automation to be able to connect to GitHub without issues
Additional information
Model: GPT 5.4 Mini
Reasoning: Low
Full Permissions enabled
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
The subject of "Automations failing" is common with the potential duplicates, but none of them are talking about failed DNS resolutions, so I believe this issue is not a duplicate.
Same issue. tried:
added:
[sandbox_workspace_write]
network_access = true
as per docs, still the same issue
Yes, the Codex app local cron automations seem to ignore workspace-write network access config.
A local Codex cron automation appears to launch with network access disabled even when the user config enables network access for workspace-write sandboxes.
The same network probe succeeds in a normal Codex thread, but fails inside a Codex app local cron automation during DNS resolution.
This suggests the automation runner is not inheriting or applying
[sandbox_workspace_write].network_access = true, or there is no exposed per-automation network setting.So, expected behavior:
A local cron automation running under workspace-write should either:
Actual behavior:
The automation session launches with network access restricted. Network/DNS calls fail inside the automation with:
socket.gaierror: [Errno 8] nodename nor servname provided, or not knownThis is still happening on Version 26.415.20818 (1727)
Still reproducible on version 26.415.40636 (1799)
Just have some script like:
And from a normal Codex thread, you get:
While, if you create an automation with a prompt to run the script, you get:
This is still happening with the latest Codex (Mac Version 26.707.31428). Specifically, I updated and restarted Codex and in a new thread I asked it to run the following in a shell and return the output:
The output returned was:
So it appears that there is a problem running tasks (and scheduled automations). I'm not sure how these tasks have been able to run previously; I've been running into this issue off and on for the past few weeks but it had to work sometimes to create the automation in the first place.Is this a known issue (obviously I'm not the only person running into it)? Is there any workaround besides setting the sandbox to full access (which I don't wish to do)?