Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.928.31416
What subscription do you have?
Business Premium
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Local commands failed before execution in Codex Desktop on Windows using PowerShell with the workspace-write sandbox.
Even a read-only command such as Get-Content public/css/admin.css failed with:
CreateProcess {
message: "Rejected("Failed to create unified exec process: helper_unknown_error: setup refresh had errors")"
}
Retrying with login: false produced the same error. The Node REPL also failed to start and reported:
windows sandbox failed: helper_unknown_error: setup refresh had errors
Its kernel exited with code 1.
Running commands with sandbox_permissions: "require_escalated" succeeded afterward, allowing the task to continue. This suggests the failure occurred during sandbox initialization rather than in the command itself.
Expected behavior: Ordinary read and write operations inside the authorized workspace should run without requiring escalation.
What steps can reproduce the bug?
- Start with a workspace where
.agentsdoes not exist yet. - Launch Codex with the elevated Windows sandbox enabled.
- During the initial ACL refresh,
.agentsis skipped because the directory does not exist yet. - Trigger creation of
.agentsfrom inside the sandbox. - The newly created
.agentsdirectory may then be owned by the sandbox account, for exampleCodexSandboxOffline. - Trigger another sandbox setup or ACL refresh, e.g. by starting another command or session.
- Codex now detects
.agentsand tries to apply its protective DENY ACE. - The refresh fails because the normal Windows user is not the owner of
.agentsand cannot update its ACL.
Resulting error:
deny ACE failed on <workspace>\.agents: open deny ACL target for update
setup refresh completed with errors
setup error: setup refresh had errors
This would explain why the issue does not occur consistently: it depends on whether .agents already exists before the first sandbox refresh and which account creates it.
If .agents already exists and is owned by the normal Windows user, the problem does not seem to occur.
What is the expected behavior?
No response
Additional information
No response
Activity
github-actions commentedon Oct 1, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
wbdb commentedon Oct 1, 2026
@chess-oai Another windows sandbox issue
Seems related: #43776
deny ACE failed on ....agents: open deny ACL target for update
setup refresh completed with errors
Temporary workaround PowerShell:
chess-oai commentedon Oct 5, 2026
@wbdb fix for this is also in-flight
sergio-r-f-oliveira commentedon Oct 7, 2026
Additional Windows case with a validated fallback workaround.
Environment:
Observed behavior:
Failed to create unified exec process: helper_unknown_error: setup refresh had errorsGet-Date.Validated workaround:
--disable-gpu.Get-Date.Result:
Get-Dateexecuted successfully and returned the local date/time.--disable-gpu.The two changes may address separate problems:
sandbox = "unelevated"appears to bypass the elevated sandbox setup/refresh failure, while--disable-gpuappears to prevent the desktop UI from closing or hanging during setup. The unelevated sandbox is understood to provide weaker isolation, so this is being treated as a temporary compatibility workaround with approval prompts kept enabled.No credentials, private project files, or session logs are included in this comment.
larshp commentedon Oct 8, 2026
thanks, changing the config to
unelevatedhelped me getting the vscode codex extension working againclijun555-a11y commentedon Oct 8, 2026
Additional reproduction from a Windows Codex desktop session on 2026-10-09 (Asia/Shanghai), posted with the affected user's authorization.
Observed failure
Even the read-only PowerShell command
Get-Locationfails before the command starts:This was reproduced repeatedly, including with
login: false. Reading a local skill file fails with the same error. An attempted file creation viaapply_patchalso failed. The alternative Node REPL repeatedly returned:Permission test
The session used a workspace-write sandbox. The user explicitly granted additional network access and write access to the intended project and skill-install directories through the permission request tool. Retrying after those grants still produced the identical process-creation error. We did not establish that any UI access-mode setting was being ignored.
External terminal control test and impact
In an external Windows PowerShell, the user successfully installed Remotion skills and project dependencies, started Remotion Studio, downloaded Chrome Headless Shell, and rendered/encoded a 1920x1080, 30 FPS, 5-second H.264 MP4. This required manually copying the agent's script into the external terminal because the agent could not read or write the project or launch commands itself. The render completed successfully while the agent execution failure persisted.
A separate external PowerShell restriction on
npx.ps1was resolved by usingnpx.cmd; that issue should not be conflated with the Codex helper failure, which occurs even forGet-Location.Expected behavior
Permitted workspace commands and file operations should run without requiring the user to manually relay scripts through an external terminal. If environment setup fails, the error should identify the failing setup step and a supported recovery action.
The user suspects a recent update regression, but we have not verified a before/after version comparison. The installed app version and detailed sandbox/ACL logs were not obtained, and this reproduction does not establish the ACL root cause discussed in the original report. Personal paths and screenshots are intentionally omitted.