Skip to content

Desktop: Clicking external links in AI responses replaces OpenCode UI with chromeless webview #10901

@aparusel

Description

@aparusel

Description

What happened:

  • When an AI response contains a web link and I click it, the OpenCode desktop window navigates to the site inside the app webview and the main UI is replaced. The embedded page has no browser chrome (no back/forward), so I’m stuck unless I restart/navigate manually.

What I expected:

  • External links should open in the OS default browser so the OpenCode UI is never replaced. Same-origin links should continue to work normally inside the app.

Environment:

  • OpenCode Desktop version: 1.1.36)
  • OS: macOS 15.6.1 (24G90)

Proposed fix (optional, brief):

  • Intercept anchor clicks for external http(s) URLs and open them via OS default browser; don’t intercept same-origin.

Plugins

No response

OpenCode version

1.1.36

Steps to reproduce

- Steps to reproduce:

  1. Open OpenCode desktop app
  2. Get an AI message that includes an https://... link (e.g. “https://example.com”)
  3. Click the link
  4. Observe the OpenCode UI is replaced by the website inside the app window, with no browser navigation controls. Users might get stuck.

Screenshot and/or share link

Image

Operating System

macOS 15.6.1

Terminal

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwebRelates to opencode on web / desktop

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions