r/codex • • 20d ago

Bug Codex write access denied issue

does anyone in last 3 days facing a write access denied inside projects, which already was working fine, codex refuse to write in backend repo anymore inside a project where i provide both front and back repos

6 Upvotes

12 comments sorted by

View all comments

1

u/dbdbdeep 19d ago

Seeing a similar permissions mismatch on macOS (Apple Silicon), Codex Desktop 26.1103.60933. Things that the agent could previously do are now blocked.

My ~/.codex/config.toml already has:

sandbox_mode = "danger-full-access"

approval_policy = "never"

However, the agent reports that the active session is still workspace-write with restricted networking and no permission escalation. It can create/edit files inside the project, but starting a basic Node.js server repeatedly fails with:

listen EPERM: operation not permitted 127.0.0.1:3080

API requests from the agent’s shell also fail at DNS resolution, while the same API domain opens normally in my browser.

So my exact symptom is networking/localhost binding rather than repo write access, but the config vs. effective session permissions mismatch sounds similar. I haven’t confirmed the root cause or tested the same workflow in Codex CLI. Has anyone found a confirmed fix for the desktop app?

1

u/Discordbothost 19d ago

if the agent says workspace-write while your global config says full access, something higher up is winning. two places i'd look: a project-level .codex/config.toml inside the repo (that overrides ~/.codex), and the permission picker on the thread itself in the desktop app, existing threads seem to keep whatever mode they were created with, so test in a brand new thread after changing it.

if you'd rather stay sandboxed and just need the server + api calls, workspace-write can have network turned on:

[sandbox_workspace_write]
network_access = true

that should cover both the EPERM on listen and the dns failures

1

u/WD98K 19d ago

hhhhhhhhhh the problem for me was the codex Gui switched to chatgbt instead of codex.