Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1029.61003 (build 24614, codex-cli 0.166.0-alpha.6); also reproduced on 26.1021.31345 (codex-cli 0.164.0-alpha.11.1)
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Darwin 27.2.0 arm64 arm
What issue are you seeing?
The in-app browser (IAB) backend never attaches to any Codex App thread. In every thread (project workspace thread bound to a folder, and plain new chats), agent.browsers.list() returns only the "Codex MCP Apps" (mcpapps) backend, and agent.browsers.get("iab") fails with "Browser is not available: iab" (error_code: browser_error from the browser plugin runtime).
The in-app browser itself works fine for manual use in the app side panel; only the per-thread agent attach is missing (the app never creates an iab-type backend pipe for these threads, so session-scoped discovery never finds IAB - discovery reason "no-iab-backends"/"no-session-match" in the plugin).
Secondary bug: with an explicit @browser mention and IAB unavailable, the agent silently substituted the standalone Playwright MCP server (playwright/browser_navigate, playwright/browser_snapshot) and presented it as success, contradicting the plugin rule: "If the user explicitly requests the in-app browser but it is unavailable, report that instead of substituting another browser."
What steps can reproduce the bug?
- Open any thread in the Codex Mac app (project thread or plain new chat), Browser Use setting enabled.
- Ask the agent to run: await agent.browsers.list() - result contains only [{"name":"Codex MCP Apps","type":"mcpapps"}].
- Ask the agent to run: await agent.browsers.get("iab") - fails with "Browser is not available: iab".
- Then say: "@browser open https://example.com and describe the page" - the agent silently uses Playwright MCP tools instead of the in-app browser and reports success.
What is the expected behavior?
The in-app browser should be discoverable via agent.browsers.get("iab") in App threads when Browser Use is enabled ("iab uses the current chat's tabs"). If a browser family is unavailable, the agent must report it instead of silently substituting another backend.
Additional information
- Reproduced on two app versions: 26.1021.31345 (codex-cli 0.164.0-alpha.11.1) and 26.1029.61003 (0.166.0-alpha.6). Thread metadata: originator codex_work_desktop, source vscode.
- The app never creates an iab backend pipe under /tmp/codex-browser-use for these threads; the mcpapps session pipe is created with a matching codexSessionId. Per the shipped plugin, iab/mcpapps backends are discoveryScope:"session" and require the pipe codexSessionId (and codexAppBuildFlavor) to match the current turn metadata.
- Additional finding: after updating the app (26.1021 -> 26.1029), the bundled plugin cache (~/.codex/plugins/cache/openai-bundled/) still contained only old plugin versions and every browser setup call failed with "Cannot find module .../browser/26.1029.61003/scripts/browser-service.mjs". Fixed manually by extracting the installed app Resources/plugin-signatures/openai-bundled/*/plugin.tar.gz (sha256 verified against plugin.signature.json) into the versioned cache dirs. Suggest verifying/extracting bundled plugins into the versioned cache at launch or update time.
Activity
github-actions commentedon Nov 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
shauncathe commentedon Nov 4, 2026
Update (same day): Not reproducible-fixed by the workaround suggested in #58535. I had the target chat selected and in the foreground (the browser side panel is available in that chat), and the agent still gets:
timestamp-verified repro today on 26.1029.61003 at 2026-11-04T14:39Z, from a resumed older thread (its trusted worker still loaded the 26.1021.31345 plugin — identical failure across both plugin runtimes).
So at least on macOS 26.1029.61003,
browser-sidebar-owner-sync → bindSessionRouteOwnerrunning on chat selection does not make the IAB backend discoverable — consistent with the report in #58419 (visible IAB tab, still not bindable). This keeps the failure independent of panel state, selection state, plugin cache, and app version (26.1021 → 26.1029).Also noting both windows of
agent.browsers.list()across all my tests contain only{"name":"Codex MCP Apps","type":"mcpapps"}— the app never creates an iab-type session pipe for any app thread (no-iab-backends), matching the session-scoped discovery analysis in the main report.shauncathe commentedon Nov 6, 2026
Update (2026-11-06): new-chat retest
I retested today in a brand-new chat, which rules out a saved site denial carried over from an earlier chat, as well as chat selection and panel state. I opened the built-in browser with Cmd+Shift+B in the new chat and explicitly referenced it with @browser:
agent.browsers.get("iab")still fails withBrowser is not available: iab.So the symptom is precisely: the IAB page is visible, but no iab backend attaches to the thread, so browser control is unavailable. Starting a new chat does not fix it.
App version used for this test: 26.1029.61003
Platform: Darwin 27.2.0 arm64 arm
shauncathe commentedon Nov 7, 2026
Update (2026-11-07): reinstall does not fix it
For completeness: I have also fully uninstalled and reinstalled the desktop app, and the problem persists unchanged. The in-app browser page opens for manual use, but no iab backend attaches to any thread and agent control still fails with
Browser is not available: iab.App version: 26.1029.61003
Platform: Darwin 27.2.0 arm64 arm
mainomega commentedon Nov 18, 2026
Additional macOS reproduction (reported November 18, 2026) involving the in-app browser failing even in a brand-new Codex conversation and Codex switching to the user's personal Safari window.
Steps reported
Actual behavior
The built-in browser visibly loads the site and maintains an authenticated session, but Codex cannot control that session even with an explicit @browser request. It switches to a browser outside the requested in-app browser, where the authenticated session is not the one the user prepared. This blocks the user's authorized workflow and risks interacting with the wrong browser profile.
Expected behavior
Codex should attach to and control the current conversation's visible in-app-browser tab, preserving its authenticated session. If the IAB backend is unavailable, it should report that failure clearly and must not silently substitute Safari or another browser.
Troubleshooting / limitations
Could maintainers confirm whether there is a known macOS fix or workaround for both the IAB attachment failure and the unexpected Safari fallback, and whether a release/milestone is planned?
shauncathe commentedon Nov 19, 2026
Codex desktop:
Browser is not available: iab— root cause and a working fixTested on macOS with the ChatGPT/Codex desktop app, build
26.1103.41825. All symbol names below are minified identifiers from that build and will differ in others.Symptom
The in-app browser panel itself renders pages fine. Only the agent-side automation backend is missing — these are two separate layers, and confusing them cost me most of the debugging time.
Root cause A: bundled plugin cache out of sync with the app build
config.tomlcontained:But
~/.codex/plugins/cache/openai-bundled/browser/only had26.1029.61003. After an app upgrade the config was regenerated against the new build, but the plugin cache was never re-extracted.chrome/lateststill pointed to26.1021.31345.Result, recorded repeatedly in
thread_history_1.sqlite:This is a genuine bug worth fixing, but it is not why
iabis absent. It only breaks the import. Control: in an earlier session with the cache intact and no import errors,browsers.list()already returned onlymcpapps.Not the cause either:
BROWSER_USE_AVAILABLE_BACKENDS=chrome,iab,mcpappsalready includesiab, and[plugins."browser@openai-bundled"] enabled=true.Root cause B:
iabis session-scoped and registered on demandFrom
browser-service.mjs:Jle()/tmp/codex-browser-use/*.sockWo.create()globalThis.nodeRepl.nativePipe.createConnection()(privileged channel)Vx()getInfoover a 4-byte-LE-length-prefixed JSON-RPC frameZle()BROWSER_USE_AVAILABLE_BACKENDSXle()metadata.codexSessionId === current runtime session idace()no-iab-backends/no-session-match/missing-session-metadatawhen the count is 0Xle()marksiabandmcpappsasdiscoveryScope: "session";extensionandcdpare global. The bundledSKILL.mdstates it plainly:So
iabis not a daemon. The app creates a backend instance for a session only when that session owns a real in-app browser tab.mcpappsreturning a correctcodexSessionIdproves session metadata works — there is simply noiabinstance matching it.Socket signature (the most useful diagnostic):
srw-------(0600)iabbackendsrwxr-xr-x(0755)node_repl/trusted-workerA live
0600socket appearing in/tmp/codex-browser-use/is the moment the backend registers.The four conditions
All four must hold simultaneously:
Cannot find moduleerrors)@Browser) so the skill is injected into the session0600backend socket for that session (automatic once move all tests under tests/ #3 holds)Failing any one of them yields the identical, unhelpful
Browser is not available: iab.Fix
One-time: rehydrate the plugin cache
Then fully quit and relaunch the app — a running process does not re-read the plugin cache.
Do not hand-edit
config.tomlorchrome-native-hosts-v2.json. They are app-managed and coupled; changing half of them makes things worse. There is also no Debug menu in this production build, so the official hintDebug > Plugins > Reload bundled pluginsis not reachable.Per session: register the backend
In the window that holds the target chat:
Then, in that same chat, mention
@Browserand give a real browser task. Do not just paste abrowsers.list()snippet — a bare snippet does not inject the skill.Verify:
End-to-end confirmation:
agent.browsers.list()now contains an entry withtype: "iab".Why it keeps coming back
iabis per-session. An app restart destroys every0600socket, and switching chats changescodexSessionId, so an existing socket no longer matchesXle().Observed directly: a backend socket created during a working session was gone after the next app restart (no crash report — a normal relaunch), and the following session again reported only
mcpapps. A0600socket created later belonged to a different chat and was correctly filtered out.This is not a regression and there is no local config that makes
iabpersistent. Re-run the per-session trigger after every restart or chat switch. Patching the signed plugin code to relax the filter is not worth the risk.Debugging traps (each one cost real time)
browser-sidebar-page-states.jsonshows no page for this chat → "no tab open"lsof <socket path>returns 0 listeners → "no backend"AF_UNIX.connect().0600sockets every few seconds; compare before/after socket identities, not counts.0600files in/tmp/codex-browser-use/ECONNREFUSEDand are skipped by discovery. Harmless; no need to clean.node_replglobalThis.nodeRepl.nativePipeisundefinedoutside the app. The privileged pipe is injected in-process only, so CLI probing cannot replace app-side registration.BROWSER_USE_BACKEND_PATHSAVAILABLE_BACKENDS=chrome,iab,mcpapps,FLAVOR=prod,TINYSKY_ENABLED=1,BACKEND_PATHSunset (default scan).Stable alternative: skip
iabIf the goal is just "let the agent open and operate a webpage", use the
playwrightMCP instead. It is not session-filtered;browser_tabs(list)and navigation both work reliably. In one failing session, the agent fell back to it automatically and opened the target site without any issue.Reserve
iabfor cases where you specifically need the app's own in-app browser tabs.Automation
Minimal reproducible helper (clipboard-safe, English menu names — add a localized fallback if your UI is not English):
Requires Accessibility permission for the calling process (System Events menu clicks). A reusable wrapper can add localized menu fallback, before/after socket verification, and a read-only
--checkmode.Known open items
chrome-native-hosts-v2.jsonstill reports26.1021.31345/proxyPort: 0/pid: 0after a relaunch. It affects the chrome extension backend only, notiab. Left untouched intentionally.0600socket files are harmless.Rollback: delete the four added
26.1103.41825cache directories and repointchrome/latestto its previous target.config.tomlandchrome-native-hosts-v2.jsonwere never modified.