Last updated: · Applies to: Codex Windows app 26.1002.51308 / 26.1002.52244 (affected) · 26.1007.x (reported fixed)

Codex Windows sandbox: fixing “setup refresh had errors” (os error 32)

On the Windows Codex app, builds released around Oct 7–9, 2026 (26.1002.52244, 26.1002.7124.0) can fail every command with setup refresh had errors or helper_unknown_error. The elevated sandbox can't update permissions on files Codex itself is using, so Windows returns os error 32 (sharing violation).

Update to 26.1007.21434 (reported fixed by a user). If you can't, switch to the unelevated sandbox as a temporary fallback.

Symptoms

  • Shell commands fail before they start: helper_unknown_error: setup refresh had errors.
  • Computer Use and browser control fail to initialize; Node REPL reports trusted Node process exited unexpectedly or times out.
  • The sandbox log in %USERPROFILE%\.codex\.sandbox\ shows open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32), naming node_repl.exe or VCRUNTIME140_1.dll.

Which versions are affected?

Compiled from version numbers posted in the GitHub issues. The desktop app reports one number in “About Codex” and Windows registers a different package (Appx/MSIX) number, so both are listed.

About Codex version (build)Windows packageStatusSource
Before 26.1002.51308 (command-runner 0.160.1)—Not affected: 50 successful setup refreshes, no failures, in one user's log#51601
26.1002.51308 (build 13417)26.1002.6548.0Affected, many reports from Oct 7, 2026#51601, #51590
26.1002.52244 (build 13536)26.1002.7124.0Still affected, reports Oct 7–9, 2026#52033, #51590
26.1007.2143426.1007.x (one user reports 26.1007.2314.0)Users report fixed; one user on Oct 10 said shell and browser worked again#52033
CLI 0.162.1—A user reported the error again on Oct 15, 2026community report

A fix (PR #51822) was merged, but as of 2026-10-29 the three issues above are still open.

The original error text

Quoted verbatim from the official openai/codex issues, so you can match it against your own screen or log.

What every command shows (#51601):

helper_unknown_error: setup refresh had errors

Node REPL / Computer Use (#51590):

node_repl kernel exited unexpectedly
windows sandbox failed: helper_unknown_error: setup refresh had errors
trusted Node process exited unexpectedly; kernel reset, rerun your request

A plain PowerShell command (#51590):

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

The sandbox log, %USERPROFILE%\.codex\.sandbox\sandbox.<date>.log (#51601):

runtime read/execute validation failed: validate runtime read/execute access on
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\2c9e75c4e9c71beb\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)

Followed by (#51590):

setup error: setup refresh had errors
setup refresh: exited with status ExitStatus(ExitStatus(1))

The same error can name ...\bin\node_modules\@oai\sky\bin\windows\swift\x64\VCRUNTIME140_1.dll instead of node_repl.exe.

Why it happens

During setup, the elevated sandbox validates and updates ACLs across Codex's runtime folder. Some of those files, such as node_repl.exe and VCRUNTIME140_1.dll, are already running or loaded, so Windows refuses to open them and setup aborts. This is the community diagnosis in #51601, #51590 and #52033, not an official root-cause statement.

How to fix it

Didn't help according to reports: restarting the app, rebooting alone, reinstalling, and disabling plugins.

  1. Update the app to 26.1007.21434 or later

    A user confirmed this build fixed the error. Check “About Codex” for your version.

  2. Sign out, then reboot

    Some users report that signing out of Codex, rebooting Windows, and signing back in cleared it.

  3. Temporary: use the unelevated sandbox

    Back up, then edit %USERPROFILE%\.codex\config.toml and add (this key is in the official Windows sandbox docs):

    [windows]
    sandbox = "unelevated"

    Fully quit Codex (end leftover node_repl.exe/node.exe processes in Task Manager) and reopen. This is temporary. OpenAI calls unelevated a legacy fallback with weaker network isolation and no denied read paths. Change it back to elevated once you're on a fixed build.

Not fully fixed everywhere: a user on CLI 0.162.1 still reported the error on Oct 15, 2026. Follow the issues below before assuming it's gone.

“Broken pipe (os error 32)” is a different problem

Despite the same error number, Broken pipe (os error 32) means a connection or output stream closed mid-session, for example a dropped network stream. It isn't the sandbox sharing violation. Retry the turn, check your network or VPN, and see the network section of the troubleshooting hub.

Sources

FAQ

What does 'setup refresh had errors' mean in Codex on Windows?

The elevated Windows sandbox failed while updating file permissions (ACLs) on Codex's own runtime files, because files like node_repl.exe or VCRUNTIME140_1.dll were in use (os error 32). Every command fails before it starts.

Which Codex Windows versions have the os error 32 sandbox bug?

Reports from Oct 7–9, 2026 cite desktop builds 26.1002.52244 and 26.1002.7124.0 (and 26.1002.51308). A user reported 26.1007.21434 fixed it, but a CLI 0.162.1 user still hit it on Oct 15, so it is not confirmed fully fixed.

Does reinstalling Codex fix the sandbox error?

Users reported that restarting, reinstalling and disabling plugins did not help. Updating to 26.1007.21434 or signing out and rebooting did help some users.

Is it safe to set the Windows sandbox to unelevated?

It is an official legacy fallback, but OpenAI says it has weaker network isolation than elevated and does not support denied read paths. Use it only temporarily and if your organization's policy allows it, then switch back.

Is 'Broken pipe (os error 32)' the same problem?

No. Broken pipe means a connection or stream closed mid-session. It is a different problem from the sandbox sharing violation.

This is an independent, unofficial help site. It is not affiliated with or endorsed by OpenAI. Plans, limits and versions change; always check the official pages linked here.