Skip to content

[Windows] Sandbox setup failure blocks local commands and file editing (helper_unknown_error / os error 32) #52499

Open

Description

@zmz-beijita

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

26.1002.52244 (build 13536)

What subscription do you have?

ChatGPT Plus

What platform is your computer?

win 11

What issue are you seeing?

Local commands cannot start in my current Codex desktop chat on Windows. Local file editing also fails, including an attempt to create a small temporary file in an explicitly writable workspace.

The issue was observed on October 8 and remained reproducible on October 9, 2026.

The latest command attempt returned:

exec_command failed: CreateProcess { message: "Rejected(\"Failed to create unified exec process: helper_unknown_error: setup refresh had errors\")" }

The setup error file contains:

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

A detailed sandbox log captured on October 8 contains the following error, with identifying path components redacted:

runtime read/execute validation failed:
validate runtime read/execute access on
C:\Users\<USER>\AppData\Local\OpenAI\Codex\runtimes\cua_node\<RUNTIME_ID>\bin\node_repl.exe:
open ACL target for root-only update:
另一个程序正在使用此文件,进程无法访问。(os error 32)

The Chinese message means: “The process cannot access the file because it is being used by another process.”

This runtime validation error appears in the final setup error list, followed by:

setup error: setup refresh had errors

The command fails before it can perform the requested operation. A separate file-editing attempt returned “Failed to write file.” I have not independently established whether that write failure has exactly the same underlying cause.

Web access and some app-level tools still work. I have not identified which process is causing the sharing violation.

What steps can reproduce the bug?

In my affected installation:

  1. Open Codex desktop on Windows, version 26.1002.52244.
  2. Open the existing local workspace chat.
  3. Ask Codex to read an existing local text file using its command tool.
  4. The tool fails before the command starts, reporting:
    helper_unknown_error: setup refresh had errors.
  5. Separately, ask Codex to create a small temporary text file in the allowed workspace using its file-editing tool.
  6. That operation also fails with “Failed to write file.” The temporary file is not created.

Example requests:

  • “Read an existing local text file and show its contents.”
  • “Create a temporary text file containing 'test' in the current writable workspace.”

Restarting the desktop app did not resolve the issue. The command startup failure was reproduced again on October 9, 2026.

Exact token usage and context-window usage were not collected.

What is the expected behavior?

Codex should initialize its Windows sandbox successfully and execute permitted local commands. It should be able to read accessible files and create or edit files in an explicitly writable workspace without failing during sandbox setup.

Additional information

Possibly related reports and fix:

I am reporting the issue on desktop app version 26.1002.52244, build 13536. I have not confirmed whether this installed build includes the fix from PR #51822.

The latest information-only update check could not determine update availability. It reported that the Windows Store must check installation eligibility and that such a check may download updates. It did not initiate that check.

No rollback has been completed yet, and no successful switch to the unelevated sandbox has been confirmed.

Could you clarify which Windows desktop release includes the fix, and whether there is a supported recovery method that preserves local chats, configuration, skills, and projects?

If this is the same underlying issue as an existing report, please feel free to link or mark this report as a duplicate.

Activity

  1. added
    app
    on Oct 9, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Oct 9, 2026
  3. Leo241096 commented on Oct 10, 2026

    @Leo241096

    Additional redacted reproduction evidence, checked 2026-10-10 (Asia/Shanghai). The control-layer failure remains unresolved.

    Environment:

    • Desktop display version 26.1002.52244, build 13536, prod.
    • Windows package OpenAI.Codex 26.1002.7124.0 ARM64.
    • Bundled core 0.162.0-alpha.2; Windows build 26200.9457 / 25H2 / ARM64.
    • Sandbox elevated; temporary diagnostic overrides were restored.

    A read-only control inventory call (await cua.getState()) failed before browser inventory or page interaction. Matching sandbox logs at 11:01:39, 11:10:49 and 11:24:33 UTC+08 report:

    runtime read/execute validation failed:
    validate runtime read/execute access on <CUA_RUNTIME>/bin/node_repl.exe:
    open ACL target for root-only update:
    another program is using this file (os error 32)
    setup refresh had errors
    

    Tool output includes trusted Node process exited unexpectedly; kernel reset or node_repl kernel exited unexpectedly.

    Checks and limits:

    • A full app exit/restart with new host processes did not resolve the failure.
    • Installed versus extracted codex.exe and sandbox setup helper SHA-256 values match; no stale extracted binary mismatch was found.
    • UI settings show Any App, Chrome and Edge enabled, with browser extensions installed. This establishes settings only; the failing runtime never returned actual browser connection status.
    • A previously recorded read-only Win32 comparison on the running executable succeeded with READ_CONTROL and READ_CONTROL | WRITE_DAC, but MAXIMUM_ALLOWED returned error 32. No data or ACL was modified by that comparison. This is a root-cause candidate, not proof of the exact installed helper implementation or a successful fix. PR Avoid sharing violations when repairing Windows runtime ACLs #51822 appears relevant; inclusion in this Desktop package remains unverified.
    • A one-time MXC diagnostic passed command-level startup but CUA failed with cannot locate required Windows platform directory: HRESULT 0x80070003. The override was removed. A previous temporary unelevated probe reached a visible browser, then elevated was restored; this is not a production workaround or repair acceptance.
    • A diagnostic enabled=false for the node_repl MCP section was overwritten by Desktop startup-generated configuration, so it did not provide a valid isolation test. We stopped modifying that generated section.
    • The user reports updating to the latest available app; local package checks still showed the version above. No verified first-fixed Desktop release was identified.

    Please advise which supported Windows ARM64 Desktop build includes the file access-mask fix and whether there is a supported recovery that preserves chats/projects/settings and elevated isolation. No internal binary replacement, ACL/registry changes, or sandbox disabling has been performed as a workaround.

    This comment contains only curated, redacted diagnostic evidence. No credentials, complete configuration, signed URLs, sandbox secrets, raw logs, or business data are attached.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions