Skip to content

Windows Codex unified exec fails: sandbox setup cannot update Deny ACE #52862

Open

Description

@idiot2705

Codex Windows Unified Exec — Sandbox ACL Setup Failure

Environment: Windows 10, VS Code Codex extension
Date: 2026-10-10
Codex CLI: 0.162.0-alpha.17.2
VS Code extension: openai.chatgpt-26.1007.21434-win32-x64

Problem

Codex cannot execute even a basic read-only command such as pwd.

Error:

Failed to create unified exec process:
helper_unknown_error: setup refresh had errors

Root failure observed in sandbox log

deny ACE failed on C:\Joyup\Engineering\.codex:
open deny ACL target for update

The Windows sandbox setup executable exits with status 1.

The failure occurs even when Codex is opened outside the JoyUp workspace.

Environment findings

  • PowerShell can access the filesystem.
  • Codex CLI --version works.
  • Sandbox Windows Service is running.
  • Restarting the sandbox service did not resolve the error.
  • VS Code Reload Window did not resolve the error.
  • Windows System and Application Event Log checks found no related failure.
  • The target folder exists.
  • Target folder owner: local user aidia.
  • Current Windows user: Andhy.
  • Target ACL contains four explicit Deny ACEs for two unresolved SIDs.
  • Administrators and SYSTEM have inherited FullControl.
  • Elevated PowerShell confirms Administrator membership.
  • Codex Windows sandbox configuration is sandbox = "elevated".

Requested assistance

Please investigate why codex-windows-sandbox-setup.exe cannot update the Deny ACE on the existing .codex directory.

Is there a supported procedure to recover sandbox ACL state without removing project files, disabling sandbox protections, or resetting unrelated filesystem permissions?

Safety

No manual ACL modification, ownership change, directory deletion, or Git modification has been performed.

Activity

  1. added
    bug
    extension
    windows-os
    sandbox
    on Oct 10, 2026
  2. shakira1024 commented on Oct 14, 2026

    @shakira1024

    My environment appears to have a similar Windows unified exec sandbox setup failure.

    Environment

    • Windows
    • VS Code Codex extension openai.chatgpt-26.1007.21434-win32-x64
    • Codex CLI 0.162.0-alpha.17.2

    Observed failure
    The sandbox setup repeatedly fails with:
    deny ACE failed on C:\Projects\growlux-migration\.git: open deny ACL target for update

    Codex cannot execute even Get-Location in my existing workspace.

    Useful difference in reproduction

    • Codex successfully executes Get-Location and git status in C:\CodexSandboxTest, a separate workspace containing a newly initialized Git repository.
    • Codex fails in C:\Projects\growlux-migration.
    • icacls .git /verify succeeds.
    • The .git ACL output I inspected showed inherited Allow entries; I did not observe the four explicit Deny ACEs described in this issue.

    This may be a related failure with a different ACL state. Is there a supported procedure to recover the sandbox ACL setup without broadly resetting filesystem permissions or weakening sandbox protections?

  3. idiot2705 commented on Oct 18, 2026

    @idiot2705
    Author

    Update: Local recovery successful — directory ownership correction

    I successfully restored Codex Windows unified exec functionality.

    Root failure observed:

    deny ACE failed on C:\Workspace\Engineering\.codex:
    open deny ACL target for update
    

    Environment:

    • Windows account running Codex: User B
    • Previous owner of the affected .codex directory: User A
    • Windows sandbox mode: elevated
    • The workspace had previously been accessed by multiple Windows user accounts.

    Recovery performed:

    From an elevated PowerShell session, I changed ownership of only the affected directory, without recursive modification:

    icacls "C:\Workspace\Engineering\.codex" /setowner "COMPUTER\UserB"

    The command completed successfully.

    Verification:

    • Codex successfully executed pwd.
    • Codex successfully executed git status --short --branch.
    • Repository working tree remained clean.
    • Git ahead/behind remained 0/0.
    • No execution errors occurred.

    No ACL reset, Deny ACE removal, sandbox disabling, or repository modifications were required.

    Observation: The ownership mismatch appears to have contributed to the sandbox setup failure. Changing the owner of the affected directory restored command execution in this environment.

    This is a confirmed local recovery, not proof that ownership mismatch causes every similar Windows sandbox error.

    A supported diagnostic and recovery procedure for multi-user Windows workspaces would be valuable.

  4. MuhammadFahim-PK commented on Oct 23, 2026

    @MuhammadFahim-PK

    I am experiencing a very similar issue with the same VS Code Codex extension version (26.1007.21434) on Windows 10 build 18363.1556.

    My sandbox helper reports:

    deny ACE failed on [WORKSPACE]\.agents:
    open deny ACL target for update
    
    setup refresh: processed 2 write roots; errors=[...]
    setup error: setup refresh had errors
    

    My findings:

    • Normal sandboxed Get-Location fails in the affected workspace.
    • The same command succeeds outside the sandbox with explicit approval.
    • Normal sandboxed execution succeeds in a separate workspace on the same drive.
    • The affected workspace root is owned by my personal Windows account.
    • The .agents and .agents\skills directories are owned by CodexSandboxOffline.
    • .agents\skills contains 22 NTFS directory junctions.
    • ACL inheritance is enabled, with no explicit deny ACEs found.
    • The failing helper's execution identity and underlying Windows error code remain unknown.

    I saw the October 18 recovery report involving a non-recursive directory ownership correction.

    Before attempting that recovery, could a maintainer confirm whether CodexSandboxOffline ownership is expected for .agents, and whether changing ownership of only that directory is safe and supported?

    I want to preserve the existing skill junctions, sandbox protections, and workspace permissions.

    No manual ACL or ownership changes have been performed.

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

    bugextensionsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions