Repository navigation
Description
Environment
- Codex Desktop Windows package:
OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0 - Windows 11 Home, build 26100, x64
- Config:
[windows] sandbox = "elevated" - Test workspace:
C:\CodexTest(simple local directory) - Date: 2026-10-09
Problem
Even a read-only pwd / directory listing fails before shell execution with helper_unknown_error: setup refresh had errors. Sandbox logs repeatedly show:
runtime read/execute validation failed: validate runtime read/execute access on %LOCALAPPDATA%\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 error: setup refresh had errors
setup refresh: exited with status ExitStatus(ExitStatus(1))
Reproduction
- Fully quit Codex, confirm no
codex.exeornode_repl.exeprocesses remain. - Start Codex Desktop with elevated Windows sandbox configured.
- Open
C:\CodexTest, ask to executepwdand list files without modifying anything. - Command fails during sandbox setup; error 32 targets the bundled
node_repl.exe.
Diagnostic process timeline
Local timestamps on 2026-10-09 (UTC+08:00); obtained by polling Win32_Process and comparing with sandbox log timestamps:
- 14:27:52:
codex.exePID 22776 starts - 14:27:53:
codex.exePID 18124 starts - 14:28:02:
node_repl.exePIDs 5268 and 23768 start (parents 1732 and 18124) - 14:28:13–14:29:24: additional
node_repl.exeinstances appear - 14:30:12:
codex-windows-sandbox-setup.exePID 5072 starts (parent 18124) - 14:30:14: sandbox log reports ACL update sharing violation on
node_repl.exe(os error 32), then exit status 1
Process Explorer showed node_repl.exe loaded from the same cua_node runtime path. The exact file-sharing flags and underlying cause have not been established; process ordering is observed, causation remains a hypothesis.
Troubleshooting performed
- Rebooted Windows; confirmed no
node_repl.exebefore launching Codex. - Fully exited Codex and checked for leftover processes.
- Verified the executable exists and its ACL can be read; owner is the current Windows user.
- Renamed/backed up
cua_nodewith Codex closed; Codex regenerated it, but the same error recurred. - Retested repeatedly with read-only commands;
elevatedconsistently fails. - Switching to
[windows] sandbox = "unelevated"restores shell command execution (temporary workaround).
Expected
The elevated Windows sandbox should initialize and run authorized read-only commands even if Codex runtime helpers are already active. Please investigate ACL target opening/sharing behavior and runtime helper startup coordination, and advise on a supported fix or safe rollback.
Related reports: #52389, #52360, #51969. No private repository data, user account name, or unredacted log files are included.
Activity
github-actions commentedon Oct 9, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
node_repl.exeis running (OS error 32) #52389Powered by Codex Action
KenanM-CL commentedon Oct 9, 2026
Same failure here, and I think I can pin the cause: the setup helper requests
GENERIC_WRITEon the runtime binary when it only needsWRITE_DAC. Windows allows a DACL update on a running image; it refuses write-data withERROR_SHARING_VIOLATION(32).Environment
26.1002.7124.0(app/runtime26.1002.52244),SignatureKind=Store10.0.26200.9457[windows] sandbox = "elevated"Failing operation
That single entry puts the setup helper into
errors=[...]→ exit 1 →helper_unknown_error: setup refresh had errors→ unified exec is never created, so every command fails, including read-only ones.The holder is Codex itself:
codex.exespawnsnode_repl.exeas an MCP server ~13s before the setup refresh runs. From one launch's log:Ordering is deterministic, which is why app restarts and reboots never recover it.
Evidence that the access mask is the bug
Raw
CreateFileWprobes against the exact file while it is running:WRITE_DAC(0x40000)WRITE_DACWRITE_DAC | WRITE_OWNERREAD_CONTROLGENERIC_WRITEGENERIC_WRITENegative control: the same binaries when not running accept
GENERIC_WRITEwithout complaint. So this is not AV, not a stale handle, and not a third-party lock — it is write-data access being requested against a running image.Minimal probe:
Controlled A/B isolating the sandbox mode
codex sandbox -- <exe>exercises the same path with no model call, so this is reproducible headlessly. With the desktop app closed andnode_repl.exestarted manually to hold the image open, the only variable being sandbox mode:With
node_repl.exenot running,elevatedalso succeeds andsetup_error.jsonis deleted. So the trigger is precisely "runtime binary is running during the elevated setup refresh".Regression window
~/.codex/.sandbox/sandbox.<date>.log, same machine:2026-10-05,2026-10-06: 0 occurrences ofruntime read/execute validation2026-10-08: 72, beginning at the first sandbox event of the day (10:42:54 local)The step appears to be new in the Oct 8 build. A later Oct 8 update shipped a new
cua_nodehash and did not fix it.Suggested fix
Request
WRITE_DAC(plusREAD_CONTROLif the current DACL is read first) rather thanGENERIC_WRITEwhen applying ACLs to runtime files. The probe above shows that succeeds against the running image, so the whole chicken-and-egg disappears without any process-ordering changes.Two secondary notes:
node_repl.exe— Windows app 26.1002.7124.0: sandbox setup error 32 on VCRUNTIME140_1.dll blocks local commands #52216 reports the same error 32 onVCRUNTIME140_1.dll, consistent with one over-broad mask applied to every runtime file.helper_unknown_error: setup refresh had errorscollapses the entireerrors[]array into one opaque string. Surfacing the first underlying error in the UI would have saved everyone in these threads a lot of time — unrelated root causes currently produce identical text (e.g. the path-specific August report on 26.818.5229.0).Workaround that restores execution without a rollback: set
[windows] sandbox = "unelevated"in~/.codex/config.toml. That key is user-owned and survives the app's config rewrite, unlike[mcp_servers.*]. It does weaken the isolation boundary (restricted token under the user's own account rather than the separateCodexSandbox{Offline,Online}principals), so it's a stopgap, not a fix.Hendra827 commentedon Oct 9, 2026
I'm also tracking this regression in my reports #51932 and #52409. The same Windows Desktop sandbox Error 32 is still being reported across multiple fresh issues, including after restart/reboot, and PR #51822 does not by itself confirm which Desktop build contains the fix. Could the maintainers identify one canonical issue for tracking, confirm whether the fix has shipped in a Windows Desktop build, and share a supported recovery path that preserves the elevated sandbox? My support case has been escalated, but I have not received an engineering status or release timeline yet.
swampind commentedon Oct 10, 2026
Additional affected user, confirmed on 11 October 2026. This blocks browser automation and Node REPL startup in the Windows desktop app, as well as ordinary sandboxed shell commands.
Environment
OpenAI.Codex26.1002.7124.0 (read fromGet-AppxPackage).codex-cli 0.162.0-alpha.2(codex.exe --version).[windows] sandbox = "elevated".%LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe.Observed reproduction and errors
await cua.getState(), fails before any browser interaction.nodeRepl.write('Runtime connection check');. This also fails before the JavaScript executes.The tool returns:
The sandbox log records:
Post-restart process timeline
Local times, Australia/Sydney (UTC+11), 11 October 2026:
codex.exeparent starts at 09:35:42.node_repl.exeprocesses start between 09:35:55 and 09:36:18, with the currentcodex.exeandnode.exehelpers as parents.All observed runtime processes started after the app restart. We did not establish a stale pre-restart process or identify the precise lock owner. These observations are consistent with the reported startup/access-control conflict; we have not independently verified the access-mask hypothesis.
Recovery attempted and impact
This has stopped a production browser workflow despite its assets already being prepared. Please provide a supported fix or recovery that preserves the elevated sandbox, and surface the underlying sharing-violation error instead of only
setup refresh had errors.Personal paths, workspace/project details, session contents and credentials are omitted. This comment is submitted at the affected user's request.