Skip to content

Windows][Codex CLI 0.162.1] Sandbox initialization intermittently fails when updating workspace ACL #53454

Open

Description

@henrywisse-ship-it

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.
  • CodexSandboxUsers has inherited Modify permissions.
  • Administrators and SYSTEM have inherited FullControl permissions.
  • 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

  1. added
    app
    on Oct 12, 2026
  2. added
    bug
    CLI
    windows-os
    sandbox
    on Oct 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIappbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions