Repository navigation
Description
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-idsubstrings (: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:
-
Ship the thread view as a bundled plugin. It covers the transcript and composer, built on the public SDK like
thread-list. -
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.
-
Interim steps, before a full extraction:
- stable
data-chat-row-kindattributes on transcript rows composer: false(or a footer slot) onThreadChatthat keeps bottom-anchored scrolling, sincevariant="timeline"opens at the top
These would remove most of the coupling.
- stable
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
bb-slop-cop commentedon Oct 3, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotApplied the missing classification:
plugins,uiThis 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.