Repository navigation
Conversation
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 assumed every HTML artifact belonged to the thread workspace: its RPC always resolved the thread environment, and its frontend always used the worktree file route and workspace-open action. This prevented read-only artifacts stored in thread storage from being rendered inline. Fixes #3158.
What changed
Added
source="workspace" | "thread-storage"to the inline-vis directive, with omitted source defaulting toworkspace.The backend now resolves thread-storage roots through
bb.sdk.threads.storageLocation()and preflights files with the returned host and root confinement. The plugin-local RPC returns the validated file and authoritative normalized source.The frontend uses the existing worktree or thread-storage route based on that returned source. Thread-storage previews retain the sandboxed iframe but omit the workspace-open action.
Updated the inline-vis README, plugin overview, package metadata, and bundled skill. The skill explains that thread-storage artifacts are written beneath
$BB_THREAD_STORAGEwhile directive file paths remain storage-relative.This changes only the plugin-local RPC contract. It does not change the server/daemon protocol and requires no
HOST_DAEMON_PROTOCOL_VERSIONincrement.How you verified
Added focused backend coverage for thread-storage resolution, host/root confinement, workspace bypass, source defaulting, and invalid-source validation.
Added focused frontend coverage for source-specific routes, segment encoding, iframe sandboxing, RPC validation errors, and suppression of the workspace-open action.
Ran:
pnpm exec turbo run test typecheck --filter=bb-plugin-inline-visResults:
git diff --checkpassedFixes #3158