Repository navigation
Description
Summary
On the Windows desktop app (v2.2.2), the built-in browser skill loads successfully but none of its tools exist. The server-side plugin opencode.browser reports active, yet no client MCP server is registered (/api/mcp returns []), so the in-app Chromium can never be driven. Every browser call fails as if the desktop app were not attached.
Environment
- opencode version: 2.2.2 (
opencode-cli --version, channellatest, desktop bundle) - OS: Windows 11 (10.0.26300, x64)
- Terminal: Unavailable — desktop app GUI
- Shell:
C:\Windows\system32\cmd.exe - Install/channel: release, desktop NSIS installer (
%LOCALAPPDATA%\Programs\ai.opencode.desktop) - Background service: bundled CLI at
127.0.0.1:28894 - Active plugins: builtin only, no user plugins;
opencode.browser→active
Reproduction
- Open the OpenCode desktop app on Windows and start a session inside the app window.
- Ask the agent to use the browser skill (
@browser) or explicitly load it — the skill body loads fine. - Observe that no browser tool is available.
Expected Behavior
The desktop client registers its browser capability as a client MCP server, so /api/mcp lists it and the agent gets tools.browser.* (tabs.open, snapshot, click, screenshot, …), exactly as the browser skill documents.
Actual Behavior
$ opencode api get /api/mcp
{"location":{"directory":"C:\\Users\\29586"},"data":[]}
# code mode
search({ namespace: "browser" }) -> { "items": [], "remaining": 0 }
tools.browser.tabs.list({}) -> Error: Unknown tool 'browser.tabs.list'.
The skill itself loads (so the skill permission is fine), but it is unusable because the tool namespace is empty. This matches the documented [browser.disconnected] state — except the session is open in the desktop app window, and the app has been running the whole time.
Additional Context
/api/pluginshows the server side is healthy:
{ "id": "opencode.browser", "source": { "type": "builtin" },
"features": { "server": true }, "state": { "status": "active" } }- No client MCP registration appears anywhere in the server log (
opencode.log) — no entry for/api/experimental/client-mcpor abrowserclient server at startup or when the session was opened. - The desktop renderer log has no browser/client-mcp errors; only unrelated
ResizeObserver loopmessages. - App data (
opencode.settings) contains onlyfirstLaunchOnComplete/ window id / background color — nothing that would disable the browser. - The app was cleanly restarted (service started at
2026-10-30T14:34:40Z), so this is not a stale-service situation. - Workaround: install a Playwright MCP server instead (
opencode mcp add playwright --global -- npx -y @playwright/mcp@latest); that provides browser automation, but not the in-app tabs shown in the Review pane. - Related: built-in skill previews also fail on Windows with
Location not found: /builtin(separate report, skills: built-in skill preview fails with 'Location not found: /builtin' on Windows #60517). Both look like Windows/desktop-client integration gaps around built-in skills.
Activity
opencodejr commentedon Oct 30, 2026
Thanks for the detailed report.
I think this is a duplicate of #60369. In 2.2.2, the in-app browser's tools don't come through client MCP. The built-in
opencode.browserplugin provides them once the desktop browser pane connects to the server. So an empty/api/mcpand noclient-mcpentries in the log are normal for this version. Moving the browser tools to client MCP is only a draft so far (#59477). In the 2.2.2 desktop build, the browser pane's code fails to load (SyntaxError: Identifier 'n' has already been declared). When that happens the pane never connects, and thebrowser.*tools are never added.To check, search the desktop app's
main.log(under%APPDATA%\ai.opencode.desktop\logs\<timestamp>\main.log) for ascope finalizer failederror for scopebrowserwith thatSyntaxError. It only shows up there, not inopencode.logor the renderer log. It may only be logged the first time the pane tries to connect after launch, so check the logs from a few launches.Possible duplicates and related issues, ordered by likelihood:
browser.*missing). The author found thatSyntaxErrorinmain.logand confirmed it was a duplicate of desktop: internal browser panel disappears — browser scope fails with SyntaxError: Identifier 'n' has already been declared #60369./api/experimental/client-mcp), the behaviour you expected. It isn't in 2.2.2.The bot will close this issue as a duplicate in 1 day unless you reply explaining how your problem is different, for example if
main.logdoesn't show thatSyntaxError.Hona commentedon Oct 30, 2026
Fixed in 2.2.3 by #60430.
The desktop main-process bundle declared
requiretwice, which broke the in-app browser and itsbrowser.*tools.Please update to 2.2.3. In the desktop app, use Check for Updates, or install it from the release page. If the browser pane still doesn't appear afterwards, please reopen this issue with your
main.logfrom the logs folder.opencodejr commentedon Oct 31, 2026
Closing this as a duplicate of #60369, since there hasn't been a reply in the last day. That issue covers the 2.2.2 desktop build where the in-app browser pane fails to load (
SyntaxError: Identifier 'n' has already been declaredinmain.log), so thebrowser.*tools never appear. Please follow #60369 for updates.If your
main.logdoesn't show thatSyntaxErrorand you think this is a different problem, reply here with the relevantmain.loglines and we can look again. Thanks for the detailed report!