In Home directory Sandbox is set to 'workspace-write' instead of 'read-only'
Open 💬 4 comments Opened Feb 2, 2026 by kingtistel
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
codex-cli 0.93.0
What subscription do you have?
Business
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Darwin 25.2.0 arm64 arm
What terminal emulator and version are you using (if applicable)?
iTerm2
What issue are you seeing?
When starting codex-cli in the Home directory -- or any directory not under version control -- after the first time, codex is started with Sandbox: workspace-write and Approval: untrusted instead of read-only / on-request.
<img width="632" height="500" alt="Image" src="https://github.com/user-attachments/assets/fbc31c34-221d-44e3-b744-1dd749fa2e65" />
What steps can reproduce the bug?
- Start codex in Home directory -- or any directory not under version control -- for the first time,
- You're presented with a question to select the approval policy -- defaulted to require approval,
<img width="859" height="116" alt="Image" src="https://github.com/user-attachments/assets/aa13483b-4ed3-4868-8624-7f845cd1e11d" />
- Accept the default,
- Check status with
/status-- it showsSandbox: read-onlyandApproval: on-request, - Exit and relaunch
codex - Check status with
/status-- it now showsSandbox: workspace-writeandApproval: untrusted.
What is the expected behavior?
Expected is that each time starting codex from Home directory or any directory not under version control:
- Be asked our approval selection,
-OR-
- Start with the previously selected choice.
(¿ How would we change our selection in this flow is chosen ?)
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Hi,
I don't think this issue is a duplicate of any of the other ones mentioned by Github-actions,
and I was asked to split this issue from #9932 .
A W/A I found -- not sure how convenient -- is to
ctrl-cthe approval selection request.Thanks for the bug report. There is a bug here, but it's a little different than what you reported. The trust level informs the approval mode (whether tool calls need to be approved by the user) but not the sandbox mode (whether the agent can write to files). In both cases, the sandbox mode should be
workspace-writeafter the trust level has been established.The bug occurs only the first time the trust level is established. On subsequent invocations, the sandbox mode is correctly reported as
workspace-write.