Repository navigation
Description
The workflow
I ask an agent to do a read-only investigation (no workspace mutations) and produce a report or visualization for me to review inline in the thread. ::inline-vis is very convenient for this, but it only accepts HTML files inside the thread workspace — writing a report file into the workspace isn't appropriate for a read-only session, so the agent writes the HTML to $BB_THREAD_STORAGE instead (the correct place for this kind of artifact) and then tries to render it with ::inline-vis{file="..."}, which is not supported.
What happens today
::inline-vis only accepts a workspace-relative .html/.htm path. In plugins/inline-vis/server.ts, requireWorkspaceHtmlFile rejects absolute paths, .. traversal, and anything that resolves outside the workspace root, and prepareHtmlPreview resolves the path against the thread's environment workspace path before reading it. $BB_THREAD_STORAGE lives outside that workspace root, so a file written there cannot be referenced by the directive at all — the agent's only options are to open it via a Markdown link or bb thread open "$BB_THREAD_STORAGE/report.html", both of which open it in BB's secondary panel rather than inline in the message.
What I would expect
::inline-vis should be able to render an HTML file from the current thread's $BB_THREAD_STORAGE in addition to workspace-relative files, so read-only/investigation sessions have the same inline-rendering option as sessions that touch the workspace. I don't have a strong opinion on the exact directive shape (e.g. a source="thread-storage" attribute, a recognized path prefix, or a separate directive) — any of these would work as long as the plugin still validates the resolved path stays confined to that thread's storage directory the same way it currently confines workspace paths.
Context and alternatives
Current workaround: open the file via a Markdown link or bb thread open "$BB_THREAD_STORAGE/report.html", which opens it in BB's secondary panel instead of rendering it inline in the conversation.
AGENT GENERATED
Activity
bb-slop-cop commentedon Sep 5, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotplugins,inline-visThe trusted repository defines this renderer as workspace-only, so supporting an additional artifact source is new behavior rather than a regression. The non-Bug path skips the reproduction report and pull request.
Preview thread-storage and Markdown artifacts inline (get-bb#3439)