codex icon indicating copy to clipboard operation
codex copied to clipboard

[macOS arm64][CLI 0.171.0] Standalone codex exec cannot discover Edge after a clean daemon restart

Open wangxiaoming-1997 opened this issue 2 weeks ago • 1 comments

What version of Codex CLI is running?

codex-cli 0.171.0 (official standalone); fresh shared app-server also 0.171.0

What subscription do you have?

Signed in with ChatGPT (plan not collected)

Which model were you using?

No response

What platform is your computer?

macOS 27.2.1 (arm64)

What terminal emulator and version are you using (if applicable)?

Non-interactive codex exec launched from a fresh local shell environment, with no terminal emulator required.

Codex doctor report

Sanitized excerpt from `codex doctor --json` run in the independent terminal environment.


mcp.config: warning
BROWSER_USE_ACCESS_EXECUTOR_ID: not set
BROWSER_USE_ACCESS_PIPE_PATH: not set
BROWSER_USE_ACCESS_VERIFYING_IDENTITY: not set


The fresh daemon started successfully and reported app-server 0.171.0. Only the browser-related diagnostic is included here.

What issue are you seeing?

On the same Mac, the ChatGPT desktop app discovers Microsoft Edge as an extension-backed browser. An independent Codex CLI run can invoke the official Computer Use tool, but the browser discovery call fails before selecting or opening any tab. The tool returned:

The browser access host is unavailable

I reproduced this with standalone CLI 0.171.0 after stopping the old app-server and its updater and starting a fresh daemon from a terminal-like environment with no desktop browser-authorization variables. The desktop app still discovered Edge immediately afterwards. The CLI process exited with code 0 because the turn reported the failure; the underlying browser tool call failed.

What steps can reproduce the bug?

  1. On macOS, keep the ChatGPT desktop app and the ChatGPT extension for Microsoft Edge running. In a desktop-origin Codex chat, verify that the browser tool can discover Edge.
  2. After any active shared-daemon work has finished, stop the old shared app-server and verify that the old server and updater have exited. From an independent terminal environment, start a fresh app-server with codex app-server daemon start. Verify that codex app-server daemon version reports 0.171.0. Do not import the desktop application's browser-authorization environment into the terminal.
  3. Run the read-only diagnostic below. It only enumerates browser providers and does not navigate or read pages.
codex exec --ephemeral --json --skip-git-repo-check --sandbox read-only \
  'Use only the official Computer Use browser tool. Run cua.listBrowsers({emit:false}) and report whether it lists Edge. Do not select or open tabs, inspect pages, or use a fallback.'
  1. Observe that the official cua_repl call returns The browser access host is unavailable. The desktop-origin probe on the same machine still sees Edge.

What is the expected behavior?

If the desktop-managed Edge extension is supported from standalone CLI, the CLI should establish an authorized browser-host connection and enumerate Edge with the normal permission checks. If this surface is currently unsupported, the CLI should omit the unusable tool or report the support limitation directly when the tool is called.

Additional information

  • Microsoft Edge 157.0.4341.60; ChatGPT desktop 26.1111.71704 (build 29030).
  • The Edge native-messaging manifest passed the bundled check. The browser, Chrome and unified Computer Use plugin entries were enabled.
  • Before the clean restart, the standalone daemon pointed at a socket left by an earlier desktop process and failed with a missing native pipe. That old socket is a separate observation. With a brand-new daemon, the CLI still failed with the browser-host-unavailable error. Presence-only checks found that the fresh CLI daemon had no browser-authorization context, while the desktop-origin browser discovery worked.
  • Related reports: #59334 (Windows with Edge), #59592 (macOS with Chrome), and #57641 (cross-platform reports). This issue records the same failure on macOS with Edge and the official standalone 0.171.0 CLI after a clean daemon restart.

wangxiaoming-1997 avatar Nov 20 '26 08:11 wangxiaoming-1997

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #62143
  • #61925
  • #62064

Powered by Codex Action

github-actions[bot] avatar Nov 20 '26 08:11 github-actions[bot]