Skip to content

Codex Desktop Windows sandbox initialization fails with a locked node_repl.exe #52462

Closed

Description

@gRanid

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

26.1002.52244

What subscription do you have?

Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Prompts that triggered the failure:

I opened another model. Process the selected elements and assign classification codes to them.

Error:
Processing has not started: the command execution environment returns an error: setup refresh had errors even during a simple folder check. I did not connect to Tekla, and I did not modify any codes.

What steps can reproduce the bug?

Bug: Windows sandbox initialization fails because Codex’s own node_repl.exe is locked

Codex Desktop cannot execute commands through its normal Windows sandbox. Even a read-only command fails before PowerShell starts:

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

The sandbox log identifies the underlying failure:

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:
The process cannot access the file because it is being used by another process.
(os error 32)

Minimal reproduction

  1. Fully close Codex Desktop and confirm all its node_repl.exe processes have exited.
  2. Reopen Codex Desktop.
  3. Ask the agent to execute this command using the normal sandbox, without escalation:
Get-Location

Equivalent agent tool call:

await tools.exec_command({
  cmd: "Get-Location",
  sandbox_permissions: "use_default",
  max_output_tokens: 300
});

This reproduces the failure on the affected installation. Running Get-Location in an ordinary external PowerShell window does not exercise the failing Codex sandbox initialization.

Expected: The command returns the current working directory.

Actual: Sandbox initialization fails with setup refresh had errors; the command never executes.

Diagnostic findings

  • Closing Codex terminates its node_repl.exe processes.
  • Reopening Codex starts four new instances, and the failure returns.
  • Disabling remote control did not resolve the issue.
  • Computer Use and Unified Computer Use plugins are not installed, according to the user.
  • Separately approved commands outside the sandbox succeed.
  • Remote access from another PC was configured the previous day. GitHub copying is also enabled. Neither has been established as the cause.

The evidence suggests a conflict between runtime startup and sandbox permission validation. The exact locking handle and underlying implementation defect have not been identified.

Session and usage information

  • Reproduction timestamp: October 9, 2026, 11:08, UTC+3.
  • Working directory: D:\AI_GPT_WORKFOLDER.
  • Session/task ID: unavailable through the diagnostic outputs collected; please correlate using the timestamp and attached log.
  • Account usage at report preparation: 44% of the 5-hour allowance and 42% of the weekly allowance consumed.
  • Ordinary usage is allowed; no active rate-limit block is reported.
  • Exact token count/token limit: unavailable. The percentages above represent account allowances, not token counts.
  • Context-window size and consumption: unavailable.

Log attachment

C:\Users\User\.codex\.sandbox\sandbox.2026-10-09.log

Please investigate the node_repl.exe sharing violation during sandbox setup and provide a supported fix that preserves existing tasks and settings.

What is the expected behavior?

The sandbox initializes successfully and Get-Location returns the current directory.

Additional information

sandbox.2026-10-09.log

Activity

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

    @gRanid
    Author

    My log contains the same error and the same runtime/helper identifiers as in #52094.

  4. gRanid commented on Oct 9, 2026

    @gRanid
    Author

    A partial solution to the problem is here #51862 (comment)

  5. cc-bb-aa commented on Oct 9, 2026

    @cc-bb-aa

    A locked node_repl.exe usually means a previous process never exited or antivirus is holding the file. Killing stray node processes, or excluding the Codex install dir from real time scanning, unblocks init. The sandbox failing closed is correct behavior, but the error should name the lock holder.

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