Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
0.154.0
What subscription do you have?
plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Summary
In Codex App for Windows, creating commands consistently fails when the workspace is opened from a location on the C: drive. The same commands work when the workspace is opened from D:\\downloading\\sub2.
The failure happens before PowerShell is created. The app reports:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
Minimal reproduction
-
Use Codex App for Windows.
-
Configure the Windows sandbox as:
[windows] sandbox = "elevated"
-
Open a workspace from a C: drive location.
-
Request a minimal command, such as
whoami. -
The command fails before PowerShell starts and reports
setup refresh had errors. -
Control case: open a workspace from
D:\\downloading\\sub2and run the same command successfully.
Actual result
The main sandbox diagnostic log records this failure chain:
write ACE grant failed on <REDACTED_USER_PROFILE_PATH>
SetNamedSecurityInfoW failed: 5
setup refresh completed with errors
Win32 error 5 is Access is denied.
Log correlation:
| Working-directory category | setup refresh attempts | Success | Failure | Write-root count |
|---|---|---|---|---|
| C: drive location | 43 | 0 | 43 | 111–116 |
| Other drive location | 47 | 47 | 0 | 2 |
All 43 failures target the same direct child of the user profile. The directory name is redacted; it is neither AppData nor .codex. That target path no longer exists, so its historical ACL cannot be inspected now.
The same target appears in failed records from at least 13 retained daily sandbox logs, from 2026-08-25 through 2026-09-11. This is not a one-off failure.
Environment
- Product: Codex App for Windows
- Codex version:
0.154.0(from localCODEX_HOME/version.json) - Windows: Windows 10 Home China, version 25H2
- OS build: 26200.9445
- Sandbox mode:
elevated - User-profile owner:
NT AUTHORITY\\SYSTEM - User-profile DACL: protected
CODEX_HOME/.sandbox/deny_read_acl_state.json: present, valid JSON, 22 bytes, zero NUL bytes
Expected result
Opening a workspace from a C: drive location should start sandboxed commands normally, just as it does when the workspace is opened from D:\\downloading\\sub2.
If the elevated sandbox cannot grant an ACE to a write root, the app should identify the blocked directory and operation instead of returning only the generic setup refresh had errors before the requested shell process starts.
Attachments
- Redacted
codex-sandbox-2026-09-11-redacted.log
codex-sandbox-2026-09-11-redacted.log
What steps can reproduce the bug?
Steps to reproduce
-
Use Codex App for Windows with:
[windows] sandbox = "elevated"
-
Open a workspace from a location on the C: drive.
-
Ask Codex to run this minimal command:
whoami
-
The command fails before PowerShell starts:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors -
Open a workspace from D:\downloading\sub2 and run the same command. It succeeds.
Relevant log evidence
write ACE grant failed on <REDACTED_USER_PROFILE_PATH>
SetNamedSecurityInfoW failed: 5
setup refresh completed with errors
The sandbox log shows 43 failed setup-refresh attempts for C: drive workspaces, with 111–116 write roots. It shows 47
successful attempts for other-drive workspaces, with 2 write roots.
Session / token information
Not applicable. This is a Windows sandbox setup failure that occurs before PowerShell and the requested command start, so no command-level session ID, token-limit usage, or context-window usage is produced.
What is the expected behavior?
When a workspace is opened from a location on the C: drive, Codex App should initialize the elevated Windows sandbox and run sandboxed commands normally, just as it does when the workspace is opened from D
For example, a minimal command such as whoami should start PowerShell and return its output.
If sandbox initialization cannot grant a required filesystem ACE, Codex should report the exact blocked directory and operation. It should not fail command creation with only the generic message “setup refresh had errors” before the requested shell process starts.
Additional information
- Codex version metadata:
0.154.0- Platform:
Microsoft Windows NT 10.0.26200.0 x64 - Sandbox mode:
elevated - The same failed user-profile child path appears in retained sandbox logs across at least 13 dates, from 2026-08-25 through 2026-09-11.
- The failing path is now absent, so its historical ACL cannot be inspected. It was neither AppData nor
.codex. CODEX_HOME/.sandbox/deny_read_acl_state.jsonis present, valid JSON, 22 bytes, and contains zero NUL bytes.- The user-profile directory is owned by
NT AUTHORITY\SYSTEMand has a protected DACL. - I am attaching a redacted sandbox log. No
.sandbox-secretscontent, credentials, tokens, or unredacted private paths are included.
- Platform:
Activity
github-actions commentedon Sep 11, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Mlppprrowo commentedon Sep 11, 2026
Not a duplicate. #43776 is the closest related issue, but it concerns a Codex-created project
.agentsdirectory and a failed deny-ACE operation.My issue involves a different non-hidden direct child of the user profile, a failed write-ACE operation with
SetNamedSecurityInfoW failed: 5, and a reproducible C:-vs-other-drive result: 43/43 failures for C: drive workspaces versus 47/47 successes for other-drive workspaces.The other suggested issues report the genericsetup refresh had errorsmessage but do not identify this specific ACE/write-root trigger.I am keeping this issue open for maintainer triage. Please consolidate it with another issue only if the underlying root cause is confirmed to be the same.