Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Codex CLI: 0.162.1
What subscription do you have?
Pro
What platform is your computer?
OS: Windows 11 Pro, x64
What issue are you seeing?
Title: [Windows][Codex CLI 0.162.1] Sandbox initialization intermittently fails when updating workspace ACL
Environment
- Codex CLI: 0.162.1
- OS: Windows 11 Pro, x64
- Windows sandbox backend:
elevated - Approval policy:
OnRequest - Filesystem sandbox: restricted
- Network sandbox: restricted
Problem
Codex intermittently fails to execute commands inside a workspace, including the read-only PowerShell command Get-Location.
The execution helper reports setup refresh had errors before the requested command starts.
Relevant sandbox log
granting write ACE to <POC_WORKSPACE> for sandbox group and capability SID
write ACE grant failed on <POC_WORKSPACE>: open ACL target for update
setup refresh completed with errors
setup error: setup refresh had errors
ACL observations
- The workspace directory is owned by
CodexSandboxOffline. - Its parent directory is owned by the normal Windows user.
- The workspace inherits all displayed ACL entries.
CodexSandboxUsershas inheritedModifypermissions.- Administrators and SYSTEM have inherited
FullControlpermissions. - Some sandbox setup attempts complete successfully (
errors=[]), while others fail during the write ACE operation.
A separate helper log entry also reports an access-denied error while attempting to modify attributes on C:\Users\Default. Its relationship to the execution failure is unknown.
Expected behavior
Codex should initialize its restricted Windows sandbox and execute permitted commands within the configured workspace.
Actual behavior
Sandbox initialization intermittently fails before command execution.
Diagnostics
codex doctor --json reports sandbox provisioning as complete, with no sandbox check failure. However, actual command execution still fails intermittently.
Request
Please investigate the Windows sandbox ACL update behavior and whether workspace ownership by CodexSandboxOffline can cause the setup refresh to fail.
No manual ACL changes or sandbox security bypasses have been performed as part of this investigation.
What steps can reproduce the bug?
see: What issue are you seeing
What is the expected behavior?
see: What issue are you seeing
Additional information
see: What issue are you seeing
Activity