Skip to content

Windows sandbox setup denied WRITE_DAC on .sandbox-bin; is #59745 in a desktop release? #61154

Open

Description

@twinsfan53

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

26.1106.6628.0

What subscription do you have?

ChatGPT Business

What platform is your computer?

Windows 11

What issue are you seeing?

Codex desktop on Windows intermittently fails before a local command starts:

helper_sandbox_lock_failed ... open directory ....codex.sandbox-bin: NtCreateFile: Access is denied. (os error 5)

Failure seen on OpenAI.Codex 26.1103.x; after reinstall the package reports 26.1106.6628.0.

Baseline ACL on .sandbox-bin: SYSTEM and Administrators have Modify without WRITE_DAC; the user has Modify + WRITE_DAC.

Findings

  • Process Monitor: codex-windows-sandbox-setup.exe running as SYSTEM got ACCESS DENIED requesting Read Control + Write DAC on that directory.
  • After a temporary folder-only SYSTEM WRITE_DAC grant, a sandbox command succeeded and setup performed SetSecurityFile on the directory; the extra grant was absent afterward.
  • Later commands worked, including after an app restart. Reinstalling had not fixed the original failure. Recurrence trigger unknown.

This appears to match the legacy ACL case in #59745.

Questions

  1. Which supported desktop release includes the Repair legacy Windows sandbox bin permissions for SYSTEM #59745 repair?
  2. What durable repair is recommended for existing affected installs? Should the ACL be left at baseline so the repair logic recognizes it?

Related: #50520, #59038

What steps can reproduce the bug?

On the affected Windows installation, start a local task that triggers Codex sandbox setup. The setup intermittently fails before the command runs with helper_sandbox_lock_failed and NtCreateFile: Access is denied (os error 5) on .codex.sandbox-bin.
We have not established the exact conditions that trigger a new setup, so these steps may not reproduce it on every run.

What is the expected behavior?

Sandbox setup should complete and allow the local command to run without requiring repeated manual changes to folder permissions. Setup should retain or repair the permissions it needs for future setup.

Additional information

Process Monitor captured codex-windows-sandbox-setup.exe running as SYSTEM receiving ACCESS DENIED while requesting Read Control and Write DAC on .sandbox-bin. A temporary folder-only SYSTEM WRITE_DAC grant allowed a command to run. Setup then successfully performed SetSecurityFile on that folder, and the extra grant was absent afterward. The event did not show the exact ACL contents written.
Commands subsequently worked, including after an app restart. Reinstalling did not resolve the original failure. The recurrence trigger is unknown.
Does a supported desktop release include the repair in #59745? What durable repair is recommended, and should the existing ACL remain at baseline for the repair to recognize it?
Possibly a duplicate of #60057. Related: #50520, #59038.

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