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 Codex app 26.1002.52244: local commands fail with helper_unknown_error during setup refresh #52060
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Current execution environment reports sandbox_mode: workspace-write.
Reproduction
Open a local workspace in Codex.
Ask the agent to run a read-only command such as Test-Path against an existing project file.
exec_command fails during process creation with the error above.
Repeated retries return the same error.
Other observed failures
apply_patch cannot write files in the workspace.
Node REPL exited with: windows sandbox failed: helper_unknown_error: setup refresh had errors.
A separate browser attempt to access the local preview was rejected by the browser URL policy. Its relationship to the sandbox error has not been established.
Expected behavior
Read-only commands and authorized local edits should work inside the workspace.
Diagnostic limits
The agent cannot read sandbox logs because local execution is blocked. The unelevated fallback was suggested, but its effective configuration and whether the app was fully restarted have not been verified. No Windows error 5, 32, or 1385 has been confirmed.
Related report
#51601 describes a similar setup-refresh error. We have not established an identical root cause.
Please advise which diagnostics are needed and whether a supported fix is available.
Reacted by Ümit KAYIKCIOĞLU, highnrgappalachian and zversven-blip
I spent an hour trying to fix this to no avail, and then I found a solution. I'd recommend rolling back, as that fixed the issue for me and I believe it will fix it for you as well.
ACLs for codex-windows-sandbox-setup.exe, codex-command-runner.exe, and codex.exe are consistent.
Application/Event logs did not surface a useful Codex-specific failure.
Impact:
Local execution is completely blocked, including the most basic read-only command, so normal development work in Codex Desktop is unusable.
Because this reproduces in an empty workspace after a runtime cache rebuild, this looks like the Windows sandbox/unified-exec setup-refresh path rather than a project-specific failure.
Please let me know which diagnostic log or supported repair path can expose the specific setup-refresh subfailure on this newer build.
Additional data point: same error, sandbox.log shows a sharing violation (os error 32) on node_repl.exe
Environment
Codex desktop app 26.1002.52244 (client_version in the local logs; MSIX package OpenAI.Codex_26.1002.7124.0_x64; Codex core 0.162.0), same version as in this issue, auto-updated on 2026-10-08. The same machine and project worked fine on 2026-10-07 with the previous version.
Windows 11 Home, build 22631, x64. The user profile path contains a non-ASCII character and a space.
config.toml: [windows] sandbox = "elevated". Approval mode "Ask for approval" (German UI: "Genehmigung anfordern").
Symptom Every local command fails before the process starts with helper_unknown_error: setup refresh had errors, also in a fresh chat.
What %USERPROFILE%.codex.sandbox\sandbox.2026-10-08.log shows (paths shortened, Windows message translated from German):
setup refresh: spawning ...\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe
failed to grant non-inheriting read-attributes ACE on user profile C:\Users<user>: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32); continuing setup
runtime read/execute validation failed: validate runtime read/execute access on ...\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32)
setup refresh: processed 3 write roots (read roots delegated); errors=["runtime read/execute validation failed: ... node_repl.exe ... (os error 32)"]
setup error: setup refresh had errors
setup refresh: exited with status ExitStatus(ExitStatus(1))
.sandbox\setup_error.json: {"code": "helper_unknown_error", "message": "setup refresh had errors"}
Observation: node_repl.exe (MCP server node_repl from the computer-use runtime cua_node) is started by the app itself a few seconds before each command, for example at 14:51:51 and 14:51:52, and the setup refresh fails at 14:51:55. The setup helper apparently tries to update the ACL of a binary that the app is running at that moment.
Tried without success
Full restart of the app (twice).
Settings, Computer use ("Computernutzung"): "Any app" ("Beliebige App") and "Microsoft Excel" turned off.
Settings, General: "Plugins" turned off.
Settings, MCP servers: node_repl turned off. config.toml then showed enabled = false, but node_repl.exe was still started for each run.
Ending node_repl.exe manually before a command: it is started again with the next turn.
Not tried: switching to the unelevated sandbox.
Workaround that works, but bypasses the sandbox: In a chat that had already seen the error, the agent asked for approval to run the command outside the sandbox. Approved once, the command ran fine. In a fresh chat the agent only reported the error and did not offer this.
I’m also affected. Last verified Windows app version:
26.1002.52244, build 13536.
Every local command fails before execution with:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
Even Get-Date and read-only file access fail.
Restart/reopen and Windows app Repair did not resolve it.
The documented sandbox.log appears to contain only May entries,
although the current failure is October 9, 2026 (Eastern Time).
Feedback ID: 01a1166a-776b-7702-aaaf-6ff2a1df29fe
Please use the submitted feedback diagnostics to identify the
underlying setup failure and provide a supported recovery.
This blocks recovery of a production weekly scraping workflow.
ANOTHER BLOCKING CODEX DESKTOP FAILURE — thread not found
This is yet another workflow-blocking failure in Codex Desktop. After the earlier Windows local-execution/sandbox failure reported in this issue, the app is now refusing to send a message in an existing working thread and displays:
thread not found: 01a1242d-13ea-7232-a2e0-f99f9b6bbf31
The conversation is visible in the Codex UI, but attempting to continue it fails with “Mesaj gönderilirken hata oluştu / thread not found”. This happened during an active local development workflow after substantial project context and work had accumulated in the thread.
This is extremely disruptive. Users should not have to repair Codex's internal session/thread storage, inspect local databases, or recreate long development conversations just to continue working.
Please investigate why a thread that remains visible in the desktop UI can become unavailable to the message-sending backend, and provide a supported recovery path that preserves the existing conversation and project context.
At minimum, Codex Desktop should:
never present a thread as usable when its backing thread cannot be resolved;
automatically recover/rebind a locally visible conversation when possible;
provide a user-facing recovery action instead of a raw internal thread not found UUID;
preserve accumulated conversation/project context across recovery;
log enough diagnostic information for this class of failure without requiring users to manually repair application internals.
The recurring reliability failures are preventing actual work from being completed. Please treat session/thread recovery on Windows Codex Desktop as a reliability issue, not as something the end user should have to debug manually.
The request therefore reaches the model, but Codex cannot execute even a trivial local command.
Expected behavior
The local command should execute normally and return the current working directory:
Path
----
C:\Users\shaya
Troubleshooting already performed
I have already tested all of the following:
Restarted Codex with fresh sessions
Rebooted Windows
Tested from an elevated / Administrator PowerShell
Reinstalled/updated the standalone Codex CLI 0.162.1
codex doctor reports the Codex installation as consistent
codex doctor reports authentication and local state databases as healthy
codex doctor successfully establishes the WebSocket handshake with HTTP 101 Switching Protocols
Provider endpoints are reachable
Verified that codex-windows-sandbox-setup.exe exists
Verified that codex-command-runner.exe exists
Verified that codex-code-mode-host.exe exists
Tested with unified_exec disabled
Tested with unified_exec_tty disabled
Checked recent Microsoft Defender threat detections and matching Defender Operational events; nothing relevant was reported
Reproduced the failure outside any Git repository with a trivial Get-Location command
The failure remains unchanged.
This does not appear to be repository-specific, worktree-specific, PowerShell-specific, authentication-specific, or caused by a missing Codex helper executable.
Additional isolation from an independent runner
I can reproduce the same failure inside an independent automated Codex/agent runner.
Multiple agents attempted basic local operations using PowerShell and cmd.exe, and all exec_command calls failed before process creation with the same error:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
However, in the same worktree, another Codex runtime path using node_repl was still able to:
open the worktree
list repository files
access .git
read project documentation
This is important because it shows that the worktree itself is accessible and the filesystem is readable.
The failure is specifically associated with the Codex local command execution path.
I also intermittently see:
ERROR codex_models_manager::manager: failed to refresh available models: request timed out
but this does not appear to explain the primary failure. Codex continues far enough to attempt the local command, and the blocking failure remains:
CreateProcess -> unified exec -> helper_unknown_error: setup refresh had errors
Current isolation result
The issue therefore persists after:
standalone Codex CLI reinstall/update
Windows reboot
Administrator execution
fresh Codex sessions
healthy authentication
healthy local state databases
confirmed provider reachability
successful WebSocket HTTP 101 handshake
verification that the Windows sandbox/helper executables exist
disabling unified_exec
disabling unified_exec_tty
checking recent Microsoft Defender detections/events
trivial execution outside any repository
independent automated runner reproduction
The worktree and filesystem remain readable through another runtime path, while local process creation through exec_command consistently fails.
At this point, the failure appears isolated to the Codex Windows sandbox / local execution provisioning layer rather than the repository, worktree, orchestration layer, shell, authentication, or basic network connectivity.
appIssues related to the Codex desktop appbugSomething isn't workingsandboxIssues related to permissions or sandboxingtool-callsIssues related to tool callingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 8, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
AyaanPV commentedon Oct 8, 2026
I spent an hour trying to fix this to no avail, and then I found a solution. I'd recommend rolling back, as that fixed the issue for me and I believe it will fix it for you as well.
I used the link below to fix this issue:
#51668
kivancerturk222 commentedon Oct 8, 2026
I can reproduce this on a newer Windows Codex Desktop build, and the failure is not repository-specific.
Environment:
Minimal reproduction:
LOCAL_EXECUTION_HEALTHY: NO
PWD: Unavailable
ERROR: Failed to create unified exec process: helper_unknown_error: setup refresh had errors
Diagnostics already completed:
Impact:
Local execution is completely blocked, including the most basic read-only command, so normal development work in Codex Desktop is unusable.
Because this reproduces in an empty workspace after a runtime cache rebuild, this looks like the Windows sandbox/unified-exec setup-refresh path rather than a project-specific failure.
Please let me know which diagnostic log or supported repair path can expose the specific setup-refresh subfailure on this newer build.
guenzelm commentedon Oct 8, 2026
Additional data point: same error, sandbox.log shows a sharing violation (os error 32) on node_repl.exe
Environment
Codex desktop app 26.1002.52244 (client_version in the local logs; MSIX package OpenAI.Codex_26.1002.7124.0_x64; Codex core 0.162.0), same version as in this issue, auto-updated on 2026-10-08. The same machine and project worked fine on 2026-10-07 with the previous version.
Windows 11 Home, build 22631, x64. The user profile path contains a non-ASCII character and a space.
config.toml: [windows] sandbox = "elevated". Approval mode "Ask for approval" (German UI: "Genehmigung anfordern").
Symptom Every local command fails before the process starts with helper_unknown_error: setup refresh had errors, also in a fresh chat.
What %USERPROFILE%.codex.sandbox\sandbox.2026-10-08.log shows (paths shortened, Windows message translated from German):
setup refresh: spawning ...\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe
failed to grant non-inheriting read-attributes ACE on user profile C:\Users<user>: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32); continuing setup
runtime read/execute validation failed: validate runtime read/execute access on ...\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32)
setup refresh: processed 3 write roots (read roots delegated); errors=["runtime read/execute validation failed: ... node_repl.exe ... (os error 32)"]
setup error: setup refresh had errors
setup refresh: exited with status ExitStatus(ExitStatus(1))
.sandbox\setup_error.json: {"code": "helper_unknown_error", "message": "setup refresh had errors"}
Observation: node_repl.exe (MCP server node_repl from the computer-use runtime cua_node) is started by the app itself a few seconds before each command, for example at 14:51:51 and 14:51:52, and the setup refresh fails at 14:51:55. The setup helper apparently tries to update the ACL of a binary that the app is running at that moment.
Tried without success
Full restart of the app (twice).
Settings, Computer use ("Computernutzung"): "Any app" ("Beliebige App") and "Microsoft Excel" turned off.
Settings, General: "Plugins" turned off.
Settings, MCP servers: node_repl turned off. config.toml then showed enabled = false, but node_repl.exe was still started for each run.
Ending node_repl.exe manually before a command: it is started again with the next turn.
Not tried: switching to the unelevated sandbox.
Workaround that works, but bypasses the sandbox: In a chat that had already seen the error, the agent asked for approval to run the command outside the sandbox. Approved once, the command ran fine. In a fresh chat the agent only reported the error and did not offer this.
I can share the full sandbox log if that helps.
advedsonpanes-source commentedon Oct 8, 2026
I am also affected on Windows with Codex app 26.1002.52244, build 13536, production channel.
Even a minimal command:
Write-Output 'CODEX_EXEC_OK'
fails before execution with:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
Browser initialization also fails with:
trusted Node process exited unexpectedly
A previous browser attempt reported:
windows sandbox failed: helper_unknown_error: setup refresh had errors
Additional troubleshooting:
In-app feedback ID:
01a11c2f-7476-7280-9fe4-b73cd42e9d4d
Windows error 32 has not been confirmed on my installation. Please use the submitted diagnostic feedback to investigate the underlying cause.
highnrgappalachian commentedon Oct 8, 2026
Nonexistent QA. Imagine launching an update with such a critical component failure.
dcgunteriii commentedon Oct 9, 2026
I’m also affected. Last verified Windows app version:
26.1002.52244, build 13536.
Every local command fails before execution with:
Failed to create unified exec process:
helper_unknown_error: setup refresh had errors
Even Get-Date and read-only file access fail.
Restart/reopen and Windows app Repair did not resolve it.
The documented sandbox.log appears to contain only May entries,
although the current failure is October 9, 2026 (Eastern Time).
Feedback ID: 01a1166a-776b-7702-aaaf-6ff2a1df29fe
Please use the submitted feedback diagnostics to identify the
underlying setup failure and provide a supported recovery.
This blocks recovery of a production weekly scraping workflow.
kivancerturk222 commentedon Oct 10, 2026
ANOTHER BLOCKING CODEX DESKTOP FAILURE —
thread not foundThis is yet another workflow-blocking failure in Codex Desktop. After the earlier Windows local-execution/sandbox failure reported in this issue, the app is now refusing to send a message in an existing working thread and displays:
thread not found: 01a1242d-13ea-7232-a2e0-f99f9b6bbf31The conversation is visible in the Codex UI, but attempting to continue it fails with “Mesaj gönderilirken hata oluştu / thread not found”. This happened during an active local development workflow after substantial project context and work had accumulated in the thread.
This is extremely disruptive. Users should not have to repair Codex's internal session/thread storage, inspect local databases, or recreate long development conversations just to continue working.
Please investigate why a thread that remains visible in the desktop UI can become unavailable to the message-sending backend, and provide a supported recovery path that preserves the existing conversation and project context.
At minimum, Codex Desktop should:
thread not foundUUID;The recurring reliability failures are preventing actual work from being completed. Please treat session/thread recovery on Windows Codex Desktop as a reliability issue, not as something the end user should have to debug manually.
buffbuffdev commentedon Oct 13, 2026
I can reproduce a Codex Windows sandbox/execution failure on Windows 11 with Codex CLI 0.162.1 and ChatGPT authentication.
Minimal reproduction
codex exec --skip-git-repo-check "Run Get-Location"Actual behavior
Codex starts normally and reaches the local execution step:
The process is never created and Codex immediately reports:
followed by:
codex doctorreports:The request therefore reaches the model, but Codex cannot execute even a trivial local command.
Expected behavior
The local command should execute normally and return the current working directory:
Troubleshooting already performed
I have already tested all of the following:
codex doctorreports the Codex installation as consistentcodex doctorreports authentication and local state databases as healthycodex doctorsuccessfully establishes the WebSocket handshake withHTTP 101 Switching Protocolscodex-windows-sandbox-setup.exeexistscodex-command-runner.exeexistscodex-code-mode-host.exeexistsunified_execdisabledunified_exec_ttydisabledGet-LocationcommandThe failure remains unchanged.
This does not appear to be repository-specific, worktree-specific, PowerShell-specific, authentication-specific, or caused by a missing Codex helper executable.
Additional isolation from an independent runner
I can reproduce the same failure inside an independent automated Codex/agent runner.
Multiple agents attempted basic local operations using PowerShell and
cmd.exe, and allexec_commandcalls failed before process creation with the same error:However, in the same worktree, another Codex runtime path using
node_replwas still able to:.gitThis is important because it shows that the worktree itself is accessible and the filesystem is readable.
The failure is specifically associated with the Codex local command execution path.
I also intermittently see:
but this does not appear to explain the primary failure. Codex continues far enough to attempt the local command, and the blocking failure remains:
Current isolation result
The issue therefore persists after:
HTTP 101handshakeunified_execunified_exec_ttyThe worktree and filesystem remain readable through another runtime path, while local process creation through
exec_commandconsistently fails.At this point, the failure appears isolated to the Codex Windows sandbox / local execution provisioning layer rather than the repository, worktree, orchestration layer, shell, authentication, or basic network connectivity.