Skip to content

Windows sandbox consistently fails with setup refresh had errors #52046

Closed

Description

@GithubDaniel12345

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

Version 26.1002.52244

What subscription do you have?

Plus

What platform is your computer?

Windows 10 Pro

What issue are you seeing?

Windows-Sandbox scheitert dauerhaft mit setup refresh had errors. Die Runtime-Prüfung für cua_node\3dd31cfff853001c\bin\node_repl.exe schlägt mit os error 32 fehl. Beenden der Codex-Prozesse und ein vollständiger Windows-Neustart haben nicht geholfen.

What steps can reproduce the bug?

Feedback ID: 01a11acc-d796-7970-a777-cebe0aa24a26

What is the expected behavior?

Codex can read local PDF documents

Additional information

Image

Activity

  1. added
    app
    on Oct 8, 2026
  2. changed the title [-]Windows-Sandbox scheitert dauerhaft mit setup refresh had errors[/-] [+]Windows sandbox consistently fails with setup refresh had errors[/+] on Oct 8, 2026
  3. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

    English translation:

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

    Version 26.1002.52244

    What subscription do you have?

    Plus

    What platform is your computer?

    Windows 10 Pro

    What issue are you seeing?

    Windows sandbox consistently fails with setup refresh had errors. The runtime check for cua_node\3dd31cfff853001c\bin\node_repl.exe fails with os error 32. Terminating the Codex processes and fully restarting Windows did not help.

    What steps can reproduce the bug?

    Feedback ID: 01a11acc-d796-7970-a777-cebe0aa24a26

    What is the expected behavior?

    Codex can read local PDF documents

    Additional information

    Image
  4. added
    bug
    windows-os
    sandbox
    on Oct 8, 2026
  5. SDV-G-Deploy commented on Oct 8, 2026

    @SDV-G-Deploy

    Independent reproduction on Windows 11 Pro x64, build 26200, on 2026-10-08. The same error blocked an overnight local asset-production task, including shell-based read-only code review.

    Environment

    • Local launcher targets %USERPROFILE%\.codex\plugins\.plugin-appserver\codex.exe, reporting codex-cli 0.162.0-alpha.2.
    • Overnight logs also reference the desktop helper under %LOCALAPPDATA%\OpenAI\Codex\bin\9691020b546a15b2.
    • Configured Windows backend: windows.sandbox = "elevated". Existing setup marker version: 5.
    • Failing runtime: %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe.
    • Exact desktop app version was not independently collected.

    Minimal reproduction on the affected installation

    With Codex Desktop running, from ordinary PowerShell in an existing workspace:

    codex sandbox -- C:/Windows/System32/cmd.exe /d /c echo SANDBOX_PROBE_OK

    Exit code 1; marker never appears:

    windows sandbox failed: helper_unknown_error: setup refresh had errors
    

    Control outside the sandbox:

    C:/Windows/System32/cmd.exe /d /c echo UNSANDBOXED_CONTROL_OK

    Exit code 0; marker appears. This build exposes a flat codex sandbox [COMMAND]... interface, verified using codex sandbox --help.

    Sanitized native log

    At 2026-10-08 10:34:34 UTC, the sandbox log records:

    START: C:/Windows/System32/cmd.exe /d /c echo SANDBOX_PROBE_OK
    runtime read/execute validation failed:
    validate runtime read/execute access on <runtime>/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: processed 0 write roots (read roots delegated)
    setup error: setup refresh had errors
    setup refresh: exited with status ExitStatus(ExitStatus(1))
    

    The native message was Russian; the English translation above preserves its meaning. Earlier overnight entries show the same fatal runtime validation failure across workspace-write and read-only attempts. A separate profile-directory read-attributes failure explicitly continues setup; the fatal errors list identifies node_repl.exe.

    Additional read-only experiment

    CreateFileW calls against that executable, with sharing FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, OPEN_EXISTING, and FILE_FLAG_BACKUP_SEMANTICS, yielded:

    Requested access Result
    READ_CONTROL Opens successfully
    `READ_CONTROL WRITE_DAC`
    MAXIMUM_ALLOWED Fails with Windows error 32

    Handles were immediately closed. No file contents or security descriptors were changed by this experiment. The existing ACL includes inherited CodexSandboxUsers: Allow ReadAndExecute, Synchronize. Twelve processes using the runtime executable were observed; this does not identify the exact lock holder.

    Relationship to the upstream fix

    These observations match the mechanism addressed by merged PR #51822, commit dd12f892f1b857e5161abd33a2967125b265d550. The installed helper's inclusion of that fix has not been established. This is evidence that the currently installed runtime still fails, not a claim that the fixed code regressed.

    Please confirm which supported desktop/helper release delivers the fix and how to recover protected execution while preserving existing chats and projects. No processes were killed, no manual ACL/security configuration changes were made, and no runtime was deleted. The normal sandbox command did perform its automatic setup refresh.

    Expected: the sandbox initializes and the harmless marker command runs. Actual: setup fails before the requested child command executes. Raw transcripts, credentials, and .sandbox-secrets are not 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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions