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

Open
opened 2026-02-16 18:08:12 -05:00 by yindo · 2 comments
Owner

Originally created by @aparusel on GitHub (Jan 27, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

Originally created by @aparusel on GitHub (Jan 27, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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 <img width="1059" height="552" alt="Image" src="https://github.com/user-attachments/assets/ef0a080e-446f-448b-b5ab-90749cb25f84" /> ### Operating System macOS 15.6.1 ### Terminal _No response_
yindo added the bugweb labels 2026-02-16 18:08:12 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 27, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #10309: Desktop: Option to open links in external browser - A feature request for the same functionality with a user preference to open links externally
  • #8247: No back button after clicking website - Similar issue where clicking links opens them inside the app and traps users

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #10309: Desktop: Option to open links in external browser - A feature request for the same functionality with a user preference to open links externally - #8247: No back button after clicking website - Similar issue where clicking links opens them inside the app and traps users Feel free to ignore if none of these address your specific case.
Author
Owner

@mlanza commented on GitHub (Jan 31, 2026):

Yup. Confirmed. The only thing I found is to close it and restart it, unfortunately.

@mlanza commented on GitHub (Jan 31, 2026): Yup. Confirmed. The only thing I found is to close it and restart it, unfortunately.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7778