Repository navigation
Conversation
This was referenced Sep 10, 2026
Collaborator
SawyerHood
added a commit
that referenced
this pull request
Sep 10, 2026
Integrates #3163 and #3165: inline-vis accepts source="workspace" | "thread-storage" and renders .md/.markdown files with the host Markdown renderer alongside sandboxed HTML previews. Fixes #3158 Fixes #3159 Co-authored-by: Ilya Martynov <[email protected]>
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
The inline-vis plugin hard-coded HTML extensions in its server validation and always rendered accepted files through an iframe, leaving no path for workspace Markdown documents to use the existing inline preview chrome. This meant agents had to convert Markdown artifacts to HTML or paste their contents directly into messages. Fixes #3159.
What changed
Generalized inline-vis file validation and its plugin-private RPC to support
.mdand.markdownfiles alongside HTML. The RPC now returns a discriminated HTML or Markdown result, including validated UTF-8 content for Markdown.Markdown previews use BB's host Markdown renderer inside the existing bounded, scrollable preview card. HTML iframe behavior and sandboxing remain unchanged. Updated the plugin metadata, README, overview, and bundled agent skill with the new supported formats.
The plugin-private RPC was renamed from
prepareHtmlPreviewtopreparePreview. No server/daemon wire contract changed, soHOST_DAEMON_PROTOCOL_VERSIONwas not incremented. No CLI changes were required.How you verified
Added red-first server coverage for Markdown content and extension handling, followed by frontend coverage for host-rendered Markdown, sidebar opening, bounded height, scrolling, and loading-to-ready layout stability.
Ran:
pnpm exec turbo run test typecheck --filter=bb-plugin-inline-vis— 20 tests passed; typecheck passed.bb plugin build plugins/inline-vis— server and app bundles built successfully.git diff --check— passed.Fixes #3159