Skip to content

inline-vis cannot render HTML files from $BB_THREAD_STORAGE #3158

Description

@IlyaM

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

  1. added
    plugins
    inline-vis
    on Sep 5, 2026
  2. bb-slop-cop commented on Sep 5, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Type: Feature
    • Priority: Low
    • Effort: Medium
    • Labels: plugins, inline-vis

    The 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.

  3. added a commit that references this issue on Sep 10, 2026
    7ba69eb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    inline-visplugins

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions