You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Terminal CLI @Browser fails with "The browser access host is unavailable" after desktop app update 26.1023.6123.0 (Windows 11, Brave) #57641
What terminal emulator and version are you using (if applicable)?
pwsh
Codex doctor report
not available
What issue are you seeing?
Regression on Windows 11 with Brave, affecting browser access from the terminal CLI. Desktop app chats still attach to Brave tabs successfully. Possibly related to #56873.
Terminal CLI @Browser worked on 27 October 2026 with:
CLI: 0.164.0
Desktop app: 26.1021.3705.0
Bundled plugins: 26.1021.31345
It stopped working on 28 October, after the desktop app auto-updated to 26.1023.6123.0 and bundled plugins updated to 26.1023.50603.
Running @Browser list my open Brave tabs from the terminal now fails with:
The browser access host is unavailable
The failure occurs in browser-service.mjs. The runtime environment has BROWSER_USE_ACCESS_EXECUTOR_ID set, but both BROWSER_USE_ACCESS_PIPE_PATH and BROWSER_USE_ACCESS_VERIFYING_IDENTITY are missing. This appears to leave the CLI attempting to use the browser access host without the required connection information.
From the terminal CLI, run @Browser list my open Brave tabs.
It fails with The browser access host is unavailable.
Tried, none restored terminal browser access:
Rolling the CLI back to 0.164.0
Fully uninstalling and reinstalling both the desktop app and CLI
Starting the CLI with --no-daemon
Overriding env_vars
What is the expected behavior?
Terminal CLI @Browser attaches to Brave tabs, as it did before the update and as desktop app chats still do.
Additional information
The same Brave setup continues to work in desktop app chats. Could you investigate whether the app/plugin update changed how browser access host connection information is passed to terminal CLI sessions, and provide a supported recovery procedure?
Reacted by Bazyli Brzóska (Zendesk), Josh Kent, Jeffrey Nieh, JiehoonKwak, Ryo, cporta-supley, Matt Harvey, Samuel Clay, Jackson Miller, Antti Jalomäki and 38 more
Reacted by Musa Bankoğlu, Anton Bogdanovich, Xoel Lopez Barata, ooonea.eth, artemisfowl407, Christian Flamm and Stanislav (Stanley) Modrak
Chrome extension and native messaging manifest checks pass. The extension host runs in interactive Windows Session 1.
The generated unified-computer-use launcher runs Node with --import .../require-browser-access.mjs, followed by @oai/cua-repl/bin/cua-repl.mjs.
That generated import contains process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";.
The manifest declares the executor ID, pipe path, and verifying identity in env_vars, but an ordinary CLI process on this machine inherits none of them. cua.getState() consistently returns an empty browser list and The browser access host is unavailable.
The installed browser service checks whether the executor ID is present (not whether it is nonempty), then requires both the access pipe and verifying identity. This appears to explain why the generated empty executor ID enters access verification with no host connection details. It does not establish the intended authorization policy for standalone CLI clients.
Useful controlled distinction on the affected machine: the same installed Chrome extension and current plugin version work through the bundled Chrome plugin's documented setupBrowserRuntime() interface via the existing node_repl server. We opened a disposable localhost page, typed into its input, clicked its button, verified the changed result, and closed the tab. No browser runtime files or authorization checks were patched. This narrows the difference to the tool launch/context rather than the extension transport or website.
We also inspected a second Windows machine where CLI agents still work: desktop package 26.1021.3705.0, plugins 26.1021.31345. Its generated unified launcher has no require-browser-access.mjs pre-import. This is a version comparison, not a controlled downgrade test.
In the Rust MCP launcher, configured env_vars are already forwarded when present; absent values are omitted. We found no evidence that adding these names to another allowlist would create the missing host address, verifier, or session registration.
Could maintainers clarify the intended standalone-CLI authorization bootstrap for this generated plugin? Is a desktop-managed thread/session handoff required, or should the app expose an authenticated browser-host attachment mechanism for CLI sessions? We are looking for a mitigation that preserves the new authorization check rather than stripping the import, fabricating connection identity, or changing browser security settings.
Native application discovery succeeds and lists running Microsoft Edge and Vivaldi windows.
Browser discovery returns browsers: [] and Browsers: Error: The browser access host is unavailable.
Run await cua.getBrowser({ id: "edge" });.
It returns The browser access host is unavailable.
The installed plugin launcher pre-imports require-browser-access.mjs, which sets an absent executor ID to an empty string. Its MCP configuration requests the executor ID, access pipe path, and verifying identity through env_vars.
This confirms the failure in another host application. It does not establish that T3 drops these variables or that environment forwarding alone would restore authorized access.
Could maintainers clarify the supported browser-access bootstrap for third-party codex app-server hosts?
Additional Windows CLI reproduction after aligning both client and managed app-server versions:
User interface: Codex CLI in PowerShell / Windows Terminal.
CLI, installed managed daemon, and running app-server all report 0.165.0-alpha.1.2 after codex app-server daemon update --from-cli --yes was run outside the Codex tool session.
A fresh await cua.getState() initializes successfully and enumerates native applications, but returns browsers: [] and Browsers: Error: The browser access host is unavailable.
The user reports that a separate desktop Codex chat successfully read the URL and page title of the public JustWatch Japan homepage. The desktop route was not independently inspected from the CLI.
This rules out client/daemon version mismatch as the sole explanation in this reproduction. We have not proven where the browser host metadata is lost. No plugin launchers, environment values, browser permissions, or authorization checks were modified to bypass this error.
What is the supported bootstrap or attachment procedure for browser access from a standalone CLI session with this plugin? Is an authenticated host handoff required, and if so, how should a CLI user perform it while keeping the interaction in the CLI?
Also affects us on macOS (Apple silicon). Desktop app 26.1023.x, bundled plugins 26.1023.50603, Codex CLI / app-server 0.165.0. It fails in both codex (TUI/exec) and in an app-server host (T3 Code, which spawns its own codex app-server over stdio). Inside the ChatGPT desktop app it still works.
Findings:
It's the preload. The plugin's cua_repl server starts with --import …/require-browser-access.mjs. That file only does process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "". browser-service.mjs skips the browser-access check only when that variable is null/undefined. Setting it to "" forces the check, which needs BROWSER_USE_ACCESS_PIPE_PATH / BROWSER_USE_ACCESS_VERIFYING_IDENTITY. Only processes the desktop app spawns get those, so every other host fails with "The browser access host is unavailable".
Removing the import works. We ran the same server command/env without the --import pair, with env_vars still forwarding the three BROWSER_USE_ACCESS_* variables. Both the CLI and the app-server host could then list and drive Chrome again, and desktop-app sessions kept working.
You can't fix this in ~/.codex/config.toml. A user-level [mcp_servers.cua_repl] override does take precedence over the plugin's registration. But on every launch the desktop app sends config/batchWrite with mcp_servers.cua_repl → null (mergeStrategy replace), which deletes it. An override in a higher layer than the user file survives, for example /etc/codex/config.toml or a managed-config fragment.
If the access check is meant to be strict, it would help to have a supported way for non-desktop hosts (CLI, app-server clients) to get the access pipe/identity. Failing that, the check could be skipped when the desktop app isn't the parent. Either way, the app should stop deleting user-level cua_repl overrides.
Desktop and standalone CLI share the same CODEX_HOME.
Observed behavior
The desktop session successfully controlled Chrome through the extension: opened Google, typed a search query into the page's search field, submitted it, and verified the results.
In the independent CLI, the supplied mcp__cua_repl.js tool starts but await cua.getBrowser({ id: "chrome" }); fails with:
The browser access host is unavailable
cua.getState() likewise returns:
{
"browsers": [],
"errors": ["Browsers: Error: The browser access host is unavailable"]
}
The user reproduced this in a real model turn using the stock standalone CLI launched directly from macOS, outside the original third-party host/wrapper. Restarting the desktop app and host, and upgrading/restarting the CLI, did not resolve it. The standalone reproductions were performed and reported from the CLI; the working desktop process/configuration comparison below was independently inspected from the desktop session.
Desktop-versus-CLI comparison
Both use the same app-bundled Node, the same --import .../require-browser-access.mjs, and the same @oai/cua-repl/bin/cua-repl.mjs, from the same generated plugin configuration.
Both currently running desktop-owned cua_repl processes inherit nonempty BROWSER_USE_ACCESS_EXECUTOR_ID, BROWSER_USE_ACCESS_PIPE_PATH, and BROWSER_USE_ACCESS_VERIFYING_IDENTITY.
In the failed standalone CLI process, all three were absent from its launch environment.
The shared plugin manifest lists those names in env_vars, but contains no static values for them.
The desktop authorization socket exists, is owned by the current user with mode 0600, and is listened on by the desktop app. Thus a working authorization host exists for the desktop route; the independent CLI lacks its access context.
Read-only implementation observations
The installed desktop code creates the local App Tools authorization service and an Ed25519 signing identity, injects the socket and public verification identity, and tracks session-to-executor mappings. The working MCP processes use the native-browser-plugin executor marker, which the desktop resolves through that session mapping.
The installed browser service checks access before dispatching each browser command. Its request includes executor, session, turn, and nonce; the response is signature-verified. Missing host path or verification identity produces the reported error before Chrome connection. Separately, desktop code writes the launch configuration into the shared plugin cache.
This supports a host/bootstrap or configuration-scope problem, rather than a failed Chrome extension connection in this reproduction. It does not establish whether standalone CLI access is intended to be supported, nor whether manually forwarding environment variables would be sufficient.
Could maintainers clarify the supported authorization bootstrap for standalone CLI/app-server clients? If this MCP is desktop-only, it should be scoped accordingly or return an actionable unsupported-host diagnostic when discovered by an independent CLI. If standalone CLI access is supported, please provide the authenticated host/session attachment procedure.
No plugin files, authorization checks, or browser security settings were changed during these checks. No tokens, environment values, socket paths, account/session identifiers, private URLs, raw logs, or application source dumps are included. No earlier working CLI version or controlled downgrade was established for this macOS case.
Reproduced from the Codex extension in Visual Studio Code on Windows with Brave (not the terminal CLI). Sharing in case it helps narrow things down; no reply needed.
Browser: Brave, with the ChatGPT extension installed and enabled
Browser permissions: default navigation/downloads set to "Always allow", full CDP access enabled
Symptom
Asking Codex from VS Code to use the browser fails with:
The browser access host is unavailable
[Desktop app chats can still reach Brave: yes / no – à compléter]
What looks healthy locally
com.openai.codexextension.json exists in %LOCALAPPDATA%\OpenAI\extension\, points to an existing extension-host.exe, and lists both ChatGPT extension IDs in allowed_origins.
chrome-native-hosts-v2.json has a single entry for app version 26.1023.51421, and the nodePath runtime folder it references exists.
~/.codex/browser/config.toml is as expected (approval_mode = "never_ask", full_cdp_access_enabled = true).
One observation (not a root cause)
In browser-service.mjs (both the chrome and browser plugins), this error is thrown when either of these environment variables is missing from the process running the session:
BROWSER_USE_ACCESS_PIPE_PATH
BROWSER_USE_ACCESS_VERIFYING_IDENTITY
So the failure seems to happen before any connection to the extension or native host is attempted. That would be consistent with the other reports in this thread, where a session started outside the Desktop app doesn't inherit the connection variables. I haven't confirmed that this is what happens with the VS Code extension; I only read the plugin scripts and did not change any files or settings.
Additional Windows/Chrome reproduction on October 29, 2026.
Browser automation worked October 28, then failed after a desktop/runtime update with “The browser access host is unavailable” and an empty browser inventory.
Desktop runtime: 26.1023.51421; Windows package: 26.1023.6621.0. Chrome native-host registration checks pass. Desktop logs show browser/native listeners starting successfully. Browser/app restarts, a fresh chat, automation reset and a full PC reboot did not restore access.
Additional controlled macOS reproduction with bundled plugin 26.1023.51421.
Environment: Apple silicon, macOS 26.7.2; ChatGPT desktop app 26.1023.51421 (build 22530); T3 Code 0.1.4-nightly.20261028.3824.
A desktop Codex session successfully opened a public page through cua.createBrowserTab("chrome", ...) on the same machine today. This was verified from its actual tool result, not inferred from Chrome being open.
Standalone CLI 0.164.0 and 0.165.0 both fail on await cua.getBrowser({ id: "chrome" }); with The browser access host is unavailable. We repeated both tests with --no-daemon; both still fail. The installed plugin was held constant, and no global CLI downgrade was performed.
The T3-hosted session fails with the same error. Native desktop control through cua.getApp("com.google.Chrome") works, including navigation and screenshots.
Working desktop-owned browser runtimes have nonempty BROWSER_USE_ACCESS_EXECUTOR_ID, BROWSER_USE_ACCESS_PIPE_PATH, and BROWSER_USE_ACCESS_VERIFYING_IDENTITY. The inspected T3 browser runtimes have an empty executor ID and absent pipe/verifying-identity variables.
The installed plugin manifest preloads require-browser-access.mjs, which sets process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "". The browser service treats the empty string as an enabled access check, then throws when the pipe or verifying identity is absent, before attempting the Chrome connection.
This reproduces the problem with the newer plugin and shows that reverting only CLI 0.165.0 to 0.164.0 does not resolve it with this plugin. It does not prove that T3 drops environment variables or establish the first affected plugin version.
Is there a supported authorization bootstrap/attachment mechanism for standalone CLI and third-party app-server hosts? No authorization checks, plugin files, or browser permissions were changed during these tests.
Additional cross-host macOS MCP reproduction, to distinguish target-host authorization from a local standalone-CLI launch.
The task executes on Mac A (Desktop / bundled plugin 26.1023.51421). An authenticated SSH stdio MCP relay launches the unmodified official CUA on Mac B (bundled plugin 26.1023.50603), preserving its official command, arguments, pre-import and caller metadata.
From that A-hosted task, await cua.getState() returns an empty browser inventory and The browser access host is unavailable.
The same B installation works through a B-local Desktop task: a disposable page was read, its link clicked, the resulting page verified and the test tab closed while preserving all pre-existing tabs.
Presence-only inspection of the actual B processes shows the Desktop-managed runtime has all three BROWSER_USE_ACCESS_* launch variables, while the SSH-launched runtime has none. No values are included here.
We corrected a separate custom argv-validation bug and an unsafe custom SSH-session eviction policy. Those corrections preserve the official pre-import / access checks and do not supply the missing target-Desktop authorization. The direct cross-host browser call still fails.
Please include this cross-host case in the supported-bootstrap guidance: can the target Desktop authorize the true current session/turn of an MCP caller whose task remains on another host, without moving that task to the target host? If so, what supported target-Desktop registration/attachment interface should the relay use? If that direct mode is unsupported, an explicit boundary would help distinguish a missing setup step from a removed capability.
We have not removed the pre-import, unset authorization variables, borrowed another task's context, or exported the generic Desktop authorization socket. No credentials, socket paths, task IDs, hostnames, IPs, private URLs, raw logs or application-source dumps are included.
Confirmed on Windows 10 Enterprise 22H2 (x64, build 19045.6456), with T3 Code 0.1.8-nightly.20261108.4380, Codex CLI 0.167.0, and Chrome / unified computer-use plugins 26.1103.32239.
In the same T3 conversation, cua_repl failed with The browser access host is unavailable, while the previously suggested setupBrowserRuntime() entry point from the installed official Chrome client worked through the existing node_repl. Navigation, link clicks, screenshots, tab grouping, and the visible Codex cursor were verified.
No plugin/runtime files, access checks, browser permissions, or BROWSER_USE_ACCESS_* variables were changed. This confirms the existing workaround on this Windows/T3/version combination; the original cua_repl failure remains.
Google Chrome: 154.0.8037.57; ChatGPT extension: 1.26.1102.11740, installed and enabled.
Reproduction and working control
In the terminal-origin conversation, await cua.getState(); returns an empty browser inventory with Browsers: Error: The browser access host is unavailable. Browser selection fails with the same error before tab discovery. Starting the desktop app and resetting the CUA REPL did not restore this conversation's browser access.
A fresh desktop fork on the same installation successfully discovered extension-backed Chrome, opened a disposable example.com tab, read its page, and closed it while preserving the existing tabs. This was verified from the actual tool results. The original terminal conversation still fails; desktop success does not resolve the CLI workflow.
The bundled extension-installation and native-host-manifest diagnostics pass.
Immediate failure condition
Presence-only inspection of the actual failing browser worker found:
Variable
State
BROWSER_USE_ACCESS_EXECUTOR_ID
Present but empty
BROWSER_USE_ACCESS_PIPE_PATH
Absent
BROWSER_USE_ACCESS_VERIFYING_IDENTITY
Absent
The generated launcher preloads require-browser-access.mjs, which sets process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";. The installed browser service enters access verification for a present executor variable, including an empty string, then throws this exact error when the pipe or verifying identity is missing, before connecting to the browser. Listing these names in env_vars does not supply the missing context.
This establishes the immediate failure condition here, not the introducing release or intended CLI support policy. No authorization checks were disabled and no working desktop authorization values were copied into the CLI.
Could maintainers provide a supported authenticated bootstrap for standalone CLI/shared-daemon sessions, or identify a fixed release? The desired result is extension-backed Chrome access from the terminal conversation with the existing authorization checks preserved.
🤖 Written by Claude (Fable 5.1) on behalf of the issue author. Everything below was run and verified on the author's machine today.
Author update: a fix that keeps cua_repl working, survives the desktop app's config rewrite, and leaves desktop chats untouched
Environment: Windows 11 Home 10.0.26300, Brave with the Codex extension, npm Codex CLI 0.167.0, desktop package OpenAI.Codex 26.1103.7773.0, bundled plugins 26.1103.60933. Still broken out of the box on this build, fixed with the steps below.
Verified result: a fresh codex exec from PowerShell used the normal cua_repl tool to open https://example.com in Brave, read the title (Example Domain), and close the tab. Desktop app chats still work as before.
Why this variant
The thread already has two workarounds: removing the --import pair / overriding [mcp_servers.cua_repl] in config.toml (@bbrzoska, @JJLiebig), and bypassing cua_repl entirely by calling setupBrowserRuntime() from node_repl (@andrew-at-v, @BC-0217, @astrovm). Both work, but:
the config.toml override is deleted on every desktop launch by the app's config/batchWrite that sets mcp_servers.cua_repl to null (as @bbrzoska noted), and
the node_repl route means the stock browser tool and skills still fail, so the model has to be taught a side door every session.
Instead, edit the preload itself so it only turns the access check on when the desktop app actually supplied an access host. The desktop app sets BROWSER_USE_ACCESS_PIPE_PATH and BROWSER_USE_ACCESS_VERIFYING_IDENTITY on the processes it spawns, so for those the file behaves exactly like upstream. Any other host (terminal CLI, codex exec, T3 Code, VS Code extension) gets the pre-26.1023 behaviour where the executor ID is left undefined and the service skips verification. Nothing in config.toml changes, so the app cannot undo it at startup.
Steps (Windows paths; same file and edit on macOS/Linux under ~/.codex/plugins/cache/openai-bundled/unified-computer-use/<version>/)
Back up and replace %USERPROFILE%\.codex\plugins\cache\openai-bundled\unified-computer-use\<version>\require-browser-access.mjs. Upstream it is the single line process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";. New content:
// Workaround for openai/codex#57641: only opt into browser-access verification// when the desktop app actually supplied the access host.if(process.env.BROWSER_USE_ACCESS_PIPE_PATH&&process.env.BROWSER_USE_ACCESS_VERIFYING_IDENTITY){process.env.BROWSER_USE_ACCESS_EXECUTOR_ID??="";}
Kill the stale cua_repl. The CLI's managed app-server daemon keeps one cua_repl Node process alive across sessions, and it was launched with the old preload. js_reset does not relaunch it, so a new codex session will still fail until it is gone. The daemon respawns it on demand with the new file:
Start a new codex session and ask it to open a page in your browser.
The patched file lives in the version-specific plugin cache folder, so the next app/plugin update replaces it. The script below re-applies it (and -Revert restores the .orig backup):
fix-codex-cli-browser-access.ps1
# Re-applies the terminal-CLI browser-use fix for openai/codex issue #57641.# Usage: pwsh -File "$env:USERPROFILE\.codex\fix-codex-cli-browser-access.ps1"# add -Revert to put the original files back.param([switch]$Revert)
$root=Join-Path$env:USERPROFILE'.codex\plugins\cache\openai-bundled\unified-computer-use'if (-not (Test-Path$root)) { Write-Host"No unified-computer-use plugin found at $root"; exit1 }
$patched=@'// Patched locally to work around openai/codex issue #57641 (terminal CLI browser use).// Original backed up next to this file as require-browser-access.mjs.orig.if (process.env.BROWSER_USE_ACCESS_PIPE_PATH && process.env.BROWSER_USE_ACCESS_VERIFYING_IDENTITY) { process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";}'@Get-ChildItem$root-Directory |ForEach-Object {
$file=Join-Path$_.FullName'require-browser-access.mjs'$orig="$file.orig"if (-not (Test-Path$file)) { return }
if ($Revert) {
if (Test-Path$orig) { Copy-Item$orig$file-Force; Write-Host"Reverted $file" }
else { Write-Host"No backup for $file, left as is" }
return
}
if (-not (Test-Path$orig)) { Copy-Item$file$orig; Write-Host"Backed up $orig" }
$current=Get-Content$file-Raw
if ($current-match'issue #57641') { Write-Host"Already patched $file"; return }
Set-Content-Path $file-Value $patched-Encoding utf8 -NoNewline
Write-Host"Patched $file"
}
Write-Host"Done. Start a new codex session in the terminal for it to take effect."
Second gotcha for Brave (and Edge/Vivaldi/Opera) users
Once past the access gate, the model's first instinct is cua.getBrowser({ id: "chrome" }), and on Brave that fails with:
Browser is not available: chrome
The browser selector in @oai/browser-desktop matches a family name (chrome, brave, edge, ...) only against an extension-backed browser whose reported family is the same, and Brave reports brave. Working selectors here: { id: "brave" }, { id: "extension" }, or { url: "<target url>" }. The bundled chrome plugin's skills/ folder is empty in the plugin cache on this build, so the model gets no hint about this. Putting this in ~/.codex/AGENTS.md fixed it for every session:
## Browser use from the terminal- The external browser on this PC is Brave. Select it with `await cua.getBrowser({ id: "brave" })`
(or `{ id: "extension" }` or `{ url: "<target url>" }`). Do not use `{ id: "chrome" }`;
it fails with "Browser is not available: chrome".
- Then open pages with `await cua.createBrowserTab(browser.browserId, url)` and read them with
the tab API (`getAXState`, `getScreenshot`, `listTabs`).
Two things that do not help, to save others the time
Editing browser-service.mjs under plugins\cache\openai-bundled\browser\ or ...\chrome\ does nothing for cua_repl. It loads @oai/browser-desktop from the app install (...\app\resources\cua_node\bin\node_modules\@oai\browser-desktop\scripts\browser-service.mjs, read-only under WindowsApps). The cache copies are only used by the node_repl route.
Restarting Brave, the desktop app, or reinstalling the CLI leaves the daemon-owned cua_repl process (and its old environment) alive. Step 2 above is what actually matters.
Trade-off and request
This is explicitly a workaround: sessions not spawned by the desktop app skip the browser-access verification, which is the behaviour every build before 26.1023 had. The CLI's own approval and sandbox settings still apply. It would be great to get either (a) a supported way for standalone CLI / app-server hosts to obtain the access pipe and verifying identity, or (b) the preload shipped with this conditional so that hosts without an access host fall back to the old behaviour instead of a hard failure. Happy to test a build.
macOS 0.167.1 reproduction and proposed bootstrap fix
Additional evidence for #57641, checked November 11, 2026.
Environment: Codex CLI and managed daemon 0.167.1; desktop/runtime
26.1106.51428 (build 26605); ChatGPT Chrome extension 1.26.1102.11740.
Extension automation works in the desktop app and fails in the standalone CLI.
Both use API-key authentication according to the user, so auth mode alone does
not explain this difference. This failure is distinct from the older unsupported Codex auth method: apikey report in #45317.
New launcher detail
On this macOS build, the generated cua_repl MCP configuration launches /bin/sh with this command before the bundled Node REPL:
Consequently, modifying only require-browser-access.mjs does not change this
launch path. The shell wrapper itself turns an absent executor variable into an
empty string.
An isolated reproduction ran this installed wrapper with a substitute child
that reported only environment presence. It did not start CUA, connect to a
socket, or touch Chrome:
Input to launcher
Executor
Host pipe
Verifying identity
No browser-host context
empty
absent
absent
Synthetic complete-context control
nonempty
nonempty
nonempty
Earlier presence-only inspection of the actual CLI tool process found the host
pipe and verifying identity absent; the successful desktop tool process had
them. The installed browser client activates verification for a non-null
executor variable, including an empty string, and throws the observed error
when the host pipe or verifying identity is missing. Failure occurs before
browser discovery.
Proposed fix
Bootstrap browser access in the thread-owning app server before launching the
browser MCP worker. Provide an authenticated registration path from standalone
CLI/shared-daemon sessions to the desktop-owned browser host, or move the common
host implementation into a shared component used by both launch paths.
The registration should return a complete, thread-scoped binding (executor,
host endpoint, verifying key, and a host/authorization generation). Project that
binding into the effective MCP configuration for the selected browser plugin.
Reacquire it and replace the affected worker when the host restarts or the
authorization generation changes. It should work with both the shared daemon
and --no-daemon, and preserve API-key behavior where browser access is allowed.
This also needs a corresponding desktop/native-host change on macOS: the app's
native pipe authorizes socket peers, and the host tracks session-to-executor
bindings. A CLI-only environment-forwarding patch does not establish either
relationship. The registration must authenticate the actual CLI process and
session while preserving account/workspace policy, browser approvals, and
signature/nonce validation.
Potential public-source integration points, inspected at e58bf8f5233b51e7cd1679d947e3028c1ed91b06:
codex-rs/app-server/src/extensions.rs: registration of app-server extensions.
These are proposed integration points, not a tested patch. The desktop browser
host and native peer-authorizer implementation were not found in the public
checkout. Could maintainers identify the intended CLI registration interface,
or confirm that it needs to be added alongside these CLI changes?
Acceptance should cover: new/resumed CLI threads, concurrent threads, host
restart with the daemon still running, account/workspace changes, policy-denied
browser access, and rejected wrong-session/replayed/invalid-signature responses.
The positive end-to-end test should open a disposable tab, read its title, and
close it through the extension from the terminal session.
Validation scope: seven tests of the reproduction harness pass; the
installed-launcher readiness assertion fails as expected. This is evidence of
the bootstrap defect, not a successful repair. No guard was disabled, no
desktop session authorization was copied, and no installed runtime was patched.
Additional Omarchy / Arch Linux reproduction, verified November 12, 2026.
Environment
Omarchy 4.5.0-3, Linux 7.2.15-1-omarchy, x86_64.
Codex CLI 0.167.2.
Desktop package openai-codex-desktop 26.1106.51428-1, packaged by Omarchy.
The generated unified-computer-use plugin in use is 26.1103.60933.
Google Chrome package 157.0.8103.78-1.
Reproduction
In a terminal-origin Codex conversation, invoke the standard mcp__cua_repl.js tool with:
awaitcua.getState();
Repeated calls return:
{"apps":[],"browsers":[],"errors":["Browsers: Error: The browser access host is unavailable"]}
Native computer APIs are disabled in this configuration; the empty apps array is not a separate reported failure.
Verified immediate failure condition
Presence-only inspection of the actual standard-tool node_repl process found:
Variable
State
BROWSER_USE_ACCESS_EXECUTOR_ID
Present, empty
BROWSER_USE_ACCESS_PIPE_PATH
Missing
BROWSER_USE_ACCESS_VERIFYING_IDENTITY
Missing
Its trusted browser service is @oai/browser-desktop/service. The generated MCP launcher uses /bin/sh to export an absent executor ID as an empty string before starting the bundled Node REPL, matching the launcher detail in the November 11 macOS report.
Read-only inspection of the installed service confirms that a non-null executor variable activates verification, and missing host pipe or verifying identity throws this exact error before browser discovery.
Working control and scope
In the same conversation, the existing separate node_repl connection, using the installed official Chrome client and bundled browser service, discovered extension-backed Chrome, listed the open tab, claimed it, and read its accessibility state. That establishes a working extension connection through that alternate route; it does not repair or validate the standard desktop-service route.
No fresh standard-tool test from a desktop-origin conversation was performed. No introducing release or package-specific regression has been established. No plugin files, authorization checks, browser permissions, or browser-host environment variables were modified during this investigation.
Expected: either a supported authenticated bootstrap for terminal-origin sessions, or an actionable unsupported-host diagnostic instead of exposing a browser tool that fails before discovery. Please include Linux/Omarchy in the affected environments for this issue.
Additional Omarchy / Arch Linux reproduction, verified November 12, 2026.
Environment
Omarchy 4.5.0-3, Linux 7.2.15-1-omarchy, x86_64.
Codex CLI 0.167.2.
Desktop package openai-codex-desktop 26.1106.51428-1, packaged by Omarchy.
The generated unified-computer-use plugin in use is 26.1103.60933.
Google Chrome package 157.0.8103.78-1.
Reproduction
In a terminal-origin Codex conversation, invoke the standard mcp__cua_repl.js tool with:
await cua.getState();
Repeated calls return:
{"apps":[],"browsers":[],"errors":["Browsers: Error: The browser access host is unavailable"]}
Native computer APIs are disabled in this configuration; the empty apps array is not a separate reported failure.
Verified immediate failure condition
Presence-only inspection of the actual standard-tool node_repl process found:
Variable State BROWSER_USE_ACCESS_EXECUTOR_ID Present, empty BROWSER_USE_ACCESS_PIPE_PATH Missing BROWSER_USE_ACCESS_VERIFYING_IDENTITY Missing
Its trusted browser service is @oai/browser-desktop/service. The generated MCP launcher uses /bin/sh to export an absent executor ID as an empty string before starting the bundled Node REPL, matching the launcher detail in the November 11 macOS report.
Read-only inspection of the installed service confirms that a non-null executor variable activates verification, and missing host pipe or verifying identity throws this exact error before browser discovery.
Working control and scope
In the same conversation, the existing separate node_repl connection, using the installed official Chrome client and bundled browser service, discovered extension-backed Chrome, listed the open tab, claimed it, and read its accessibility state. That establishes a working extension connection through that alternate route; it does not repair or validate the standard desktop-service route.
No fresh standard-tool test from a desktop-origin conversation was performed. No introducing release or package-specific regression has been established. No plugin files, authorization checks, browser permissions, or browser-host environment variables were modified during this investigation.
Expected: either a supported authenticated bootstrap for terminal-origin sessions, or an actionable unsupported-host diagnostic instead of exposing a browser tool that fails before discovery. Please include Linux/Omarchy in the affected environments for this issue.
Same here; verified November 16, 2026. Codex version 0.169.0. Same Omarchy version Omarchy 4.5.0-3, Linux 7.2.15-1-omarchy, x86_64.
Additional macOS reproduction with an unmodified, OpenAI-signed stable CLI, separating native app access from browser access.
Environment:
ChatGPT desktop: 26.1111.21308, build 27194.
Codex Computer Use helper: 26.1111.1001923.
Official npm Codex: 0.169.0, Apple Silicon; OpenAI signing TeamIdentifier 2DC432GLL2.
The desktop app is running; Chrome is running and its extension is connected. Computer Use in a desktop chat can enumerate browser providers.
Reproduction from an ordinary local terminal:
codex --no-daemon -c 'tui.status_line=[]''Use only Computer Use to list available apps and browsers. Read only; do not change settings or open pages.'
Observed with the official stable CLI:
Native app inventory succeeds: 19 apps.
Browser inventory fails: The browser access host is unavailable.
The same browser failure occurs with the desktop-bundled CLI 0.169.0-alpha.11.1 and from both Terminal and an IDE terminal.
A separate test used a private Unix socket with the official 0.169.0 app-server --listen unix://PATH and a TUI connected through --remote unix://PATH. Native inventory still succeeded; browser inventory still failed. This does not establish browser support for remote TUI clients.
Read-only inspection of the installed launcher and actual worker environment shows:
BROWSER_USE_ACCESS_EXECUTOR_ID is present but empty.
BROWSER_USE_ACCESS_PIPE_PATH and BROWSER_USE_ACCESS_VERIFYING_IDENTITY are absent.
The installed browser service enters its host-access check and throws for the missing pipe/verifying identity before opening a browser connection.
No authorization values were copied from desktop processes. No authorization checks, process identity checks, application signatures, or system permission databases were modified. Restarting and reinstalling did not resolve this official-CLI browser reproduction. Native failure with a separately built custom CLI is a distinct issue and is not required to reproduce this browser failure.
Could a maintainer clarify whether standalone macOS Codex CLI is currently supported for browser Computer Use, and, if so, which supported mechanism should establish its own browser-host authorization and session binding? Is there a fixed signed build or documented configuration for this case?
This report intentionally omits account identifiers, session identifiers, local paths, browser tab titles, credentials, and authorization material.
We reproduced this on macOS with Google Chrome and Codex running as a Zed external agent through @agentclientprotocol/codex-acp 2.8.0.
Leave Chrome and ChatGPT Desktop (26.1111.71704) running. The original ChatGPT Chrome extension is enabled, and the bundled native messaging host check passes.
In a Zed Codex thread, ask the agent to list browsers using the original Computer Use tool. The first call, await cua.listBrowsers(), fails with The browser access host is unavailable, before any tab or website is accessed.
Open the same conversation in ChatGPT Desktop and send the browser request there. On the same Chrome profile, the extension created a named tab group, opened example.com in an inactive tab, and read the page. We checked the selected tabs and window focus before and after. Both were preserved.
We also ran fresh sessions through Zed’s installed ACP adapter with three Codex executables. Browser discovery returned the same error with the adapter’s bundled 0.170.0, the Desktop-bundled 0.169.1, and 0.171.0. A fresh turn on the managed local Codex daemon reproduced it as well.
Is there a supported way for an ACP client to register its own session with the browser access host? The behavior we’re looking for is to send the request in Zed and have that turn control background tabs through the original extension, honoring the existing site permissions.
We reproduced this on macOS with Google Chrome and Codex running as a Zed external agent through @agentclientprotocol/codex-acp 2.8.0.
Leave Chrome and ChatGPT Desktop (26.1111.71704) running. The original ChatGPT Chrome extension is enabled, and the bundled native messaging host check passes.
In a Zed Codex thread, ask the agent to list browsers using the original Computer Use tool. The first call, await cua.listBrowsers(), fails with The browser access host is unavailable, before any tab or website is accessed.
Open the same conversation in ChatGPT Desktop and send the browser request there. On the same Chrome profile, the extension created a named tab group, opened example.com in an inactive tab, and read the page. We checked the selected tabs and window focus before and after. Both were preserved.
We also ran fresh sessions through Zed’s installed ACP adapter with three Codex executables. Browser discovery returned the same error with the adapter’s bundled 0.170.0, the Desktop-bundled 0.169.1, and 0.171.0. A fresh turn on the managed local Codex daemon reproduced it as well.
Is there a supported way for an ACP client to register its own session with the browser access host? The behavior we’re looking for is to send the request in Zed and have that turn control background tabs through the original extension, honoring the existing site permissions.
Running into the exact same The browser access host is unavailable error using PhpStorm 2026.3 (Build #PS-263.7307.215) on MacOS 26.6.2 (25G83) and Codex ACP-adapter v2.8.0 (@agentclientprotocol/codex-acp), ChatGPT Desktop app 26.1117.31558.
Thank you for sharing the node_repl / setupBrowserRuntime() workaround! It worked for me on macOS arm64 with Codex CLI 0.171.0 running inside Orca and the bundled browser plugin 26.1117.31558.
The cua_repl browser inventory still reports The browser access host is unavailable, but the installed Chrome browser client successfully connected to Chrome, opened a page, and read its accessibility tree. This test did not modify plugin files or browser access checks. It confirms the alternative path works in this environment; the original cua_repl issue remains.
Activity
github-actions commentedon Oct 28, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
JJLiebig commentedon Oct 28, 2026
Additional reproduction on Windows 11 with Google Chrome, using the same desktop/plugin versions as this report:
26.1023.6123.0; bundled plugins:26.1023.50603.0.165.0.unified-computer-uselauncher runs Node with--import .../require-browser-access.mjs, followed by@oai/cua-repl/bin/cua-repl.mjs.process.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";.env_vars, but an ordinary CLI process on this machine inherits none of them.cua.getState()consistently returns an empty browser list andThe browser access host is unavailable.The installed browser service checks whether the executor ID is present (not whether it is nonempty), then requires both the access pipe and verifying identity. This appears to explain why the generated empty executor ID enters access verification with no host connection details. It does not establish the intended authorization policy for standalone CLI clients.
Useful controlled distinction on the affected machine: the same installed Chrome extension and current plugin version work through the bundled Chrome plugin's documented
setupBrowserRuntime()interface via the existingnode_replserver. We opened a disposable localhost page, typed into its input, clicked its button, verified the changed result, and closed the tab. No browser runtime files or authorization checks were patched. This narrows the difference to the tool launch/context rather than the extension transport or website.We also inspected a second Windows machine where CLI agents still work: desktop package
26.1021.3705.0, plugins26.1021.31345. Its generated unified launcher has norequire-browser-access.mjspre-import. This is a version comparison, not a controlled downgrade test.In the Rust MCP launcher, configured
env_varsare already forwarded when present; absent values are omitted. We found no evidence that adding these names to another allowlist would create the missing host address, verifier, or session registration.Could maintainers clarify the intended standalone-CLI authorization bootstrap for this generated plugin? Is a desktop-managed thread/session handoff required, or should the app expose an authenticated browser-host attachment mechanism for CLI sessions? We are looking for a mitigation that preserves the new authorization check rather than stripping the import, fabricating connection identity, or changing browser security settings.
sitenzo commentedon Oct 28, 2026
Additional reproduction from a T3 Code-hosted Codex session on Windows.
Environment:
0.1.4-nightly.20261028.382410.0.2630026.1023.50603Reproduction:
await cua.getState();.browsers: []andBrowsers: Error: The browser access host is unavailable.await cua.getBrowser({ id: "edge" });.The browser access host is unavailable.The installed plugin launcher pre-imports
require-browser-access.mjs, which sets an absent executor ID to an empty string. Its MCP configuration requests the executor ID, access pipe path, and verifying identity throughenv_vars.This confirms the failure in another host application. It does not establish that T3 drops these variables or that environment forwarding alone would restore authorized access.
Could maintainers clarify the supported browser-access bootstrap for third-party
codex app-serverhosts?Related T3 discussion: pingdotgg/t3code#26102
No configuration, plugin files, or authorization checks were changed.
Investigated with Codex, model gpt-6.1-sol, via T3 triage.
Macchi009 commentedon Oct 28, 2026
Additional Windows CLI reproduction after aligning both client and managed app-server versions:
0.165.0-alpha.1.2aftercodex app-server daemon update --from-cli --yeswas run outside the Codex tool session.26.1023.50603.await cua.getState()initializes successfully and enumerates native applications, but returnsbrowsers: []andBrowsers: Error: The browser access host is unavailable.This rules out client/daemon version mismatch as the sole explanation in this reproduction. We have not proven where the browser host metadata is lost. No plugin launchers, environment values, browser permissions, or authorization checks were modified to bypass this error.
What is the supported bootstrap or attachment procedure for browser access from a standalone CLI session with this plugin? Is an authenticated host handoff required, and if so, how should a CLI user perform it while keeping the interaction in the CLI?
bbrzoska commentedon Oct 29, 2026
Also affects us on macOS (Apple silicon). Desktop app 26.1023.x, bundled plugins
26.1023.50603, Codex CLI / app-server0.165.0. It fails in bothcodex(TUI/exec) and in an app-server host (T3 Code, which spawns its owncodex app-serverover stdio). Inside the ChatGPT desktop app it still works.Findings:
cua_replserver starts with--import …/require-browser-access.mjs. That file only doesprocess.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "".browser-service.mjsskips the browser-access check only when that variable is null/undefined. Setting it to""forces the check, which needsBROWSER_USE_ACCESS_PIPE_PATH/BROWSER_USE_ACCESS_VERIFYING_IDENTITY. Only processes the desktop app spawns get those, so every other host fails with "The browser access host is unavailable".--importpair, withenv_varsstill forwarding the threeBROWSER_USE_ACCESS_*variables. Both the CLI and the app-server host could then list and drive Chrome again, and desktop-app sessions kept working.~/.codex/config.toml. A user-level[mcp_servers.cua_repl]override does take precedence over the plugin's registration. But on every launch the desktop app sendsconfig/batchWritewithmcp_servers.cua_repl→null(mergeStrategyreplace), which deletes it. An override in a higher layer than the user file survives, for example/etc/codex/config.tomlor a managed-config fragment.If the access check is meant to be strict, it would help to have a supported way for non-desktop hosts (CLI, app-server clients) to get the access pipe/identity. Failing that, the check could be skipped when the desktop app isn't the parent. Either way, the app should stop deleting user-level
cua_reploverrides.Tsutomu-miku commentedon Oct 29, 2026
Additional macOS reproduction with a directly inspected working desktop control (2026-10-29).
Environment
Observed behavior
The desktop session successfully controlled Chrome through the extension: opened Google, typed a search query into the page's search field, submitted it, and verified the results.
In the independent CLI, the supplied
mcp__cua_repl.jstool starts butawait cua.getBrowser({ id: "chrome" });fails with:cua.getState()likewise returns:{ "browsers": [], "errors": ["Browsers: Error: The browser access host is unavailable"] }The user reproduced this in a real model turn using the stock standalone CLI launched directly from macOS, outside the original third-party host/wrapper. Restarting the desktop app and host, and upgrading/restarting the CLI, did not resolve it. The standalone reproductions were performed and reported from the CLI; the working desktop process/configuration comparison below was independently inspected from the desktop session.
Desktop-versus-CLI comparison
--import .../require-browser-access.mjs, and the same@oai/cua-repl/bin/cua-repl.mjs, from the same generated plugin configuration.BROWSER_USE_ACCESS_EXECUTOR_ID,BROWSER_USE_ACCESS_PIPE_PATH, andBROWSER_USE_ACCESS_VERIFYING_IDENTITY.env_vars, but contains no static values for them.Read-only implementation observations
The installed desktop code creates the local App Tools authorization service and an Ed25519 signing identity, injects the socket and public verification identity, and tracks session-to-executor mappings. The working MCP processes use the native-browser-plugin executor marker, which the desktop resolves through that session mapping.
The installed browser service checks access before dispatching each browser command. Its request includes executor, session, turn, and nonce; the response is signature-verified. Missing host path or verification identity produces the reported error before Chrome connection. Separately, desktop code writes the launch configuration into the shared plugin cache.
This supports a host/bootstrap or configuration-scope problem, rather than a failed Chrome extension connection in this reproduction. It does not establish whether standalone CLI access is intended to be supported, nor whether manually forwarding environment variables would be sufficient.
Could maintainers clarify the supported authorization bootstrap for standalone CLI/app-server clients? If this MCP is desktop-only, it should be scoped accordingly or return an actionable unsupported-host diagnostic when discovered by an independent CLI. If standalone CLI access is supported, please provide the authenticated host/session attachment procedure.
No plugin files, authorization checks, or browser security settings were changed during these checks. No tokens, environment values, socket paths, account/session identifiers, private URLs, raw logs, or application source dumps are included. No earlier working CLI version or controlled downgrade was established for this macOS case.
VincentAlb commentedon Oct 29, 2026
Reproduced from the Codex extension in Visual Studio Code on Windows with Brave (not the terminal CLI). Sharing in case it helps narrow things down; no reply needed.
Environment
OpenAI.Codex_26.1023.6621.0(bundled plugins26.1023.51421)Symptom
Asking Codex from VS Code to use the browser fails with:
[Desktop app chats can still reach Brave: yes / no – à compléter]
What looks healthy locally
com.openai.codexextension.jsonexists in%LOCALAPPDATA%\OpenAI\extension\, points to an existingextension-host.exe, and lists both ChatGPT extension IDs inallowed_origins.chrome-native-hosts-v2.jsonhas a single entry for app version26.1023.51421, and thenodePathruntime folder it references exists.~/.codex/browser/config.tomlis as expected (approval_mode = "never_ask",full_cdp_access_enabled = true).One observation (not a root cause)
In
browser-service.mjs(both thechromeandbrowserplugins), this error is thrown when either of these environment variables is missing from the process running the session:BROWSER_USE_ACCESS_PIPE_PATHBROWSER_USE_ACCESS_VERIFYING_IDENTITYSo the failure seems to happen before any connection to the extension or native host is attempted. That would be consistent with the other reports in this thread, where a session started outside the Desktop app doesn't inherit the connection variables. I haven't confirmed that this is what happens with the VS Code extension; I only read the plugin scripts and did not change any files or settings.
This looks related to #56928 and #57815.
jmills152 commentedon Oct 29, 2026
Additional Windows/Chrome reproduction on October 29, 2026.
Browser automation worked October 28, then failed after a desktop/runtime update with “The browser access host is unavailable” and an empty browser inventory.
Desktop runtime: 26.1023.51421; Windows package: 26.1023.6621.0. Chrome native-host registration checks pass. Desktop logs show browser/native listeners starting successfully. Browser/app restarts, a fresh chat, automation reset and a full PC reboot did not restore access.
Feedback reference: no-active-thread-01a187b5-9aea-7b71-8b69-3175bafb505c
artpi commentedon Oct 29, 2026
Additional controlled macOS reproduction with bundled plugin 26.1023.51421.
Environment: Apple silicon, macOS 26.7.2; ChatGPT desktop app 26.1023.51421 (build 22530); T3 Code 0.1.4-nightly.20261028.3824.
cua.createBrowserTab("chrome", ...)on the same machine today. This was verified from its actual tool result, not inferred from Chrome being open.await cua.getBrowser({ id: "chrome" });withThe browser access host is unavailable. We repeated both tests with--no-daemon; both still fail. The installed plugin was held constant, and no global CLI downgrade was performed.cua.getApp("com.google.Chrome")works, including navigation and screenshots.BROWSER_USE_ACCESS_EXECUTOR_ID,BROWSER_USE_ACCESS_PIPE_PATH, andBROWSER_USE_ACCESS_VERIFYING_IDENTITY. The inspected T3 browser runtimes have an empty executor ID and absent pipe/verifying-identity variables.require-browser-access.mjs, which setsprocess.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "". The browser service treats the empty string as an enabled access check, then throws when the pipe or verifying identity is absent, before attempting the Chrome connection.This reproduces the problem with the newer plugin and shows that reverting only CLI 0.165.0 to 0.164.0 does not resolve it with this plugin. It does not prove that T3 drops environment variables or establish the first affected plugin version.
Is there a supported authorization bootstrap/attachment mechanism for standalone CLI and third-party app-server hosts? No authorization checks, plugin files, or browser permissions were changed during these tests.
komuken commentedon Oct 29, 2026
Additional cross-host macOS MCP reproduction, to distinguish target-host authorization from a local standalone-CLI launch.
26.1023.51421). An authenticated SSH stdio MCP relay launches the unmodified official CUA on Mac B (bundled plugin26.1023.50603), preserving its official command, arguments, pre-import and caller metadata.await cua.getState()returns an empty browser inventory andThe browser access host is unavailable.BROWSER_USE_ACCESS_*launch variables, while the SSH-launched runtime has none. No values are included here.Please include this cross-host case in the supported-bootstrap guidance: can the target Desktop authorize the true current session/turn of an MCP caller whose task remains on another host, without moving that task to the target host? If so, what supported target-Desktop registration/attachment interface should the relay use? If that direct mode is unsupported, an explicit boundary would help distinguish a missing setup step from a removed capability.
We have not removed the pre-import, unset authorization variables, borrowed another task's context, or exported the generic Desktop authorization socket. No credentials, socket paths, task IDs, hostnames, IPs, private URLs, raw logs or application-source dumps are included.
andrew-at-v commentedon Oct 29, 2026
Codex WSL
Still failing: the Chrome connection timed out at 127.0.0.1:9222 again. I can’t see or control your Chrome tabs from this session yet
Call codex in windows
The browser access host is unavailable.
Codex desktop
works fine
41 remaining items
oiBio commentedon Nov 8, 2026
Confirmed on Windows 10 Enterprise 22H2 (x64, build 19045.6456), with T3 Code
0.1.8-nightly.20261108.4380, Codex CLI0.167.0, and Chrome / unified computer-use plugins26.1103.32239.In the same T3 conversation,
cua_replfailed withThe browser access host is unavailable, while the previously suggestedsetupBrowserRuntime()entry point from the installed official Chrome client worked through the existingnode_repl. Navigation, link clicks, screenshots, tab grouping, and the visible Codex cursor were verified.No plugin/runtime files, access checks, browser permissions, or
BROWSER_USE_ACCESS_*variables were changed. This confirms the existing workaround on this Windows/T3/version combination; the originalcua_replfailure remains.Auto-review by default, --continue, --browser workaround, cheap chang…
RaptorX commentedon Nov 10, 2026
Adding an Arch Linux + Google Chrome reproduction, checked November 10, 2026.
Environment
7.2.6-arch2-1.0.167.0.chatgpt-desktop 26.1027.51404-1(repackaged Linux binary); bundled Codex:0.166.0-alpha.5.1.26.1027.51404.154.0.8037.57; ChatGPT extension:1.26.1102.11740, installed and enabled.Reproduction and working control
In the terminal-origin conversation,
await cua.getState();returns an empty browser inventory withBrowsers: Error: The browser access host is unavailable. Browser selection fails with the same error before tab discovery. Starting the desktop app and resetting the CUA REPL did not restore this conversation's browser access.A fresh desktop fork on the same installation successfully discovered extension-backed Chrome, opened a disposable example.com tab, read its page, and closed it while preserving the existing tabs. This was verified from the actual tool results. The original terminal conversation still fails; desktop success does not resolve the CLI workflow.
The bundled extension-installation and native-host-manifest diagnostics pass.
Immediate failure condition
Presence-only inspection of the actual failing browser worker found:
BROWSER_USE_ACCESS_EXECUTOR_IDBROWSER_USE_ACCESS_PIPE_PATHBROWSER_USE_ACCESS_VERIFYING_IDENTITYThe generated launcher preloads
require-browser-access.mjs, which setsprocess.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";. The installed browser service enters access verification for a present executor variable, including an empty string, then throws this exact error when the pipe or verifying identity is missing, before connecting to the browser. Listing these names inenv_varsdoes not supply the missing context.This establishes the immediate failure condition here, not the introducing release or intended CLI support policy. No authorization checks were disabled and no working desktop authorization values were copied into the CLI.
Could maintainers provide a supported authenticated bootstrap for standalone CLI/shared-daemon sessions, or identify a fixed release? The desired result is extension-backed Chrome access from the terminal conversation with the existing authorization checks preserved.
vector81 commentedon Nov 11, 2026
Note
🤖 Written by Claude (Fable 5.1) on behalf of the issue author. Everything below was run and verified on the author's machine today.
Author update: a fix that keeps
cua_replworking, survives the desktop app's config rewrite, and leaves desktop chats untouchedEnvironment: Windows 11 Home
10.0.26300, Brave with the Codex extension, npm Codex CLI0.167.0, desktop packageOpenAI.Codex 26.1103.7773.0, bundled plugins26.1103.60933. Still broken out of the box on this build, fixed with the steps below.Verified result: a fresh
codex execfrom PowerShell used the normalcua_repltool to openhttps://example.comin Brave, read the title (Example Domain), and close the tab. Desktop app chats still work as before.Why this variant
The thread already has two workarounds: removing the
--importpair / overriding[mcp_servers.cua_repl]inconfig.toml(@bbrzoska, @JJLiebig), and bypassingcua_replentirely by callingsetupBrowserRuntime()fromnode_repl(@andrew-at-v, @BC-0217, @astrovm). Both work, but:config.tomloverride is deleted on every desktop launch by the app'sconfig/batchWritethat setsmcp_servers.cua_repltonull(as @bbrzoska noted), andnode_replroute means the stock browser tool and skills still fail, so the model has to be taught a side door every session.Instead, edit the preload itself so it only turns the access check on when the desktop app actually supplied an access host. The desktop app sets
BROWSER_USE_ACCESS_PIPE_PATHandBROWSER_USE_ACCESS_VERIFYING_IDENTITYon the processes it spawns, so for those the file behaves exactly like upstream. Any other host (terminal CLI,codex exec, T3 Code, VS Code extension) gets the pre-26.1023 behaviour where the executor ID is left undefined and the service skips verification. Nothing inconfig.tomlchanges, so the app cannot undo it at startup.Steps (Windows paths; same file and edit on macOS/Linux under
~/.codex/plugins/cache/openai-bundled/unified-computer-use/<version>/)Back up and replace
%USERPROFILE%\.codex\plugins\cache\openai-bundled\unified-computer-use\<version>\require-browser-access.mjs. Upstream it is the single lineprocess.env.BROWSER_USE_ACCESS_EXECUTOR_ID ??= "";. New content:Kill the stale
cua_repl. The CLI's managed app-server daemon keeps onecua_replNode process alive across sessions, and it was launched with the old preload.js_resetdoes not relaunch it, so a newcodexsession will still fail until it is gone. The daemon respawns it on demand with the new file:Start a new
codexsession and ask it to open a page in your browser.The patched file lives in the version-specific plugin cache folder, so the next app/plugin update replaces it. The script below re-applies it (and
-Revertrestores the.origbackup):fix-codex-cli-browser-access.ps1Second gotcha for Brave (and Edge/Vivaldi/Opera) users
Once past the access gate, the model's first instinct is
cua.getBrowser({ id: "chrome" }), and on Brave that fails with:The browser selector in
@oai/browser-desktopmatches a family name (chrome,brave,edge, ...) only against an extension-backed browser whose reported family is the same, and Brave reportsbrave. Working selectors here:{ id: "brave" },{ id: "extension" }, or{ url: "<target url>" }. The bundledchromeplugin'sskills/folder is empty in the plugin cache on this build, so the model gets no hint about this. Putting this in~/.codex/AGENTS.mdfixed it for every session:Two things that do not help, to save others the time
browser-service.mjsunderplugins\cache\openai-bundled\browser\or...\chrome\does nothing forcua_repl. It loads@oai/browser-desktopfrom the app install (...\app\resources\cua_node\bin\node_modules\@oai\browser-desktop\scripts\browser-service.mjs, read-only underWindowsApps). The cache copies are only used by thenode_replroute.cua_replprocess (and its old environment) alive. Step 2 above is what actually matters.Trade-off and request
This is explicitly a workaround: sessions not spawned by the desktop app skip the browser-access verification, which is the behaviour every build before 26.1023 had. The CLI's own approval and sandbox settings still apply. It would be great to get either (a) a supported way for standalone CLI / app-server hosts to obtain the access pipe and verifying identity, or (b) the preload shipped with this conditional so that hosts without an access host fall back to the old behaviour instead of a hard failure. Happy to test a build.
indicava commentedon Nov 11, 2026
macOS 0.167.1 reproduction and proposed bootstrap fix
Additional evidence for #57641, checked November 11, 2026.
Environment: Codex CLI and managed daemon 0.167.1; desktop/runtime
26.1106.51428 (build 26605); ChatGPT Chrome extension 1.26.1102.11740.
Extension automation works in the desktop app and fails in the standalone CLI.
Both use API-key authentication according to the user, so auth mode alone does
not explain this difference. This failure is distinct from the older
unsupported Codex auth method: apikeyreport in #45317.New launcher detail
On this macOS build, the generated
cua_replMCP configuration launches/bin/shwith this command before the bundled Node REPL:Consequently, modifying only
require-browser-access.mjsdoes not change thislaunch path. The shell wrapper itself turns an absent executor variable into an
empty string.
An isolated reproduction ran this installed wrapper with a substitute child
that reported only environment presence. It did not start CUA, connect to a
socket, or touch Chrome:
Earlier presence-only inspection of the actual CLI tool process found the host
pipe and verifying identity absent; the successful desktop tool process had
them. The installed browser client activates verification for a non-null
executor variable, including an empty string, and throws the observed error
when the host pipe or verifying identity is missing. Failure occurs before
browser discovery.
Proposed fix
Bootstrap browser access in the thread-owning app server before launching the
browser MCP worker. Provide an authenticated registration path from standalone
CLI/shared-daemon sessions to the desktop-owned browser host, or move the common
host implementation into a shared component used by both launch paths.
The registration should return a complete, thread-scoped binding (executor,
host endpoint, verifying key, and a host/authorization generation). Project that
binding into the effective MCP configuration for the selected browser plugin.
Reacquire it and replace the affected worker when the host restarts or the
authorization generation changes. It should work with both the shared daemon
and
--no-daemon, and preserve API-key behavior where browser access is allowed.This also needs a corresponding desktop/native-host change on macOS: the app's
native pipe authorizes socket peers, and the host tracks session-to-executor
bindings. A CLI-only environment-forwarding patch does not establish either
relationship. The registration must authenticate the actual CLI process and
session while preserving account/workspace policy, browser approvals, and
signature/nonce validation.
Potential public-source integration points, inspected at
e58bf8f5233b51e7cd1679d947e3028c1ed91b06:codex-rs/core/src/mcp.rs: thread-scoped MCP configuration projection.codex-rs/core/src/session/mcp_runtime.rs: effective MCP configuration and worker lifecycle.codex-rs/ext/extension-api/src/contributors.rs: host-owned MCP/lifecycle contributions.codex-rs/app-server/src/extensions.rs: registration of app-server extensions.These are proposed integration points, not a tested patch. The desktop browser
host and native peer-authorizer implementation were not found in the public
checkout. Could maintainers identify the intended CLI registration interface,
or confirm that it needs to be added alongside these CLI changes?
Acceptance should cover: new/resumed CLI threads, concurrent threads, host
restart with the daemon still running, account/workspace changes, policy-denied
browser access, and rejected wrong-session/replayed/invalid-signature responses.
The positive end-to-end test should open a disposable tab, read its title, and
close it through the extension from the terminal session.
Validation scope: seven tests of the reproduction harness pass; the
installed-launcher readiness assertion fails as expected. This is evidence of
the bootstrap defect, not a successful repair. No guard was disabled, no
desktop session authorization was copied, and no installed runtime was patched.
jmtanous commentedon Nov 12, 2026
Additional Omarchy / Arch Linux reproduction, verified November 12, 2026.
Environment
4.5.0-3, Linux7.2.15-1-omarchy, x86_64.0.167.2.openai-codex-desktop 26.1106.51428-1, packaged by Omarchy.unified-computer-useplugin in use is26.1103.60933.157.0.8103.78-1.Reproduction
In a terminal-origin Codex conversation, invoke the standard
mcp__cua_repl.jstool with:Repeated calls return:
{"apps":[],"browsers":[],"errors":["Browsers: Error: The browser access host is unavailable"]}Native computer APIs are disabled in this configuration; the empty
appsarray is not a separate reported failure.Verified immediate failure condition
Presence-only inspection of the actual standard-tool
node_replprocess found:BROWSER_USE_ACCESS_EXECUTOR_IDBROWSER_USE_ACCESS_PIPE_PATHBROWSER_USE_ACCESS_VERIFYING_IDENTITYIts trusted browser service is
@oai/browser-desktop/service. The generated MCP launcher uses/bin/shto export an absent executor ID as an empty string before starting the bundled Node REPL, matching the launcher detail in the November 11 macOS report.Read-only inspection of the installed service confirms that a non-null executor variable activates verification, and missing host pipe or verifying identity throws this exact error before browser discovery.
Working control and scope
In the same conversation, the existing separate
node_replconnection, using the installed official Chrome client and bundled browser service, discovered extension-backed Chrome, listed the open tab, claimed it, and read its accessibility state. That establishes a working extension connection through that alternate route; it does not repair or validate the standard desktop-service route.No fresh standard-tool test from a desktop-origin conversation was performed. No introducing release or package-specific regression has been established. No plugin files, authorization checks, browser permissions, or browser-host environment variables were modified during this investigation.
Expected: either a supported authenticated bootstrap for terminal-origin sessions, or an actionable unsupported-host diagnostic instead of exposing a browser tool that fails before discovery. Please include Linux/Omarchy in the affected environments for this issue.
bengabay1994 commentedon Nov 16, 2026
Same here; verified November 16, 2026. Codex version 0.169.0. Same Omarchy version Omarchy
4.5.0-3, Linux7.2.15-1-omarchy, x86_64.DaiKiQi commentedon Nov 17, 2026
Additional macOS reproduction with an unmodified, OpenAI-signed stable CLI, separating native app access from browser access.
Environment:
Reproduction from an ordinary local terminal:
Observed with the official stable CLI:
The browser access host is unavailable.A separate test used a private Unix socket with the official 0.169.0
app-server --listen unix://PATHand a TUI connected through--remote unix://PATH. Native inventory still succeeded; browser inventory still failed. This does not establish browser support for remote TUI clients.Read-only inspection of the installed launcher and actual worker environment shows:
BROWSER_USE_ACCESS_EXECUTOR_IDis present but empty.BROWSER_USE_ACCESS_PIPE_PATHandBROWSER_USE_ACCESS_VERIFYING_IDENTITYare absent.No authorization values were copied from desktop processes. No authorization checks, process identity checks, application signatures, or system permission databases were modified. Restarting and reinstalling did not resolve this official-CLI browser reproduction. Native failure with a separately built custom CLI is a distinct issue and is not required to reproduce this browser failure.
Could a maintainer clarify whether standalone macOS Codex CLI is currently supported for browser Computer Use, and, if so, which supported mechanism should establish its own browser-host authorization and session binding? Is there a fixed signed build or documented configuration for this case?
This report intentionally omits account identifiers, session identifiers, local paths, browser tab titles, credentials, and authorization material.
tewner commentedon Nov 19, 2026
Is there any chance to get a response from OpenAI about this issue? Is there any intention to triage and fix this issue?
AndrewDryga commentedon Nov 20, 2026
We reproduced this on macOS with Google Chrome and Codex running as a Zed external agent through
@agentclientprotocol/codex-acp2.8.0.await cua.listBrowsers(), fails withThe browser access host is unavailable, before any tab or website is accessed.example.comin an inactive tab, and read the page. We checked the selected tabs and window focus before and after. Both were preserved.We also ran fresh sessions through Zed’s installed ACP adapter with three Codex executables. Browser discovery returned the same error with the adapter’s bundled 0.170.0, the Desktop-bundled 0.169.1, and 0.171.0. A fresh turn on the managed local Codex daemon reproduced it as well.
Is there a supported way for an ACP client to register its own session with the browser access host? The behavior we’re looking for is to send the request in Zed and have that turn control background tabs through the original extension, honoring the existing site permissions.
timocouckuyt commentedon Nov 20, 2026
Running into the exact same
The browser access host is unavailableerror using PhpStorm 2026.3 (Build #PS-263.7307.215) on MacOS 26.6.2 (25G83) and Codex ACP-adapter v2.8.0 (@agentclientprotocol/codex-acp), ChatGPT Desktop app 26.1117.31558.agnostk commentedon Nov 22, 2026
Thank you for sharing the
node_repl/setupBrowserRuntime()workaround! It worked for me on macOS arm64 with Codex CLI 0.171.0 running inside Orca and the bundled browser plugin 26.1117.31558.The
cua_replbrowser inventory still reportsThe browser access host is unavailable, but the installed Chrome browser client successfully connected to Chrome, opened a page, and read its accessibility tree. This test did not modify plugin files or browser access checks. It confirms the alternative path works in this environment; the originalcua_replissue remains.Turn off Codex's own browser plugins in OpenBot sessions (#15794)
timocouckuyt commentedon Nov 24, 2026
This should be considered as a major regression, really.
smith558 commentedon Nov 24, 2026
sucks