Skip to content

Make the thread view a bundled, forkable plugin (like thread-list) #4814

Description

@brsbl

Problem

Plugins that present threads in their own UI can only embed ThreadChat and restyle it through bb's private markup. Desktop's AIM-style IM windows are one example. The selectors they depend on include:

  • Tailwind utility classes (.ml-auto, .mb-1:first-child, .mt-4.min-h-7)
  • data-timeline-row-id substrings (:user, :assistant:, :op:warning:, :turn:)
  • [data-scroll-footer]

Any internal refactor silently breaks these plugins. In one week of work on Desktop, selector drift caused several regressions:

  • a collapse rule also hid agent messages
  • single-segment turn rows use a different id shape
  • the steer label and message actions were misplaced

The alternative is a separate chat built on the public threads.timeline / send / interactions / realtime APIs. That would duplicate markdown, tool rows, approvals, mentions, attachments and the composer, then drift behind bb.

Proposal

bb already solved this for the sidebar: plugins/thread-list is a bundled plugin built only on the public SDK. We'd like the same for the thread view:

  1. Ship the thread view as a bundled plugin. It covers the transcript and composer, built on the public SDK like thread-list.

  2. Export its pieces as importable components with slots. At minimum:

    • a speaker label
    • a row renderer by row kind (user, agent, tool, notice, steer)
    • row visibility (e.g. show only messages)
    • a footer and read-only mode for archived threads
    • message actions placement
    • density/size CSS variables

    Other plugins can then compose it and replace only what they restyle, instead of forking the whole view.

  3. Interim steps, before a full extraction:

    • stable data-chat-row-kind attributes on transcript rows
    • composer: false (or a footer slot) on ThreadChat that keeps bottom-anchored scrolling, since variant="timeline" opens at the top

    These would remove most of the coupling.

Context

brsbl/bb-plugins#237 restyles ThreadChat as an AIM window: messages only, AIM labels and sizes, archived threads read-only. It also adds a contract guard, which falls back to bb's own look when the markup it targets changes. That guard bounds the damage; this issue would remove the cause.

Activity

  1. added
    plugins
    ui
    on Oct 3, 2026
  2. bb-slop-cop commented on Oct 3, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Applied the missing classification:

    • Type: Feature
    • Priority: Medium
    • Effort: High
    • Labels: plugins, ui

    This requests new plugin composition capabilities rather than a defect in a supported contract. Existing embedding and custom rendering provide workarounds; extraction requires architectural and public SDK decisions. No existing classification values were replaced.

    No reproduction report or pull request: the final Type is Feature, so bug reproduction and simple-fix steps are skipped.

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

    pluginsui

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions