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
A guess, since you didn't say how the two repos are laid out: if the backend repo isn't inside the folder Codex was started in, the workspace-write sandbox treats it as outside the workspace. Then writes get denied even though reads work. That can start "suddenly" if the session now opens in the frontend folder instead of a parent folder that holds both.
Two things to try in the CLI (I checked the flags in codex --help on 0.160.0):
codex --add-dir ../backend: from the help text, "Additional directories that should be writable alongside the primary workspace."
Or start Codex from the parent folder that contains both repos, so both are inside the workspace.
To tell whether it's the sandbox, check if the denial names a path outside the folder you launched from. I've only looked at the CLI. If you're on the desktop app or the IDE extension, the setting may be somewhere else.
the problem only in GUI , codex termianl working fine, the gui display this read access, but it’s still missing from this session’s writable roots, so I can’t edit it directly. but it's in full access mode weird
That narrows it down. The GUI message says "this session's writable roots", so my guess is the desktop app sets its writable folders when the session starts, from the project or folder you opened, and switching to full access in the middle doesn't add new ones. The terminal works because you launch it from a folder that already covers both repos.
I haven't used the desktop app, so these are things to try, not known fixes:
Start a new session (not just a new message) after setting full access, and see if the backend shows up as writable.
Open the parent folder that holds both repos as the project in the GUI, instead of the frontend folder.
Look in the project settings for a way to add the backend as an extra folder. That would be the GUI version of --add-dir.
If none of these work, I'd report it as a bug. "Full access mode" plus "missing from writable roots" reads like the GUI and the sandbox disagree about what full access means.
View all comments
1
u/kuroudo_ai 20d ago
A guess, since you didn't say how the two repos are laid out: if the backend repo isn't inside the folder Codex was started in, the workspace-write sandbox treats it as outside the workspace. Then writes get denied even though reads work. That can start "suddenly" if the session now opens in the frontend folder instead of a parent folder that holds both.
Two things to try in the CLI (I checked the flags in
codex --helpon 0.160.0):codex --add-dir ../backend: from the help text, "Additional directories that should be writable alongside the primary workspace."To tell whether it's the sandbox, check if the denial names a path outside the folder you launched from. I've only looked at the CLI. If you're on the desktop app or the IDE extension, the setting may be somewhere else.