You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected:
workspace-write can write inside repo subdirectory agents/, especially with --add-dir.
What steps can reproduce the bug?
Actual:
writing to repo root succeeds
writing to agents/.codex-sandbox-write-test fails:
zsh: operation not permitted: agents/.codex-sandbox-write-test
What is the expected behavior?
Expected:
workspace-write can write inside repo subdirectory agents/, especially with --add-dir.
Additional information
Notes:
agents/ is a normal directory, not a symlink.
.agents is a symlink to agents, but the failing path is agents/ itself.
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
That doesn't seem to be the same issue.
My suspicion is that there is something happening that blocks edits in a folder named agents/, even if that folder is in the repo that the agent has access to.
In a previous version of the CLI, adding --add-dir /path/to/repo/agents as an arg worked around it, that doesn't seem to be working anymore.
Activity
github-actions commentedon May 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
talltaco commentedon May 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
That doesn't seem to be the same issue.
My suspicion is that there is something happening that blocks edits in a folder named agents/, even if that folder is in the repo that the agent has access to.
In a previous version of the CLI, adding --add-dir /path/to/repo/agents as an arg worked around it, that doesn't seem to be working anymore.
That extra arg should not even be necessary.