[PR #8520] fix(desktop): open external links in default browser #12778

Closed
opened 2026-02-16 18:17:40 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8520

State: closed
Merged: No


Summary

Fixes an issue where clicking links in the OpenCode desktop app would open them in the same window instead of the user's default external browser.

Changes

  • Added click event listener at root level to intercept all link clicks
  • External links (http/https) now use Tauri's shellOpen to open in default browser
  • Prevents markdown links from navigating within the app window

Testing

  1. Run the desktop app: bun run tauri dev
  2. Prompt the AI for a response containing a link
  3. Click the link - it should open in your external browser, not within the app

Related Issue

Fixes #8361

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8520 **State:** closed **Merged:** No --- ## Summary Fixes an issue where clicking links in the OpenCode desktop app would open them in the same window instead of the user's default external browser. ## Changes - Added click event listener at root level to intercept all link clicks - External links (http/https) now use Tauri's `shellOpen` to open in default browser - Prevents markdown links from navigating within the app window ## Testing 1. Run the desktop app: `bun run tauri dev` 2. Prompt the AI for a response containing a link 3. Click the link - it should open in your external browser, not within the app ## Related Issue Fixes #8361
yindo added the pull-request label 2026-02-16 18:17:40 -05:00
yindo closed this issue 2026-02-16 18:17:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12778