Skip to content

Codex receives in-app browser ambient state but browser control tools are not exposed to the agent #39562

Closed

Description

@Kaveendra

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

ChatGPT Powered by Codex & OWL Version 26.814.41407 Released 18 Aug 2026

What subscription do you have?

Pro

What platform is your computer?

Windows 11, Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary
Codex Desktop shows an in-app browser is open and provides ambient browser context to the agent, but the agent cannot access browser-control tools to inspect, screenshot, navigate, or read the page. Tool discovery only exposed node_repl, not the expected in-app browser control capability, so the agent had to ask the user for screenshots despite the user being logged into the built-in browser.

Environment

# In app browser: - The user has the in-app browser open with 1 tab. - Current URL: https://cloud.timeryte.com/craneroad

What steps can reproduce the bug?

Steps to reproduce

  1. Open Codex Desktop.
  2. Open the built-in/in-app browser side panel.
  3. Navigate to an authenticated web app page.
  4. Ask Codex to inspect the currently open browser page.
  5. The agent searches for browser tools using tool_search.
  6. Tool discovery returns only mcp__node_repl for browser-related work, not direct in-app browser tools.
  7. Agent cannot capture a screenshot or inspect DOM of the actual in-app browser session.

What is the expected behavior?

Expected behavior
When Codex receives in-app browser ambient state and a browser-control skill/plugin is installed, the agent should have callable tools to:

  • navigate the in-app browser,
  • inspect visible page state / DOM,
  • take screenshots,
  • click/type where appropriate,
  • use the existing logged-in browser session.

Additional information

Actual behavior
The agent can see ambient metadata that the in-app browser exists and is on the correct URL, but cannot access any direct browser-control tool. It can only use a separate headless/local Chrome path through Node/Playwright, which does not share the user’s authenticated in-app browser session.
This caused the agent to incorrectly end up asking the user for screenshots even though the authenticated page was already open in the Codex built-in browser.

Impact
This breaks an important Codex workflow: user logs into a web app in the built-in browser so Codex can visually verify UI, debug deployed pages, and inspect authenticated state. Without direct browser access, Codex cannot complete visual QA or authenticated web debugging reliably.

Workaround
The agent launched a separate local/headless Chrome via Playwright, but that browser had no authenticated session. The only practical workaround was asking the user to manually provide screenshots.

Additional notes
This seems like a tool exposure / routing issue rather than an app/browser issue:

  • Ambient in-app browser state was present.
  • Browser-related plugin/skill appeared installed.
  • Tool search still did not expose the expected in-app browser control tools.
  • Node/Playwright tools were available, but they are not a substitute for the in-app browser session.

Activity

  1. added
    app
    on Aug 20, 2026
  2. added
    bug
    windows-os
    tool-calls
    on Aug 20, 2026
  3. github-actions commented on Aug 20, 2026

    @github-actions
    Contributor
  4. th3nolo commented on Aug 29, 2026

    @th3nolo

    Correction after testing the plugin's actual packaged bootstrap path on a newer Windows Desktop build.

    Environment:

    • Codex Desktop AppX: 26.825.4187.0
    • Platform: Microsoft Windows NT 10.0.26200.9278 x64
    • Agent model: gpt-5.6-sol
    • Local task sandbox: workspace-write
    • Browser and Chrome plugins: installed/enabled (reported by the user)
    • The task receives <in-app-browser-context source="ambient-ui-state"> with the open tab count and current URL.

    On this build, the original end-to-end failure does not reproduce:

    1. node_repl is exposed and callable.
    2. Importing the Browser Plugin's absolute scripts/browser-client.mjs entry point succeeds.
    3. setupBrowserRuntime() succeeds and agent.browsers.getDefault() selects the Codex in-app browser.
    4. browser.user.openTabs() sees both existing user tabs.
    5. Claiming the existing preview tab and reading tab.playwright.domSnapshot() succeeds.

    A direct await import("playwright") still fails with the CommonJS interoperability error tracked in #40311, but that direct import is not the supported Browser Plugin bootstrap and does not prevent browser control through browser-client.mjs.

    So for AppX 26.825.4187.0 in this Windows workspace-write task, ambient state and actual in-app browser control are both functioning. My earlier version of this comment incorrectly treated the direct Playwright import failure as blocking the Browser Plugin; this correction supersedes that conclusion.

  5. Kaveendra commented on Aug 29, 2026

    @Kaveendra
    Author

    Mine was sorted a week ago with an update. I haven't kept track of what update it solved, but that certainly solved for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbrowserbugtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions