codex icon indicating copy to clipboard operation
codex copied to clipboard

Windows sandbox setup refresh fails on WSL UNC workspace (GetSecurityInfo error 1)

Open frebeswe opened this issue 1 month ago • 3 comments

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

26.930.41038

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

The native Windows sandbox fails during setup refresh when the workspace is located in WSL2 and opened through a UNC path such as:

\wsl.localhost\Ubuntu\home<user>\projects<repo>

This configuration worked for approximately two months before it began failing.

Actual behavior

Terminal initialization may fail with:

helper_unknown_error: setup refresh had errors

The Windows sandbox log repeatedly reports:

write ACE check failed on \?\UNC\wsl.localhost\Ubuntu\home<user>\projects<repo> GetSecurityInfo failed ... : 1

write ACE grant failed ... deny ACE failed on ...<repo>.git setup refresh completed with errors

Invoking WSL from the sandbox can also fail with:

WSL/Service/E_ACCESSDENIED

The initial elevated sandbox provisioning itself succeeds:

ensuring sandbox users offline=CodexSandboxOffline online=CodexSandboxOnline WFP setup succeeded for CodexSandboxOffline setup provisioning binary completed

What steps can reproduce the bug?

Store a Git repository inside WSL2 under /home//projects/. Add it to Codex through \wsl.localhost\Ubuntu\home<user>\projects<repo>. Use the native Windows agent. Start a basic terminal command or invoke wsl.exe.

What is the expected behavior?

Codex should either:

  • support WSL UNC workspaces without applying incompatible Windows ACL operations; or
  • detect that the workspace is located in WSL2 and use the Linux/WSL execution path.

The sandbox setup refresh should not fail because GetSecurityInfo cannot process the WSL UNC filesystem.

Additional information

Direct Windows file reads from the UNC path work. Git for Windows can read repository status through the UNC path when the safe-directory setting is supplied temporarily. The failure occurs specifically when the Windows sandbox attempts to apply or inspect Windows ACE/ACL entries on the WSL filesystem. User and repository names have been anonymized in this report.

frebeswe avatar Oct 05 '26 20:10 frebeswe

Retested after updating to Codex Desktop 26.930.61225 (build 13232) with bundled codex-cli 0.160.1.

The issue persists: wsl.exe returns Wsl/E_ACCESSDENIED, and Windows Git operating on the WSL UNC workspace still reports: unable to open '.git/sequencer/todo': Function not implemented

frebeswe avatar Oct 07 '26 08:10 frebeswe

I am experiencing the same Windows sandbox failure with a WSL-hosted workspace.

Environment:

  • Product: Codex desktop app for Windows
  • App version: 26.1120.50957
  • Subscription: API access via a company-managed gateway (custom model provider)
  • Windows version: Microsoft Windows NT 10.0.26200.0
  • WSL distribution: Ubuntu
  • Agent execution environment: Windows native
  • Windows sandbox implementation reported in the logs: elevated
  • Workspace: \wsl.localhost\Ubuntu\home<user><project>

Steps to reproduce:

  1. Keep the Codex agent environment set to Windows native.
  2. Open a Git repository stored inside Ubuntu through its WSL UNC path.
  3. Ask the agent to list or read the project files.
  4. The tool fails during sandbox initialization, before the requested command starts.

The shell error is:

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

The sandbox log inspected on November 13, 2026 contained:

write ACE check failed on the WSL UNC workspace
GetSecurityInfo failed ... : 1
write ACE grant failed on the WSL UNC workspace
deny ACE failed on the workspace .git directory
setup error: setup refresh had errors

The same top-level "setup refresh had errors" failure occurred again in this conversation on November 26, 2026.

An approved command outside the sandbox successfully listed the same repository. This indicates that the workspace itself is accessible, while the Windows sandbox initialization fails.

In-product feedback/session ID: 01a1d436-8f4e-7472-8459-c472a8f0109c

Please correlate this feedback/session ID with this public issue for investigation. User names and repository paths have been redacted.

GeckoBiff avatar Nov 26 '26 11:11 GeckoBiff

Additional Windows + WSL UNC regression report with an A/B version comparison (user observation; root cause not yet established).

Environment

  • Codex desktop on Windows, WSL2 Ubuntu-24.04, Git repository stored inside Linux and opened via \\wsl.localhost\Ubuntu-24.04\home\<user>\projects\<repo>.
  • Full Access selected in the Codex UI.
  • Last known working Windows package: OpenAI.Codex 26.1111.9664.0.
  • Failing package after upgrade: OpenAI.Codex 26.1117.4957.0.

Observed regression

  1. In a normal development task, the agent could inspect project files but could not perform authorized Git writes/commits. The repository's .git metadata was effectively read-only / writes were denied.
  2. Errors encountered included Unable to read current working directory: Function not implemented, access-denied Git operations, and a WSL launch failure reported as Wsl/E_ACCESSDENIED.
  3. The same WSL repository and Git worked normally from an external terminal, outside the agent.
  4. Rolling the desktop package back to 26.1111.9664.0 restored the ability to create Git commits on that repository. We did not change Windows ACLs, edit Git internals, or bypass sandbox restrictions.

Expected An explicitly authorized Windows/WSL workspace should support ordinary Git operations, or the effective sandbox/WSL restriction should be shown clearly instead of contradicting the Full Access setting.

This seems related both to this UNC/sandbox issue and to #57816 (Full Access UI vs. effective permissions). It is not proof of a shared root cause, but the working version → failing version → working after rollback sequence may help isolate the regression. Can maintainers indicate a build containing a verified fix and a supported non-destructive test procedure?

shelamov avatar Nov 28 '26 10:11 shelamov