Repository navigation
Conversation
The inline-vis open action on HTML previews is now a link to the rendered page. A plain click still opens the sidebar preview; Cmd-click, Ctrl-click, and middle-click fall through to the platform, which opens a new browser tab on the web and the default browser in desktop bb. The tooltip names the modifier. Markdown previews keep the sidebar-only button. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/open-artifacts-in-a-new-page-from-inline-viz-thr_kwye8warxx
branch
October 1, 2026 18:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
Opening an inline visualization as its own page took two clicks. The card's open icon was a
<button>that only opened the right panel, and "Open in external browser" (#1638) lives only in the panel's toolbar. The card had no way to reach the rendered page directly. Requested in Discord #feature-requests ("Would you be open to adding a link to open artifacts on new page from inline viz?").What changed
plugins/inline-vis/app.tsx: on HTML previews the existing open icon is now a real link (<a href={rawFileUrl} target="_blank">) to the same raw-file URL the iframe and the panel's globe action already use.setWindowOpenHandlersends them toshell.openExternal, i.e. the default browser.Content-Security-Policy: sandbox allow-scripts, so the opened page has an opaque origin.Out of scope, same gap: file links in messages (Cmd-click still opens the panel; the href is
file://),ExperimentalFileLink(its href is./<path>, so Cmd-click opens a meaningless page), and file mention pills and attachment chips (buttons, no href). See #2288 for the web-link variant.How you verified
pnpm exec turbo run typecheck test lint --filter=bb-plugin-inline-vis --filter=@bb/bundled-plugins: pass. The one lint warning was already there.experimental_openFilePreview.pnpm start:worktreeon a fresh store, with a real agent turn emitting::inline-vis{file="report.html"}and a Markdown directive, driven by real mouse and touch input in Chromium:/api/v1/environments/<id>/files/report.htmlas a rendered page in a new tab, without opening the panel.desktop-window-factory.ts(not the packaged app):disposition: background-tab), which the real app passes toshell.openExternal.🤖 Generated with Claude Code