Skip to content

Windows 10: setup refresh had errors — sandbox setup cannot set the ACL on a running node_repl.exe (os error 32), provisioning stays failed forever #52554

Open

Description

@snowypuppy-0410

What version of the Codex App are you using (From “About Codex” dialog)?

OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0

What subscription do you have?

Plus

What platform is your computer?

Windows 10 Pro, build 19045 (22H2), x64, zh-CN

What issue are you seeing?

Every local tool call fails before it starts. The assistant reports:

helper_unknown_error: setup refresh had errors

No local file reads, no shell commands, no project access. The user-visible wording in the app is "the local executor could not start".

codex doctor:

✗ sandbox   elevated Windows sandbox provisioning recorded a structured failure
    sandbox backend        elevated
    sandbox provisioning   failed
    error code             helper_unknown_error
  → repair or reinstall the Codex CLI from an approved distribution

The structured failure record is written to %USERPROFILE%\.codex\.sandbox\setup_error.json:

{ "code": "helper_unknown_error", "message": "setup refresh had errors" }

Nothing the app suggests helps: restarting the app, reopening the conversation, verifying the workspace path, Windows Apps → Repair, rebooting Windows, or reinstalling. Reinstalling from the official download page is not possible either — chatgpt.com/download has no Windows installer; it routes to the Microsoft Store, which still serves 26.1002.7124.0.

What steps can reproduce the bug?

  1. On Windows 10 build 19045, install ChatGPT/Codex desktop 26.1002.7124.0 from the Microsoft Store.
  2. Open a local project (any workspace; I also reproduced in a brand-new empty folder).
  3. Ask for any local operation — read a file, or run cmd /c echo hi.
  4. It fails with helper_unknown_error: setup refresh had errors.

Reproduced 67 times today and every single time after a specific point in time (see below). It is 100% deterministic, not intermittent.

Evidence

1. The sandbox log — one and only one error, repeated forever

%USERPROFILE%\.codex\.sandbox\sandbox.2026-10-09.log

[...] runtime read/execute validation failed: validate runtime read/execute access on
  C:\Users\Administrator\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe:
  open ACL target for root-only update: 另一个程序正在使用此文件,进程无法访问。 (os error 32)
[...] setup refresh: processed 3 write roots (read roots delegated);
  errors=["runtime read/execute validation failed: validate runtime read/execute access on
  ...\bin\node_repl.exe: open ACL target for root-only update: ... (os error 32)"]
[...] setup error: setup refresh had errors
[...] codex-windows-sandbox-setup.exe] setup error: setup refresh had errors
[...] setup refresh: exited with status ExitStatus(ExitStatus(1))

The system-locale (zh-CN) message 另一个程序正在使用此文件,进程无法访问。 is the Windows text for
ERROR_SHARING_VIOLATION (32) — "The process cannot access the file because it is being used by another process."
It is emitted by the OS, not by Codex; os error 32 in the same line is the same status.

os error 32 appears 146 times today, always on the same file.

2. It used to work on this exact machine — with a hard cutover

Time (local) Result
10:26, 10:33 setup refresh: processed 3 write roots ...; errors=[] — success (4 runs)
12:17:29 first failure
12:17 → 20:02 every run fails (67 attempts)

The cutover at 12:17 is when the user first asked Codex to download a file (Zotero installer). That is the moment the app started the node_repl MCP server for the first time in the session — and from then on node_repl.exe is resident.

Correlation: every failure has a live node_repl process; the last 4 successes happened when it was not running.

node_repl is respawned by the app automatically (observed respawning at 18:30, 18:35, 19:40, 19:50, 20:02 — always within a minute of being killed).

3. The ACLs are already correct — this is a sharing problem, not a permissions problem

The file already has the exact access the sandbox accounts need, both inherited and explicit:

...\bin\node_repl.exe  20251220-115320\CodexSandboxUsers:(RX)
                       20251220-115320\CodexSandboxOnline:(RX)
                       20251220-115320\CodexSandboxOffline:(RX)
                       20251220-115320\CodexSandboxUsers:(I)(RX)
                       20251220-115320\CodexSandboxOnline:(I)(RX)
                       20251220-115320\CodexSandboxOffline:(I)(RX)
                       NT AUTHORITY\SYSTEM:(I)(F)
                       BUILTIN\Administrators:(I)(F)
                       20251220-115320\Administrator:(I)(F)

The sandbox accounts exist and are enabled:

CodexSandboxOffline : EXISTS
CodexSandboxOnline  : EXISTS
setup_marker.json   : version 5, created 2026-07-15

I pre-granted those ACEs explicitly and setup still failed. So the failure is not "the sandbox account lacks access" — it is that codex-windows-sandbox-setup.exe cannot open the file to modify its security descriptor while the file is mapped as a running image.

Proof that nothing is permanently locking it: renaming node_repl.exe succeeds whenever no node_repl process is running, and fails with the same os error 32 when one is. Also node_repl.exe's LastWriteTime is still 2026-10-07 23:47:14 — setup has never managed to touch it.

4. Configuration workarounds do not stick

  • Deleting [mcp_servers.node_repl] + [mcp_servers.node_repl.env] from %USERPROFILE%\.codex\config.toml — the app rewrites both sections on next launch.
  • Setting [plugins."browser@openai-bundled"] enabled = false and [plugins."computer-use@openai-bundled"] enabled = false — the app flips them back to true on next launch.
  • Adding enabled = false inside [mcp_servers.node_repl] — invalid config (codex doctor: ✗ config could not be loaded — invalid configuration), so that key does not exist for MCP servers.
  • codex sandbox -P workspace-write ... cannot be used to test directly: it fails with Error: default_permissions requires a [permissions] table (this config has no [permissions] table).

5. Blocked on Store rollout — the fix exists but is not shipped

$ curl https://persistent.oaistatic.com/codex-app-prod/windows-store-update.json
{ "buildVersion": "26.1007.2314.0", "storeProductId": "9PLM9XGG6VKS" }

$ curl "https://displaycatalog.mp.microsoft.com/v7.0/products/9PLM9XGG6VKS?market=CN&languages=zh-cn&fieldsTemplate=Details"
ProductId : 9PLM9XGG6VKS     Title: ChatGPT     Publisher: OpenAI
Packages  : OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0
            OpenAI.Codex_26.1002.7124.0_arm64__2p2nqsd0c76g0
LastModifiedDate : 2026-10-09T01:43:55Z

Queried for market=CN/US/GB/JP/DE — all five return 26.1002.7124.0. The app's own log agrees:

[sparkle] Check for updates requested via menu.
[windows-store-updater] Checking Windows Store for package updates
    buildVersion=26.1002.7124.0  manifestBuildVersion=26.1007.2314.0
[windows-store-updater] Windows Store package update check completed
    canSilentlyDownload=true  completed=false  hasUpdate=false  overallState=NoUpdates

So on Windows there is no way to obtain 26.1007.2314.0 at the moment: the installer is Store-only, and the Store still lists the old build. enableSparkle=false in the launcher log, so there is no in-app fallback channel.

What is the expected behavior?

What I think the root cause is

codex-windows-sandbox-setup.exe performs a read/execute validation by opening the runtime executable and updating its ACL, and this runs while the app's own node_repl MCP server has node_repl.exe mapped as a running image. Windows refuses a security-descriptor update on a mapped image, returning ERROR_SHARING_VIOLATION (32). That single failure makes setup refresh exit 1, and the app then treats the whole sandbox as unprovisioned and refuses to create any local execution process.

Because the app always runs node_repl, this failure is unavoidable on this configuration — the sandbox can never finish provisioning.

Note this is not the same as the pin C:\ / OBJ_DONT_REPARSE failure discussed in #47383: here setup does reach the ACL stage (processed 3 write roots, write ACEs are granted, read ACL run completed), and the only error is the one file.

Things I tried that did not help

  • Restarting the app / rebooting / Windows Apps → Repair
  • Deleting setup_error.json (it is re-created on the next setup)
  • Killing every node_repl process manually (the app respawns it)
  • Removing the node_repl MCP server and computer-use/browser plugins from config.toml (app rewrites them)
  • Pre-granting the sandbox accounts explicit (RX) on node_repl.exe and node.exe, and on the whole OpenAI\Codex\runtimes tree
  • Verifying no third-party antivirus/EDR is present (codex doctor: ✓ security no supported endpoint protection detected)
  • Checking that network reachability is healthy (✓ reachability active provider endpoints are reachable — the machine now reaches chatgpt.com with HTTP 200)

Questions for maintainers

  1. Is 26.1007.2314.0 intended to fix this? If so, when will it reach the Microsoft Store for Windows 10 19045?
  2. Should codex-windows-sandbox-setup.exe treat a runtime executable it cannot re-ACL as already valid instead of failing the entire refresh? The file demonstrably already carries the required (RX) ACEs for both sandbox accounts.
  3. Is node_repl supposed to be running during setup at all? It appears to be started by the desktop app independently of the computer-use / browser plugin flags.
  4. Is there any supported way to obtain the fixed desktop build without the Microsoft Store (e.g. an MSIX download or a Beta channel)?

Additional information

  • codex doctor also reports ⚠ search search command could not be verified (rg.exe not found) — probably unrelated.
  • The machine had a working sandbox from 2026-07-15 through 2026-10-09 10:33, so this is a regression, not a first-time setup problem.

Activity

  1. added
    app
    on Oct 9, 2026
  2. added
    bug
    windows-os
    sandbox
    mcp
    on Oct 9, 2026
  3. snowypuppy-0410 commented on Oct 9, 2026

    @snowypuppy-0410
    Author

    Confirmed: unelevated workaround works on this machine

    Following the analysis in #52432, I switched [windows] sandbox to "unelevated"
    in ~/.codex/config.toml and local execution is restored.

    Evidence from %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-09.log, two adjacent entries:

    23:28:25 setup refresh: ... node_repl.exe ... (os error 32)
    setup error: setup refresh had errors
    setup refresh: exited with status ExitStatus(ExitStatus(1)) <- elevated, FAILED

    23:32:16 START: ...pwsh.exe -NoProfile -Command ...
    23:32:17 SUCCESS: ...pwsh.exe -NoProfile -Command ... <- unelevated, SUCCEEDED

    Notes:

    • The SUCCESS marker does not appear anywhere else in the 893-line log for today.
    • Under unelevated, no setup refresh run occurs at all (consistent with
      setup refresh: processed 0 write roots; errors=[] reported in Windows Codex 26.1002.7124.0: elevated sandbox ACL refresh fails on running node_repl.exe (os error 32); process timeline #52432).
    • The key survives the desktop app's config rewrite, unlike [mcp_servers.*].
    • This is a workaround, not a fix: it replaces the separate
      CodexSandbox{Offline,Online} principals with a restricted token under the
      user's own account, i.e. reduced isolation. Users on paid plans should not have
      to trade isolation for a working shell.

    Independent confirmation of the root cause on this machine: of 211
    runtime read/execute validation failed entries today, 208 target
    node_repl.exe
    and 3 target VCRUNTIME140_1.dll — consistent with the
    over-broad GENERIC_WRITE access mask rather than a file-content write
    (see #52432).

    Ping: could maintainers name one canonical issue for this regression and confirm which Windows desktop build contains the fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugmcpsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions