Skip to content

Windows sandbox fails on two workstations: node_repl.exe ACL validation os error 32; Full Access succeeds #52616

Open

Description

@RobertWestfeld

Summary

Windows desktop sandbox command execution fails before process creation on two separate workstations, while Full Access permits execution. Confirmed on 2026-10-09.

Related: #52611, #52595 and the proposed runtime ACL fix #51822. I tried adding this two-workstation evidence to #51822, but its conversation is locked. Please consolidate with an existing issue if appropriate.

The affected employee workstation reports desktop 26.1002.52244, build 13536 (prod), Windows package 26.1002.7124.0. Both workstation logs reference:

  • Runtime: cua_node/3dd31cfff853001c/bin/node_repl.exe
  • Setup helper: bin/9691020b546a15b2/codex-windows-sandbox-setup.exe

Observed failure (user/profile paths redacted):

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

runtime read/execute validation failed:
validate runtime read/execute access on
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe:
open ACL target for root-only update:
Proces nie może uzyskać dostępu do pliku, ponieważ jest on używany przez inny proces. (os error 32)

The requested command is only a local PowerShell Get-Item metadata read of an existing project file. It never starts; the setup helper exits with code 1.

Comparison:

  • Workstation A: sandbox execution fails. One explicit Full Access metadata read succeeds, exit 0, exec duration 3.008 seconds.
  • Workstation B: normally usable in Full Access. One controlled switch of the same chat to workspace-write reproduces the same detailed ACL-open error on the same runtime path identifier, not merely the generic wrapper error. Full Access was then restored.
  • Matching log events: A at 2026-10-09T13:36:30.0467867Z; B at 2026-10-09T15:38:34.8527431Z.
  • The exact process holding an incompatible handle and cross-workstation binary equality have not been established. These observations do not prove every Windows environment is affected.
  • Although the requested command never started, B's helper log records automatic project ACE updates before failure; we are not claiming the setup had no side effects.

This appears consistent with the ACL-open mechanism addressed by #51822. Related desktop reports include #52611 and #52595. Full Access is only a temporary operational workaround with reduced isolation, not a sandbox repair.

Could the team confirm which signed production Windows desktop/package build includes this fix, and provide a supported update path/backport if it is not yet available through the Store? We would prefer a verified packaged fix over further speculative ACL changes, process killing, or reinstall attempts.

No session transcript, business documents, credentials, tokens, or unredacted logs are included.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 9, 2026
  2. argszero commented on Oct 9, 2026

    @argszero

    Answering the question you asked directly, because it is checkable: #51822 is merged (dd12f892f1, "Avoid sharing violations when repairing Windows runtime ACLs", merged 2026-10-07T20:47Z). But it is not in the stable 0.162.0 core, and that is almost certainly why you are still hitting this.

    Why the fix matches your error exactly

    The pre-fix code in codex-rs/windows-sandbox-rs/src/acl.rs was:

    let directory = if inheritance == 0 {
        Some(
            OpenOptions::new()
                .access_mode(MAXIMUM_ALLOWED)
                .share_mode(FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE)
                .custom_flags(FILE_FLAG_BACKUP_SEMANTICS)
                .open(path)
                .context("open ACL target for root-only update")?,
        )
    } else {
        None
    };

    MAXIMUM_ALLOWED was requested for every root-only ACL target — directory or file. On an actively running runtime binary (node_repl.exe, held open by the running process with FILE_SHARE_READ), a MAXIMUM_ALLOWED open asks for access the holder does not share, which is ERROR_SHARING_VIOLATION — os error 32. That is your line:

    runtime read/execute validation failed: validate runtime read/execute access on
    ...\cua_node\3dd31cfff853001c\bin\node_repl.exe:
    open ACL target for root-only update: ... (os error 32)
    

    The comment above the fixed code states the intent in the same words: "Only directories need MAXIMUM_ALLOWED to suppress child ACL propagation. On active EXE/DLL files, it can request access that causes sharing violations."

    The fix restricts that open to directories:

    let directory = if inheritance == 0
        && path
            .metadata()
            .with_context(|| format!("inspect ACL target {}", path.display()))?
            .is_dir()
    {

    and for files only requests READ_CONTROL | WRITE_DAC when an ACL update is actually needed. Its regression test holds node.exe open with FILE_SHARE_READ throughout repair and revalidation — i.e. it tests precisely the condition you reproduced. Your comparison to #51822 is right, and your Full-Access-succeeds observation fits too: Full Access does not run this repair.

    The build question — and a check you can run yourself

    #51822 also renamed the error string. Post-fix it reads:

    open ACL target for root-only update (MAXIMUM_ALLOWED)
    

    Yours has no suffix, so your build is on the pre-fix side. That gives you a zero-tooling discriminator — if the suffix is absent from the message, the build does not contain #51822, whatever the version number says.

    Release boundary, verified by inspecting acl.rs content in each tag (not by version ordering, for reasons below):

    tag date #51822
    rust-v0.162.0-alpha.2 2026-10-02 absent
    rust-v0.162.0-alpha.18 2026-10-06 absent
    rust-v0.162.0-alpha.19 2026-10-08 present — first release with the fix
    rust-v0.162.0-alpha.20 2026-10-08 present
    rust-v0.163.0-alpha.1 / .2 2026-10-08 present
    rust-v0.162.0 (stable) 2026-10-08 absent

    The stable 0.162.0 cut is the practical trap. Its release line forked from main at ac9b5b8380 (2026-10-07 00:51Z); #51822 merged at 20:47Z the same day, about 20 hours after the cut. So 0.162.0 stable was tagged on 2026-10-08 yet does not contain the fix, and updating within the 0.162.0 stable line will not resolve this.

    Two things I would be careful about before you act on that table:

    1. Tag date does not determine content here. rust-v0.162.0-alpha.17.2 is dated 2026-10-08 06:23Z — later than alpha.19 — and still lacks the fix, because those point at separate release-line commits. Verify by content, not by date or by assuming "newer tag means newer code".
    2. I cannot map the Desktop app version to a bundled core version. Your report gives the app build (26.1002.52244 / package 26.1002.7124.0) but not the core. A sibling report's environment block lists a bundled CLI of 0.162.0-alpha.2, which is pre-fix — consistent with everything above, but I have not verified that your specific build bundles it. If you can share codex --version (or the core version from the About dialog), that pins it exactly.

    To be explicit about what I am not claiming: I have not verified that a signed Windows build containing alpha.19-or-later is available through the Store, nor what its release schedule is. That part is the team's to answer — but the version at which the fix first exists is settled, so "is it in my build?" is now decidable from the error text alone.

    Finally, the labeling: although these reports carry app/windows-os, the defect is in codex-rs (windows-sandbox-rs/src/acl.rs) and so is the fix. The codex-windows-sandbox-setup.exe helper in your logs is the component that performs this repair.

  3. ibeholder-lab commented on Oct 9, 2026

    @ibeholder-lab

    I can reproduce this issue on Windows 11 with Codex desktop version 26.1002.7124.0.

    After a clean Windows reboot, before launching Codex, there are no node_repl.exe processes running.

    After launching Codex, multiple node_repl.exe processes are spawned by codex.exe and its child node.exe processes.

    The sandbox setup consistently fails with:

    runtime read/execute validation failed:
    validate runtime read/execute access on ...\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 had errors
    

    The problem persists after a clean reboot and application reset.

    This suggests a possible race between spawning node_repl.exe and updating its executable's ACL during sandbox initialization.

    The Windows sandbox service is running, and WFP setup succeeds.

    Could the sandbox ACL initialization be completed before starting the Node REPL runtime, or could this file-sharing conflict be handled without failing the entire sandbox setup?

  4. argszero commented on Oct 9, 2026

    @argszero

    Addendum with a sharper answer to the update-path question, since the situation moved overnight and it changes the practical conclusion.

    No stable release currently contains #51822. I checked the newest stable core, not just the one I named before:

    release date #51822
    rust-v0.162.0 2026-10-08 absent
    rust-v0.162.1 (newest stable) 2026-10-09 absent
    rust-v0.162.0-alpha.19 2026-10-08 present — first release with the fix
    rust-v0.163.0-alpha.4 2026-10-09 present
    main — present

    v0.162.1 is not stale — it descends from the 0.162 fork point and already includes the current tip of the active release/0.162-4fa4a329 branch. So the 0.162 maintenance line is being cut, but #51822 has not been backported onto it: I checked acl.rs in that branch and in v0.162.1 directly, and both still carry the pre-fix form (open ACL target for root-only update, no is_dir() guard, MAXIMUM_ALLOWED unconditional for root-only targets). Content-checked, same method as the earlier table.

    That is the direct answer to what you asked: there is no supported stable update path to this fix today. It exists only on the prerelease lines (0.162.0-alpha.19 and later, and the 0.163.0 alphas) and on main. Closing it for your workstations means a backport onto the 0.162 release line, which is a maintainer decision rather than something fixable from the client side — so it is worth stating plainly in this thread rather than leaving you to wait for a release that will not carry it.

    Two limits, unchanged from before: I still cannot map the Desktop app build (26.1002.52244 / package 26.1002.7124.0) to the core it bundles — codex --version would settle that, and the version you reported in the sibling thread (0.162.0-alpha.2) is on the pre-fix side, consistent with the error text. And I am describing which tags contain the fix; I have no visibility into the Store's rollout schedule, which is why the backport request is the actionable part.

    The build fingerprint still holds and is the fastest check for anyone else in this cluster: if the message reads open ACL target for root-only update with no (MAXIMUM_ALLOWED) suffix, the build is pre-#51822.

  5. Pb600 commented on Oct 10, 2026

    @Pb600

    Fixed! Update released 1 minute after I asked ChatGPT to fix the issue in the binary 😆 (He was really willing to do that!)

  6. argszero commented on Oct 10, 2026

    @argszero

    A correction to my own earlier fingerprint, because it is checkable and it matters for exactly the case just reported.

    The (MAXIMUM_ALLOWED) error-string suffix is not part of #51822. It comes from a separate, later diagnostics PR:

    PR commit author landed what it does
    #51822 dd12f892f1 johnl-oai 2026-10-07T20:34Z the actual fix — restricts the MAXIMUM_ALLOWED open to directories (is_dir() guard)
    #51896 dd178bb7ca alishobeiri-oai 2026-10-08T00:53Z diagnostics only — renames the ACL open context strings to open ACL target for root-only update (MAXIMUM_ALLOWED) and open ACL target for update (READ_CONTROL | WRITE_DAC)

    I offered the suffix as the build fingerprint for #51822. That is wrong in the direction that matters here: rust-v0.162.0-alpha.19 and alpha.20 contain #51822's guard without the suffix, because #51896 landed about four hours later and first shipped in 0.163.0-alpha.1. Verified two ways — commit ancestry against each tag, and acl.rs content (guard present, suffix absent).

    Corrected discriminator, if you are still triaging builds:

    Release boundary, re-checked by acl.rs content just now (2026-10-10):

    tag #51822 #51896
    rust-v0.162.0-alpha.18 no no
    rust-v0.162.0-alpha.19 yes — first release with the fix no
    rust-v0.162.0-alpha.20 yes no
    rust-v0.162.0 (stable) no no
    rust-v0.162.1 (newest stable) no no
    rust-v0.163.0-alpha.1 yes yes — first with the suffix
    rust-v0.163.0-alpha.6 (tag pushed, no release entry published yet) yes yes
    release/0.162-4fa4a329 (tip f715d50688) no no
    main (806d9732c9) yes yes

    So yesterday's conclusion is unchanged and remains the operative one: no stable release contains #51822, and the active release/0.162 maintenance line has not taken the backport — 0.162.1 is cut from that line and still carries the pre-fix form (MAXIMUM_ALLOWED unconditional for root-only targets, no is_dir() guard). The fix exists only on 0.162.0-alpha.19 and later, the 0.163.0 alphas, and main.

    @Pb600 — glad it is working on your machine. Since the suffix check I gave was wrong, "fixed" cannot be pinned to a version from the message text alone. Would you share codex --version (or the core version from the About dialog) for the build that now works? That is the one datum that distinguishes a core with #51822 (e.g. a Desktop/Store build bundling 0.162.0-alpha.19 or later) from something that changed elsewhere on the client side — and it would tell everyone else in this cluster which update to wait for.

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions