Skip to content

Browsers: tell them apart, choose the one agents use, and keep a windowless one from breaking the tools #1071

Closed

Description

@hatricks-s

What happens

With more than one Chromium browser connected, the browser tools can neither be aimed nor trusted:

  1. Two rows read "Google Chrome". Edge, Google Chrome and Cent Browser were connected. Cent Browser reports the brand Google Chrome in UA-CH, so Settings → Browser showed two identical "Google Chrome connected" rows, and there was no way to tell which was which.
  2. The file-access note does not say which browser it is about. "File access is off" appeared once, with no browser named, while the other connected browsers had it on.
  3. A browser with no window can win "last connected" and break every call. Edge had been left running in the background (window closed, background apps on). Its extension still connects, so it was the last connected, but chrome.tabGroups.query throws No current window. Every mcp__baocode__browser_* call failed with No current window, browser_tabs included, while two other browsers with windows and shared tabs were connected and being recorded. There is no way to choose a browser, so the tools stayed unusable until an Edge window was opened again.

Expected

Each connection can be told apart (its own name, engine, executable), the user can choose which browser the agents use, and a browser without a window does not make every tool call fail.

Proposal

I have a working patch for this and will open it as a pull request for review; happy to split it or change the design.

  • The native messaging host reports the browser's executable (the process that started it; on Windows it walks past the cmd.exe Chrome starts it with). The extension reports its Chromium version from UA-CH's fullVersionList.
  • Settings → Browser shows each browser's own name (taken from the executable where the brand is borrowed, e.g. Cent Browser), Chromium <version> and the executable's path. Each row gets Use This Browser; the choice is kept in settings.json as browser.preferred, and the tools use that browser while it is connected (the last connected when none is chosen). A chosen browser that is not connected is reported as such rather than replaced silently.
  • groups() no longer treats No current window as fatal: tabs.list answers with no shared tabs, and tabs.create opens a window.

Activity

  1. hatricks-s commented on Nov 17, 2026

    @hatricks-s
    ContributorAuthor

    Pull request: #1072 — the design above is what the patch does. It is happy to be split if the size or the mix of the fix and the choice bothers you.

  2. added
    accepted
    on Nov 17, 2026
  3. leookun commented on Nov 17, 2026

    @leookun
    Collaborator

    Done in #1072 (thanks!). One change on merge: when the chosen browser isn't connected, the tools now fall back to the last connected one instead of failing, and Settings → Browser says which one is in use until the chosen one is back.

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

    accepted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions