Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.908.70816
What subscription do you have?
Corporate
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Environment:
- Codex version/binary: 12219cbfbcbddde7
- Command runner: 0.154.0-alpha.6.2
- OS: Windows
- Repository: local NTFS volume E:
- Working repository: E:\repos\trunk\server
- Failure is reproducible after restarting Codex
- C: checkout works; E: checkout fails
Reproduction:
- Start a new Codex chat against E:\repos\trunk\server.
- Ask Codex to read temp.txt.
- Command execution triggers sandbox setup.
- Sandbox setup fails before the command can complete.
Relevant log:
[2026-09-16T23:54:05.594901900+00:00] deny ACE failed on E:\repos\trunk\server.agents: SetNamedSecurityInfoW failed for E:\repos\trunk\server.agents: 5
[2026-09-16T23:54:05.601425+00:00] setup refresh: processed 3 write roots (read roots delegated); errors=[...]
[2026-09-16 16:54:05.612 codex.exe] setup refresh: exited with status ExitStatus(1)
Additional details:
- Visualization ACL grant succeeds.
- E: is NTFS, Fixed, Healthy.
- The folder owner is BUILTIN\Administrators.
- Administrators has Full Control.
- CodexSandboxUsers has Modify access on the repository.
- An elevated PowerShell session can successfully add an explicit Administrators Full Control ACE.
- The same deny-ACE failure continues after restarting Codex.
- The command log shows:
C:\WINDOWS\system32\cmd.exe /c cmd /c type temp.txt
Expected:
Sandbox setup should configure the repository and allow the command runner to read temp.txt.
Actual:
Sandbox setup returns ERROR_ACCESS_DENIED (5) while applying the deny ACE to .agents.
What steps can reproduce the bug?
Open/Create a project pointing to a repo folder on my newly installed E drive using the desktop app. Ask it to read the contents of a temp.txt file that I placed in the root folder of the repo.
What is the expected behavior?
I expect that the file should be read. If I Open/Create a project pointing to a repo folder on my C Drive, it can read the file that I put there.
Additional information
I had the Codex app guide me through a series of steps to isolate the problem and have pasted its analysis into this issue.
Activity
github-actions commentedon Sep 17, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
tdim17 commentedon Sep 20, 2026
I can reproduce a closely related failure in Codex Desktop on Windows with the native
elevatedsandbox.Environment:
codex-cli 0.155.0-alpha.9.2codex-cli 0.148.0-alpha.21D:drive. The affected path is<repo>\.agents.In Desktop, even
Get-Locationfails before PowerShell starts withhelper_unknown_error: setup refresh had errors. The sandbox log reportsdeny ACE failed on <repo>\.agents: open deny ACL target for update.A short Process Monitor capture identified the failing operation:
The repository root is owned by the normal local Windows user, while
.agentsis owned by the localCodexSandboxOfflineaccount. ACL inheritance is enabled,.agentsis not a reparse point, andicacls /verifysucceeds. I have not changed the owner or ACL because it is not yet clear whether this ownership is expected.Codex in VS Code can run commands in the same repository as
CodexSandboxOffline. Desktop commands also work in a separate workspace, and a temporary switch tounelevatedworked; returning toelevatedreproduces the failure. I need to keepelevatedfor Desktop and avoid disrupting the working VS Code setup.Could you confirm whether this is the same setup-refresh issue and whether there is a supported repair for the failed
Write DACaccess? I can provide a narrow, redacted diagnostic excerpt if helpful.jeffrey-zola-thermofisher commentedon Sep 22, 2026
These symptoms look like the same things that is happening to me.
We do not use VS Code, so I cannot whether anything there applies or not. The original problem occurs within the ChatGPT desktop app.