Windows Codex app: Browser Use external navigation fails because nodeRepl.fetch cannot start codex app-server
Initial repro on 26.422.1952.0
Environment:
- Windows
- Codex package:
OpenAI.Codex_26.422.1952.0_x64__2p2nqsd0c76g0 - Browser Use plugin:
openai-bundled/browser-use/0.1.0-alpha1 - In-app browser open, current URL
about:blank/ not navigated
Problem:
Browser Use can connect to the in-app browser and see the blank tab, but external navigation fails.
Working:
agent.browser.nameSession(...)agent.browser.tabs.list()agent.browser.tabs.selected()tab.url()returnsabout:blank
Failing:
nodeRepl.fetch("https://chatgpt.com/backend-api/aura/site_status?site_url=https%3A%2F%2Fmk48.io")tab.goto("https://mk48.io/")
Error:
failed to start codex app-server: The system cannot find the path specified. (os error 3)
Notes:
I fully quit/reopened Codex and retried. The same error persisted.
Update after upgrading to 26.422.2339.0
I upgraded Codex on the same Windows machine and checked the local package/runtime state.
Package check:
Get-AppxPackage OpenAI.Codex | Select Name, Version, PackageFullName, InstallLocation
Result:
Version: 26.422.2339.0
PackageFullName: OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0
InstallLocation: C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0
Direct bundled Node execution fails:
& 'C:\Program Files\WindowsApps\OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0\app\resources\node.exe' --version
Result:
Program 'node.exe' failed to run: Access is denied
This makes #19271 look like the likely underlying Windows/MSIX runtime issue behind this Browser Use failure. Browser Use external navigation and nodeRepl.fetch depend on the Node REPL / app-server path, so if the bundled node.exe cannot be launched from the WindowsApps package, the downstream nodeRepl.fetch, tab.goto(...), DOM snapshot, and screenshot failures in this issue make sense.
13 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce this on Windows with an additional datapoint: the in-app browser page itself appears to load correctly, but Codex-side Browser Use inspection/control still fails.
Environment:
Get-AppxPackage OpenAI.Codexreports version26.422.1952.0C:\Program Files\WindowsApps\OpenAI.Codex_26.422.1952.0_x64__2p2nqsd0c76g0openai-bundled/browser-use/0.1.0-alpha1https://cloud.comfy.org/What works:
agent.browser.nameSession(...)succeeds.agent.browser.tabs.new()/ selected-tab access succeeds.browser sidebar console messageentries fromhttps://cloud.comfy.org/assets/vendor-sentry-...js, including lots of Comfy node registration messages such asbeforeRegisterNodeDef called for: ..., which strongly suggests the page itself is loaded and running.What fails:
failed to start codex app-server: The system cannot find the path specified. (os error 3)Related local symptom on the same machine:
Get-Command rgresolves to bundledC:\Program Files\WindowsApps\OpenAI.Codex_26.422.1952.0_x64__2p2nqsd0c76g0\app\resources\rg.exeAccess is deniedRelevant desktop log evidence includes:
Initializing app-server transportStarting app-server connection hostId=local transport=stdiobrowser-use native pipe listeningIAB_LIFECYCLE iab createTab mapped page to tabbrowser sidebar console messageentries fromcloud.comfy.orgSo this looks like:
rg.exeissue.Possibly related issues: #14925, #15148, #13542, #13965, #17901.
I also faced with this and my Codex researched the problem and adds this:
Additional confirmation from another Windows repro on the same problem family.
I ran the exact isolation checks in the Browser Use runtime against the current in-app browser tab.
Environment:
Get-AppxPackage OpenAI.Codexversion:26.422.1952.0iabbackend)Current selected tab at the time of repro:
https://cloud.comfy.org/*Unsaved Workflow - ComfyUIWorking:
agent.browser.tabs.list()agent.browser.tabs.selected()tab.url()tab.title()globalThis.fetch("https://example.com/")returns 200Failing with the same error:
nodeRepl.fetch("https://chatgpt.com/backend-api/aura/site_status?... ")tab.playwright.domSnapshot()tab.cua.get_visible_screenshot()tab.goto(...)on a temporary tabAll failing calls return:
failed to start codex app-server: The system cannot find the path specified. (os error 3)This seems like the strongest isolation yet:
*Unsaved Workflow - ComfyUI),nodeRepl.fetchand deeper Browser Use actions fail.So this really does look specific to the
nodeRepl.fetch/ Browser Use preflight / app-server integration path, not to page load itself and not to the destination site.Additional Windows repro on the same Browser Use / app-server failure family.
Environment:
OpenAI.Codex_26.422.2339.0_x64__2p2nqsd0c76g0openai-bundled/browser-use/0.1.0-alpha1codex-cli 0.118.0Working:
iabbackend.agent.browser.tabs.list()can see the in-app browser tab.agent.browser.tabs.selected()binds the current tab.about:blank,tab.playwright.domSnapshot()succeeds.about:blank,tab.cua.get_visible_screenshot()succeeds.Failing:
tab.goto("https://www.naver.com/")fails.nodeRepl.fetch("https://chatgpt.com/backend-api/aura/site_status?site_url=https%3A%2F%2Fwww.naver.com")fails.Error:
Additional datapoint:
#19314
I was able to reproduce and work around this on Windows with Codex 26.422.3464.0.
The failure was not Browser Use itself. Browser Use initialized and could see the IAB tab, but external navigation failed because nodeRepl.fetch could not start/use the Codex app-server.
Root cause in my environment:
Codex helpers existed under the MSIX LocalCache path:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\OpenAI\Codex\bin
but Node REPL / spawned helper paths referred to:
%LOCALAPPDATA%\OpenAI\Codex\bin
That non-MSIX path did not exist, so nodeRepl.fetch failed with:
failed to start codex app-server: The system cannot find the path specified. (os error 3)
Workaround:
Create %LOCALAPPDATA%\OpenAI\Codex\bin and copy the helper binaries from the MSIX LocalCache bin folder:
codex.exe, node.exe, node_repl.exe, rg.exe, codex-command-runner.exe, codex-windows-sandbox-setup.exe.
After that:
nodeRepl.fetch(...) returned 200
Browser Use tab.goto("https://example.com/") worked
domSnapshot and screenshot worked
Suggested product fix:
On Windows/MSIX builds, ensure tool/MCP/runtime helper resolution uses a real per-user executable path, or creates/syncs %LOCALAPPDATA%\OpenAI\Codex\bin before starting node_repl/app-server. Avoid resolving helpers from WindowsApps or from a path that only exists inside MSIX package virtualization.
Thanks, I checked that workaround on my machine.
In my case, both folders already exist:
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\OpenAI\Codex\bin%LOCALAPPDATA%\OpenAI\Codex\binThe expected helper files are present in both places:
codex.exenode.exenode_repl.exerg.execodex-command-runner.execodex-windows-sandbox-setup.exeThe file sizes and timestamps match. Also, the running
node_repl.exeprocesses are already using:%LOCALAPPDATA%\OpenAI\Codex\bin\node_repl.exeBoth of these commands work from PowerShell:
Not sure if this is relevant, but I'll put it here to anyone who might find it useful.
I'm using a third-party provider in Codex. After fixing the issue via the workaround in https://github.com/openai/codex/issues/19423#issuecomment-4317666215, I get this error when the browser plugin is called:
Relevant log:
Codex suggested to run this patch in PowerShell, which worked:
Follow-up from the same Windows repro, with personal/local user paths removed.
Environment:
OpenAI.Codex_26.422.3464.0_x64__2p2nqsd0c76g0openai-bundled/browser-use/0.1.0-alpha1codex-cli 0.125.0-alpha.3v24.14.0Before workaround:
%LOCALAPPDATA%\OpenAI\Codex\binexisted but contained none of the expected helper executables.%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\OpenAI\Codex\bincontained:codex.exenode.exenode_repl.exerg.execodex-command-runner.execodex-windows-sandbox-setup.exeWindowsAppsapp resources path failed with Access denied.nodeRepl.homeDirwas stillnull.nodeRepl.fetch("https://chatgpt.com/backend-api/aura/site_status?...")failed with:failed to start codex app-server: 지정된 파일을 찾을 수 없습니다. (os error 2)Workaround applied:
%LOCALAPPDATA%\OpenAI\Codex\bin.After workaround:
%LOCALAPPDATA%\OpenAI\Codex\bin\codex.exe --versionreturnedcodex-cli 0.125.0-alpha.3.%LOCALAPPDATA%\OpenAI\Codex\bin\codex.exe app-server --helpworked.%LOCALAPPDATA%\OpenAI\Codex\bin\node.exe --versionreturnedv24.14.0.%LOCALAPPDATA%\OpenAI\Codex\bin\rg.exe --versionworked.nodeRepl.fetch("https://chatgpt.com/backend-api/aura/site_status?site_url=https%3A%2F%2Fexample.com")returned HTTP 200.tab.goto("https://example.com/")worked.tab.playwright.domSnapshot()worked.tab.cua.get_visible_screenshot()worked.tab.goto("https://www.naver.com/")worked.input[name="query"]worked and opened the autocomplete/recent-search UI.So on this machine, the missing/empty
%LOCALAPPDATA%\OpenAI\Codex\binhelper cache was sufficient to explain theos error 2app-server failure. Copying the helper executables from the MSIX LocalCache restorednodeRepl.fetchand Browser Use navigation/DOM/screenshot/click behavior.Thanks, @vadimsky-ctrl ! That worked!
ehm there is no person named vadimsky in this thread
Scroll up or click here https://github.com/openai/codex/issues/19187#issuecomment-4319153880