Skip to content

Windows sandbox fails before read-only commands (helper_sandbox_lock_failed), blocking authorized security maintenance #60795

Open

Description

@galimar

What version of the Codex App are you using (From “About Codex” dialog)?

26.1106.6628.0 (installed OpenAI.Codex Windows package, verified with Get-AppxPackage; user reports latest installed version)

What subscription do you have?

ChatGPT Business

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64. Native desktop app, PowerShell, Docker Desktop with Linux containers.

What issue are you seeing?

An explicitly authorized defensive maintenance workflow in Codex desktop on Windows is repeatedly interrupted by tool/sandbox execution failures, including commands that only read local files. The user perceives this as the security tooling preventing completion of legitimate remediation work.

Confirmed diagnostic from this conversation (local username redacted):

exec_command failed: CreateProcess { message: "Rejected(\"Failed to create unified exec process: sandbox provisioning failed: helper_sandbox_lock_failed: lock sandbox bin dir \\?\C:\Users\<USER>\.codex\.sandbox-bin failed: open directory \\?\C:\Users\<USER>\.codex\.sandbox-bin: NtCreateFile: Accesso negato. (os error 5)\")" }

The failed command consisted of ordinary read-only operations such as Get-Content, git status --short, and git log in a local Git worktree. It failed before the command could run. Retrying through the supported approval/escalation flow succeeded, so the behavior is not a total loss of shell access, but it introduces repeated interruptions even for benign reads.

The work being delayed is patching dependencies and qualifying PostgreSQL/CloudNativePG container images, including local build, dependency scans and isolated functional/restore tests. Production changes are explicitly prohibited in this task.

Please distinguish a sandbox initialization/access-control failure from a deliberate safety-policy refusal. The captured error demonstrates the former; I do not have enough evidence to claim that a cybersecurity classifier caused this particular failure.

What steps can reproduce the bug?

Feedback ID: 01a1b022-4847-7a40-9b92-6d0ca991704d

What is the expected behavior?

Allowed read-only commands should start successfully in the selected sandbox. A permissions boundary should produce a clear, actionable request for approval, rather than failing to initialize the sandbox helper.

If the Windows sandbox state is inconsistent, the app should identify the failing resource and provide a supported repair path that preserves security settings. Effective permission changes should be visible to the user.

Authorized dependency remediation, source verification, standard tests and local container qualification should remain possible through normal, explicit permissions. This report does not request disabling monitoring, bypassing safety checks, or granting unrestricted production access.

Additional information

Impact: defensive maintenance is delayed and the user must repeatedly intervene, while the qualification/release gate correctly remains closed. No production deployment was performed.

Some local package/source test failures in the same task are separate engineering issues; they are not evidence of a Codex security block and should not be conflated with the sandbox provisioning error.

Please use the Feedback ID for private session diagnostics. Public text is intentionally redacted and excludes repository contents, credentials, kubeconfig files, customer data and infrastructure endpoints.

OpenAI documentation consulted: https://learn.chatgpt.com/docs/windows/windows-sandbox

Activity

  1. added
    app
    on Nov 11, 2026
  2. added
    bug
    windows-os
    sandbox
    on Nov 11, 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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions