codex icon indicating copy to clipboard operation
codex copied to clipboard

Codex cannot reliably invoke or control Chrome extensions during extension debugging

Open xp90211-pixel opened this issue 2 months ago • 5 comments

What issue are you seeing?

I want to use Codex to debug a Chrome extension, but Codex repeatedly prompts me to perform browser/extension operations manually instead of invoking and controlling the Chrome extension itself.

In this workflow, Codex is unable to reliably interact with the Chrome extension UI or execute the browser-side actions needed for debugging. Even when the extension is installed and available in Chrome, Codex often falls back to instructions such as asking me to click buttons, open extension pages, or perform steps manually.

This makes end-to-end Chrome extension debugging impractical because the agent cannot autonomously inspect and operate the extension as part of the debugging loop.

Steps to reproduce

  1. Open a Chrome extension project in Codex.
  2. Ask Codex to debug or test the extension in Chrome.
  3. Have the extension installed/loaded in Chrome.
  4. Ask Codex to inspect the extension behavior, interact with its UI, or reproduce a bug.
  5. Codex repeatedly asks the user to perform the required Chrome/extension actions manually instead of invoking and controlling the extension itself.

Expected behavior

Codex should be able to invoke and control Chrome extensions normally when the Chrome integration/browser-control tooling is available, including:

  • opening and interacting with extension pages or popups;
  • triggering extension UI actions;
  • inspecting the resulting browser behavior;
  • performing the necessary steps itself during a debugging session instead of repeatedly handing them back to the user.

If a particular extension surface cannot be controlled because of a technical or security limitation, Codex should clearly identify the exact limitation rather than generically asking the user to perform the operation manually.

Actual behavior

Codex frequently falls back to manual-operation instructions, which breaks the autonomous debugging workflow and prevents reliable end-to-end testing of Chrome extensions.

Impact

This significantly limits Codex for Chrome-extension development. Extension debugging often requires repeated interactions between source changes, extension reloads, popup/options-page actions, page interactions, and inspection of the resulting state. Requiring the user to manually perform those actions defeats much of the value of agentic debugging.

xp90211-pixel avatar Sep 09 '26 14:09 xp90211-pixel

Concrete Windows Browser Use reproduction on 18 October 2026:

  • OpenAI.Codex Windows package 26.1013.4894.0; bundled app/Browser Use 26.1013.40934.
  • Windows x64, OS version 10.0.22621; regular Google Chrome with an existing profile.
  • The user explicitly asked the agent to reload an already-installed unpacked extension, preserve tabs/login/storage, and confirm its running version and download capability.

Observed results:

  1. Claiming the existing chrome://extensions/ tab through the supported browser API returned: Chrome internal tab ... cannot be claimed.
  2. A subsequent attempt to open that extension's chrome://extensions/ details page through the documented createBrowserTab API was explicitly rejected by URL policy: requested protocol not allowed; only http: and https: are allowed.
  3. The connected browser advertises viewport as its sole browser-scoped optional capability; no extension-management capability is exposed.

This is distinct from a separate HTTPS site-safety denial in the same workflow. The source manifest on disk reports 0.2.0, but the running Chrome extension version is unconfirmed. Updating extension source files on disk does not establish that Chrome reloaded the service worker or adopted new manifest permissions. We have not claimed a successful reload or end-to-end test, and have not edited Chrome profile state or used alternate APIs to bypass the URL-policy refusal.

Is there a supported, narrowly scoped way for an authorized agent to reload its user's already-installed unpacked extension and inspect the resulting version/permissions? If internal pages are intentionally unavailable, please expose an explicit supported maintenance action or actionable handoff rather than implying that ordinary site authorization can solve this.

No account information, extension-specific ID, business data, local paths, browsing history, or full session logs are included.

mxb3589-debug avatar Oct 18 '26 09:10 mxb3589-debug

Image

This is the error just incase

mikr13 avatar Oct 25 '26 14:10 mikr13

Additional Windows extension-page inspection case, verified on 2026-10-26.

Environment:

  • Desktop 26.1021.31345, build 21828, production; the official updater returned up_to_date.
  • Installed Windows package 26.1021.3705.0.
  • Last verified official Chrome browser-extension version: 1.26.1020.11845.
  • Browser Use through the supported cua_repl browser API.

The user is developing an installed unpacked browser extension with a dashboard. The requested workflow is to inspect that extension's own page after a source update/reload. Supported attempts to acquire/open its chrome-extension:// page were rejected before page content could be observed:

The requested URL protocol is not allowed. Allowed protocols: "http:", "https:".

Diagnostic category: navigation_url_policy_blocked / unsupported_protocol. The refusal also prohibits attempting the same access through alternate routes.

Checks completed:

  • Browser discovery and connection work. Separate public HTTPS pages were successfully read through the supported Chrome and Edge browser-extension connections.
  • The user fully exited and restarted Chrome; the supported retry still received the protocol rejection.
  • Existing browser permission/developer-access settings were already enabled. No permissions were broadened during diagnosis.
  • The active bundled Browser and Chrome service files match their corresponding installed app resources byte-for-byte.
  • Read-only inspection of the active browser-service.mjs confirms a protocol check accepting HTTP/HTTPS, plus an exact about:blank exception. Extension-page URLs fail that check. This is separate from an origin-level permission prompt or a disconnected browser.

There is also a distinct Windows native URL-recognition problem documented in this comment on #54532. We do not claim that fixing native localization would authorize extension-page inspection. Earlier project acceptance used different desktop/isolated-browser paths, so a regression in this same Browser Use path has not been established.

Please clarify:

  1. Is user-authorized inspection of an installed extension's own dashboard/options page supported in this version?
  2. If supported, what is the documented, narrowly scoped access/approval mechanism?
  3. If unsupported, can you provide a supported extension-development inspection capability or identify a release that will support it?

We are requesting a supported workflow that retains URL, identity, origin, and permission checks—not removal of access controls. No signed helper or browser-service file was patched, no policy was changed, and no alternative route was used to obtain the denied page for this report.

Submitted with Codex assistance at the user's explicit request. Extension IDs, private URLs, account/chat IDs, local paths, screenshots, credentials, business data, and full logs are omitted.

DDR-DR avatar Oct 26 '26 06:10 DDR-DR

I spend a lot of time developing Chrome extensions, and getting Codex to close the development loop has been frustrating.

The workflow should be straightforward: change the code, reload the extension, test it, and fix what breaks. Instead, Codex keeps rejecting browser actions or handing steps back to me—even for the extension we're actively developing and that I've explicitly authorized it to work on.

From my side, this feels like over-rejection. Every change turns into another manual reload or reinstall before we can test anything. I end up operating the browser for the agent, which interrupts the development flow and makes quick iterations unnecessarily slow.

We investigated this on macOS with desktop version 26.1027.51404 and Chrome 156.0.8078.76. Two concrete problems showed up:

  • Browser Use rejected chrome://extensions/ because it only allowed HTTP/HTTPS URLs. The assistant then treated that specific rejection as a broader reason to hand setup steps back to me.
  • Native control selected my everyday Chrome instance instead of the separate test-profile instance, so it couldn't reliably operate the installation dialog in the intended window.

Google's Chrome DevTools MCP did successfully install and update our isolated test extension. A deterministic launcher also recovered its saved state after browser restarts by reinstalling it from the same path. That helps with a dedicated development browser, but it doesn't resolve the everyday Codex workflow or complete our Tampermonkey setup.

What I want is a supported development loop for the extension I'm working on: approve the scoped access, then let Codex reload, inspect, and test it without repeatedly handing those operations back to me. When something really is unsupported, explain the exact boundary and the next step.

I’m happy to approve the access. Having to do the browser work myself after that is the frustrating part.

Submitted with Codex assistance. No private data or full session logs are included.

lifan-builds avatar Nov 02 '26 21:11 lifan-builds

I ran into this today (November 24, 2026) on macOS while developing my own unpacked Chrome extension. Codex could edit and build the code and test ordinary HTTPS pages, but the extension-management page was blocked. Several iterations required me to manually reload the extension and refresh the page before the agent could continue. Having to operate the browser for the agent after each build is frustrating and substantially reduces its usefulness for extension development. Please prioritize a supported reload-and-test workflow scoped to the extension I explicitly authorize, and clarify whether Browser Developer mode supports it.

zesttec avatar Nov 24 '26 09:11 zesttec