Repository navigation
Description
Summary
Clicking an external link in a .md file preview does nothing at all — no system browser, no in-app browser, no error. The same links in the same files open fine from VS Code, and links in thread messages open correctly in bb's in-app browser. Expected: the preview opens the link the same way a thread message does.
Versions and environment
- bb 0.42.1 (bb updates reports up to date)
- macOS 26.6.2 / Darwin 25.6.0, arm64
- Node v26.5.0
- Claude Code 2.1.267
- Base commit: 40ed14c (main, 2026-09-10)
Steps to reproduce
- Create a file with an external link:
SH
printf '[github.com](https://github.com/)\n' > [test.md]
- Open test.md in the file preview in bb.
- Click the link.
Expected vs actual
Expected: the link opens (in the in-app browser, per the "Open links in the in-app browser" setting).
Actual: nothing happens. Right click → "Copy link address" yields the correct URL, so the anchor and its href are present in the DOM; only navigation is dropped.
Reproduces for every link form: inline [text](https://…), bare URLs, autolinks <https://…>, reference links, mailto:, and relative file paths.
Evidence
The anchor is built by MarkdownAnchor in markdown-preview.tsx#L645-L655 with target="_blank" and an handleAnchorClick handler.
For an external link, that handler calls preventDefault() only when linkRouting.onOpenLink is set. When it is not set, the handler silently falls through and the target="_blank" default remains — a window.open that nothing handles in the desktop shell.
In the preview chain, onOpenLink is never provided:
- ThreadSecondaryPanel.tsx does not reference the markdownLinkRouting prop at all.
- ThreadSecondaryPanelTabContent.tsx only builds image routing (buildMarkdownFileImageRouting, buildMarkdownLeaseImageRouting).
- FilePreview.tsx passes linkRouting={markdownLinkRouting} straight through to MarkdownPreview.
For thread messages the routing is built by buildMarkdownMessageLinkRouting, which does set onOpenLink — which is why messages work and previews do not.
What you ruled out
- Not the markup. The syntax is canonical; ~1100 such links across the project, and VS Code opens them.
- Not the in-app browser setting. It is enabled and working — links clicked in thread messages do open in the in-app browser.
- Not a stale version. bb 0.42.1, reported up to date.
- Not a duplicate. Links opened from chat/thread messages open in bb's in-app browser instead of the OS default browser #3214, Cmd+click on a thread link should open the macOS default browser instead of the in-app browser #2288 and In-app browser opens Google Docs and other signed-in services signed out #2929 all concern links in thread messages, where links do open and the argument is about which browser. Here nothing opens anywhere.
Note on reproduction
I did not reproduce this myself — GUI clicks are outside what I can drive. The repro steps come from the reporting user; the code analysis above is my own. Not claiming confirmed-repro; a screenshot from the user would strengthen the Expected vs actual section.
AGENT GENERATED
Suggested priority and effort (optional)
Medium priority, small effort: populate onOpenLink in the preview's link routing with the same handler already used for messages. Label: ui.
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
Activity
bb-slop-cop commentedon Sep 10, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotClassification: Bug · Priority: Medium · Effort: Low · Labels:
ui,partial-repro.Reproduction report: PARTIALLY REPRODUCED · confidence: medium.
Compose file previews omit the panel link callback. Two clean checkouts confirm two failing click cases and one passing explicitly routed control; 26 existing tests pass. Thread-detail previews already provide routing, and desktop code forwards popup URLs to the system browser.
No PR: the reported complete desktop navigation failure remains unverified; fixing the narrower compose omission would not establish that this issue is resolved.
Resolve and open Markdown links in one place (get-bb#6756)
Make plugin surfaces prove they use core's path and delete plugin-onl…