Skip to content

Windows Codex app: bundled node.exe fails with Access is denied, breaking Node REPL and Browser Use plugin #19271

@debnathaniruddha89-design

Description

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

26.422.2339.0

What subscription do you have?

ChatGPT account, Codex desktop app on Windows

What platform is your computer?

Windows x64

What issue are you seeing?

TLDR-On Windows, Codex installs as an MSIX/Store-style app under C:\Program Files\WindowsApps. The bundled Node runtime cannot be executed, which causes node_repl and the Browser Use / in-app browser plugin to fail.

The Codex Windows app installs under:

C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0\app

The bundled Node runtime cannot be executed:

C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0\app\resources\node.exe

Running it directly from PowerShell fails with:

Program 'node.exe' failed to run: Access is denied

The Node REPL also fails with:

failed to execute Node: Access is denied. (os error 5)

This breaks the Browser Use / in-app browser plugin, because it depends on the Node REPL runtime.

What steps can reproduce the bug?

  1. Install Codex on Windows.
  2. Open a Codex thread.
  3. Try to use Browser Use / in-app browser automation, or run Node REPL.
  4. It fails with Access is denied.

Direct PowerShell test:

& 'C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0\app\resources\node.exe' --version

Output-Program 'node.exe' failed to run: Access is denied

### What is the expected behavior?

Codexs bundled node.exe should execute successfully, allowing node_repl and Browser Use / in-app browser automation to work.

### Additional information

Troubleshooting tried
Uninstalled McAfee
Ransomware protection page became accessible afterward
Reinstalled Codex
Tried launching Codex as administrator
Tried giving Codex full permissions
Verified Browser Use plugin file exists:
C:\Users\Aniruddha Debnath.codex\plugins\cache\openai-bundled\browser-use\0.1.0-alpha1\scripts\browser-client.mjs
Active Codex process still runs from WindowsApps
Bundled node.exe remains blocked with Access is denied

Edit: for the codex team, this is how 5.5 xhigh diagnosed the situation, i am a nontechnical user, i have zero idea about how all of this works--

Copy-paste this into the GitHub issue:

### Summary

On Windows, Codexs in-app browser / Browser Use runtime failed with:

```text
failed to execute Node: Access is denied. (os error 5)
This was reproducible even with a minimal Node REPL call, so the issue is not specific to Browser Use navigation.

Environment
OS: Windows
Codex app install path involved:
C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2437.0_x64__2p2nqsd0c76g0\app\resources
Affected packaged helpers:
node.exe
rg.exe
What failed
node resolved to:

C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2437.0_x64__2p2nqsd0c76g0\app\resources\node.exe
Running:

node --version
failed with:

Program 'node.exe' failed to run: Access is denied
The Node REPL MCP also failed with:

failed to execute Node: Access is denied. (os error 5)
rg.exe from the same app resources directory showed the same access-denied behavior.

What worked
The user-cache Codex runtime copy of Node worked:

C:\Users\Aniruddha Debnath\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe
Running that directly returned:

v24.14.0
Copying the working node.exe and rg.exe into the earlier per-session PATH directory:

C:\Users\Aniruddha Debnath\.codex\tmp\arg0\codex-arg0ZQRaO8\
made these commands work again:

node --version
rg --version
After that, the Node REPL MCP worked and the in-app browser opened successfully.

Suspected root cause
Codex is resolving helper binaries from the protected WindowsApps package directory. In this environment, Windows denies execution of those packaged helper binaries from spawned tool/MCP contexts.

Suggested fix
Please avoid resolving helper binaries like node.exe / rg.exe from the protected WindowsApps app resources path when spawning Codex tool runtimes.

Prefer an unpacked per-user executable runtime path, for example:

%USERPROFILE%\.cache\codex-runtimes\codex-primary-runtime\dependencies\node\bin\node.exe
Or copy/unpack helper executables into a per-user/per-session executable cache and prepend that directory to PATH before starting MCP/tool subprocesses.

The workaround confirms the browser runtime itself is fine once Node can execute. The permanent fix should be in Codexs helper binary resolution / PATH setup on Windows, not in Browser Use itself.


This should give maintainers the important bits: exact error, exact bad path, exact working path, workaround, and the likely product-side fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingskillsIssues related to skillswindows-osIssues related to Codex on Windows systems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions