Skip to content

Windows sandbox setup fails with sharing violations #52056

Open

Description

@tushunjie

Problem

Codex CLI 0.161.0 on Windows fails to run commands in read-only and workspace-write sandbox modes with helper_unknown_error: setup refresh had errors. Running commands outside the sandbox succeeds. The failure reproduces with the desktop app closed.

Reproduction

Run codex.cmd --no-daemon --sandbox read-only --ask-for-approval never, then ask it to execute Write-Output "Codex CLI OK".

Evidence

ProcMon shows codex-windows-sandbox-setup.exe receiving SHARING VIOLATION when opening the user profile directory and the active cua_node/.../bin/node_repl.exe runtime with Maximum Allowed access. Read-attributes opens succeed. The setup log reports runtime read/execute validation errors and setup refresh had errors. Active and backup runtime executables have matching inherited ACLs. Restarting, rebuilding runtime directories, and running CLI without desktop did not resolve the problem.

Codex desktop version: 26.1002.7124.0. Original ProcMon traces are withheld to avoid disclosing private local system information. The process responsible for the conflicting file access is not yet identified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions