Repository navigation
Description
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?
- On Windows 10 build 19045, install ChatGPT/Codex desktop
26.1002.7124.0from the Microsoft Store. - Open a local project (any workspace; I also reproduced in a brand-new empty folder).
- Ask for any local operation — read a file, or run
cmd /c echo hi. - 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 = falseand[plugins."computer-use@openai-bundled"] enabled = false— the app flips them back totrueon next launch. - Adding
enabled = falseinside[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 withError: 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_replprocess manually (the app respawns it) - Removing the
node_replMCP server and computer-use/browser plugins fromconfig.toml(app rewrites them) - Pre-granting the sandbox accounts explicit
(RX)onnode_repl.exeandnode.exe, and on the wholeOpenAI\Codex\runtimestree - 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 reacheschatgpt.comwith HTTP 200)
Questions for maintainers
- Is
26.1007.2314.0intended to fix this? If so, when will it reach the Microsoft Store for Windows 10 19045? - Should
codex-windows-sandbox-setup.exetreat 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. - Is
node_replsupposed to be running during setup at all? It appears to be started by the desktop app independently of thecomputer-use/browserplugin flags. - 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 doctoralso reports⚠ search search command could not be verified(rg.exenot 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
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
snowypuppy-0410 commentedon Oct 9, 2026
Confirmed:
unelevatedworkaround works on this machineFollowing the analysis in #52432, I switched
[windows] sandboxto"unelevated"in
~/.codex/config.tomland 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:
SUCCESSmarker does not appear anywhere else in the 893-line log for today.unelevated, nosetup refreshrun occurs at all (consistent withsetup 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).[mcp_servers.*].CodexSandbox{Offline,Online}principals with a restricted token under theuser'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 failedentries today, 208 targetnode_repl.exeand 3 targetVCRUNTIME140_1.dll— consistent with theover-broad
GENERIC_WRITEaccess 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?