You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows sandbox fails with helper_unknown_error: setup refresh had errors #48979
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
The Codex App cannot initialize its Windows sandbox. Every local command fails with:
windows sandbox failed: helper_unknown_error: setup refresh had errors
The integrated terminal also does not open through the keyboard shortcut or the menu. Computer-use/browser-control sessions fail to start with the same Windows sandbox/helper error.
Steps to reproduce:
Open an existing project or create a new task.
Try to open the integrated terminal, or ask Codex to run a basic command such as Get-Location.
The terminal does not open and the local execution process exits with the sandbox setup-refresh error.
Expected result:
The integrated terminal and local execution tools should start normally.
Actual result:
No terminal or local tool can start.
Troubleshooting already completed:
Closed and reopened the app
Restarted Windows
Used Windows App Repair
Fully uninstalled and reinstalled the Codex App
Created a new task
Closed and attempted to reopen the integrated terminal
Submitted in-app feedback and generated the Feedback ID above
In my case, terminal commands initially work, but workspace write operations are denied. After granting the requested write/network permissions, terminal execution immediately starts failing with:
helper_unknown_error: setup refresh had errors
The problem has reproduced after restarting Codex and reopening the workspace.
My workspace is on a local J: drive.
I submitted diagnostic logs through Codex feedback.
Additional reproduction from a separate Windows 11 environment:
Codex app package: 26.1002.7124.0
App-reported version/build: 26.1002.52244 / 13536, production channel
Windows 11 26H2, build 26300.9457
Elevated sandbox setup was attempted once.
Setup refresh failed before any UAC/admin prompt with HELPER_UNKNOWN_ERROR / SETUP_REFRESH_HAD_ERRORS.
The documented CODEX_HOME/.sandbox/sandbox.log file was not emitted.
The Store package reported Status: OK; the four previously inspected allowlisted components were present, AMD64, and Authenticode-valid.
I did not switch to unelevated or Full Access, and did not repeat the setup attempt.
This may share the same top-level symptom as this issue, but I have not established that ownership/SID or Git safe.directory is the cause in this environment. I have therefore not applied recursive ownership or ACL changes, and I have not copied another machine's fix.
Could a maintainer advise a supported, minimally scoped diagnostic path when the failure occurs before UAC and sandbox.log is not created?
I can reproduce the same failure on Codex Desktop for Windows.
Codex App: 26.1002.52244 (build 13536)
Impact: all local command execution and Computer Use/browser control fail
Started: October 9, 2026
Error: windows sandbox failed: helper_unknown_error: setup refresh had errors
The sandbox log shows the underlying failure:
runtime read/execute validation failed: validate runtime read/execute access on
C:\Users\Pascal\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe:
open ACL target for root-only update:
Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.
(os error 32)
The issue is reproducible repeatedly. Codex starts its CUA Node runtime and then the sandbox setup fails during ACL validation of node_repl.exe.
Already tried without success:
fully restarting Codex
restarting Windows
testing in a new chat
renaming %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node so Codex rebuilds the runtime cache
Resource Monitor’s handle search does not catch node_repl.exe, likely because the locking process exists only briefly. The error remains identical after the runtime rebuild.
Update: the issue is currently resolved on my machine.
Two things changed before the successful retest:
Codex updated from 26.1002.52244 (build 13536) to 26.1007.21434 (build 13901).
I added this to config.toml and restarted Codex:
[windows]
sandbox = "unelevated"
Afterwards, Computer Use initialized successfully and the in-app browser could open and read a page normally. The previous node_repl.exe / os error 32 / setup refresh had errors failure did not recur.
I cannot isolate whether the app update, the sandbox = "unelevated" setting, or their combination fixed it.
For context, rebuilding the cua_node runtime cache alone had not resolved the issue earlier.
I reproduced this outside Craft Anything on Windows 11 x64 (build 26200) with the standalone Codex CLI 0.161.0. I ran codex exec from the same local workspace with --ignore-user-config, --ephemeral, --sandbox workspace-write, and windows.sandbox set to elevated for that invocation. I asked Codex to run Get-Location once through its built-in shell tool.
The tool failed before PowerShell started:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
The matching sandbox log shows that runtime read/execute validation failed when opening an ACL target for a root-only update on %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime>\bin\node.exe. Windows reported The process cannot access the file because it is being used by another process. (os error 32). Running Get-Location directly with the same PowerShell executable in the same working directory returned exit code 0.
The same setup-refresh error had appeared in a Craft Anything 0.6.1 Codex build. A separate standalone run using the desktop-bundled Codex CLI 0.169.0-alpha.11.1 returned registered Core launch requires an installed app instead.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Schwabo75 commentedon Sep 28, 2026
I can reproduce this issue on Windows.
In my case, terminal commands initially work, but workspace write operations are denied. After granting the requested write/network permissions, terminal execution immediately starts failing with:
helper_unknown_error: setup refresh had errors
The problem has reproduced after restarting Codex and reopening the workspace.
My workspace is on a local J: drive.
I submitted diagnostic logs through Codex feedback.
Feedback ID: 01a0e802-2e92-7ec0-b71e-5f28ca258784
Schwabo75 commentedon Sep 28, 2026
Update: I was able to resolve the issue.
Root cause in my case:
helper_unknown_error: setup refresh had errors
What fixed it:
Current result:
In my case, the issue was related to Windows ownership/SIDs combined with Git safe.directory checks.
Hopefully this helps diagnose and fix similar Windows cases.
comvol-code commentedon Oct 8, 2026
Additional reproduction from a separate Windows 11 environment:
26.1002.7124.026.1002.52244 / 13536, production channel26300.9457HELPER_UNKNOWN_ERROR / SETUP_REFRESH_HAD_ERRORS.CODEX_HOME/.sandbox/sandbox.logfile was not emitted.Status: OK; the four previously inspected allowlisted components were present, AMD64, and Authenticode-valid.This may share the same top-level symptom as this issue, but I have not established that ownership/SID or Git
safe.directoryis the cause in this environment. I have therefore not applied recursive ownership or ACL changes, and I have not copied another machine's fix.Could a maintainer advise a supported, minimally scoped diagnostic path when the failure occurs before UAC and
sandbox.logis not created?Imawizard96 commentedon Oct 9, 2026
I can reproduce the same failure on Codex Desktop for Windows.
windows sandbox failed: helper_unknown_error: setup refresh had errorsThe sandbox log shows the underlying failure:
runtime read/execute validation failed: validate runtime read/execute access on
C:\Users\Pascal\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe:
open ACL target for root-only update:
Der Prozess kann nicht auf die Datei zugreifen, da sie von einem anderen Prozess verwendet wird.
(os error 32)
The issue is reproducible repeatedly. Codex starts its CUA Node runtime and then the sandbox setup fails during ACL validation of node_repl.exe.
Already tried without success:
Resource Monitor’s handle search does not catch node_repl.exe, likely because the locking process exists only briefly. The error remains identical after the runtime rebuild.
Update: the issue is currently resolved on my machine.
Two things changed before the successful retest:
26.1002.52244(build 13536) to26.1007.21434(build 13901).config.tomland restarted Codex:[windows]
sandbox = "unelevated"
Afterwards, Computer Use initialized successfully and the in-app browser could open and read a page normally. The previous node_repl.exe / os error 32 / setup refresh had errors failure did not recur.
I cannot isolate whether the app update, the sandbox = "unelevated" setting, or their combination fixed it.
For context, rebuilding the cua_node runtime cache alone had not resolved the issue earlier.
EP-PBednarczyk commentedon Oct 9, 2026
I have problem after updated 07 october 2026.
Title: Windows desktop: terminal fails after update with helper_unknown_error: setup refresh had errors
I use the Codex desktop app on Windows, independently of PyCharm.
After updating Codex, terminal commands stopped working.
Even git status --short fails before the command starts:
exec_command failed: CreateProcess { message: "Rejected("Failed to create unified exec process: helper_unknown_error: setup refresh had errors")" }
Restarting Windows and the Codex app did not resolve the issue.
The terminal in PyCharm works correctly, including git status.
The configuration contains:
[windows]
sandbox = "elevated"
The supplied configuration records version 26.1002.52244.
Last reproduction: October 9, 2026.
Please investigate this possible regression and provide an official fix.
roccordx commentedon Nov 9, 2026
Codex Windows sandbox fails before PowerShell starts
I'm experiencing the same issue with Codex Desktop on Windows.
Error:
CreateProcess { message: "Rejected(\"Failed to create unified exec process: helper_unknown_error: setup refresh had errors\")" }Environment:
elevated(also testedunelevated)Get-LocationTroubleshooting completed:
WRITE_DACandAccess is denied (os error 5).The problem persists. Could you investigate the Windows sandbox setup/refresh failure?
I can provide the relevant sandbox log for further diagnosis.
wtigero commentedon Nov 16, 2026
I reproduced this outside Craft Anything on Windows 11 x64 (build 26200) with the standalone Codex CLI
0.161.0. I rancodex execfrom the same local workspace with--ignore-user-config,--ephemeral,--sandbox workspace-write, andwindows.sandboxset toelevatedfor that invocation. I asked Codex to runGet-Locationonce through its built-in shell tool.The tool failed before PowerShell started:
The matching sandbox log shows that runtime read/execute validation failed when opening an ACL target for a root-only update on
%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\<runtime>\bin\node.exe. Windows reportedThe process cannot access the file because it is being used by another process. (os error 32). RunningGet-Locationdirectly with the same PowerShell executable in the same working directory returned exit code 0.The same setup-refresh error had appeared in a Craft Anything 0.6.1 Codex build. A separate standalone run using the desktop-bundled Codex CLI
0.169.0-alpha.11.1returnedregistered Core launch requires an installed appinstead.