Repository navigation
Description
Summary
In the side chat panel, the "Replying to" quote at the top shows @thread:<id> mentions as raw text. The same message in the main timeline shows them as thread pills. The SDK documents its Markdown component as "rendered exactly like a chat message body", so I expected pills in the quote too.
Versions and environment
- bb 0.47.0, desktop app
- macOS 26.6
- Provider: Claude Code 2.1.310. The quoted message came from a Claude Code thread; the behavior is in the renderer, not the provider.
- Code path checked on
mainat c115cfb
Steps to reproduce
- In any thread, have the agent write a message that contains a thread mention, for example
See @thread:thr_xxxxxxxxxx.with the id of an existing thread. - Check that the main timeline renders the mention as a thread pill.
- Open that message's actions and choose Reply in side chat.
- Look at the "Replying to" quote at the top of the side chat panel.
Expected vs actual
Actual: the quote shows the raw token `@thread:thr_xxxxxxxxxx`.
Expected: the same thread pill as in the main timeline, with the thread title, opening the thread on click.
The user who hit this saw raw tokens in the quote of a message with 24 thread mentions. I did not capture a screenshot myself.
Evidence
- The side chat renders the quote with the SDK
Markdown:Lines 206 to 209 in c115cfb
<Markdown content={trimmed} className="text-xs leading-5 [&_blockquote]:my-1 [&_h1]:mb-1 [&_h1]:mt-0 [&_h1]:text-sm [&_h2]:mb-1 [&_h2]:mt-0 [&_h2]:text-sm [&_h3]:mb-1 [&_h3]:mt-0 [&_h3]:text-xs [&_li]:mb-0 [&_ol]:mb-1 [&_p]:mb-1 [&_ul]:mb-1" /> - The host
Markdownpasses nothreadMentionstoMarkdownPreview:bb/apps/app/src/lib/plugin-sdk-app-impl.tsx
Lines 237 to 282 in c115cfb
function PluginMarkdown({ content, className, experimental_document, }: MarkdownProps) { const timelineNavigation = useThreadTimelineNavigation(); const onOpenLocalFileLink = timelineNavigation?.onOpenLocalFileLink; const threadId = timelineNavigation?.threadId; const workspaceRootPath = timelineNavigation?.workspaceRootPath; const navigation = useAppNavigationHost(); const onOpenLink = useCallback<MarkdownPreviewLinkHandler>( ({ href }) => navigation.openUrl({ url: href }), [navigation], ); const linkRouting = useMemo<MarkdownLinkRouting>(() => { const messageRouting = buildMarkdownMessageLinkRouting({ onOpenLink, onOpenLocalFileLink, threadId, workspaceRootPath, }) ?? { onOpenLink }; return experimental_document === undefined ? messageRouting : buildMarkdownDocumentLinkRouting({ document: experimental_document, messageRouting, openFilePreview: navigation.openFilePreview, }); }, [ experimental_document, navigation.openFilePreview, onOpenLink, onOpenLocalFileLink, threadId, workspaceRootPath, ]); return ( <MarkdownPreview allowHtml content={content} className={className} linkRouting={linkRouting} /> ); } MarkdownPreviewadds the mention parsing step and thebb-thread-mentioncomponent only whenthreadMentionsis set:andbb/apps/app/src/components/ui/markdown-preview.tsx
Lines 1930 to 1931 in c115cfb
if (threadMentions !== undefined) { plugins.push(remarkThreadMentions); bb/apps/app/src/components/ui/markdown-preview.tsx
Lines 1514 to 1518 in c115cfb
if (threadMentions !== undefined) { components["bb-thread-mention"] = buildThreadMentionComponent({ mentions: threadMentions.mentions, }); } - Assistant messages in the timeline pass
ASSISTANT_THREAD_MENTIONS:threadMentions={ASSISTANT_THREAD_MENTIONS} - SDK contract for
Markdown:bb/packages/plugin-sdk/src/app-contract.ts
Lines 4705 to 4712 in c115cfb
* Props of the host-owned `Markdown` component — bb's chat message renderer * (the same typography, spacing, and code styling as timeline messages). * Use it wherever plugin UI quotes or previews message content so it reads * like the rest of the chat. Like `ThreadChat`, this is a stable product * capability, not a UI kit; renderer internals stay private. */ export interface MarkdownProps { /** Markdown source, rendered exactly like a chat message body. */
The investigation ran in a private bb thread; that report is internal and not linked.
What you ruled out
- Not Plugin-embedded ThreadChat's composer summary omits the Project chip the main thread view shows #4501 (closed): that was the Project chip in the embedded composer summary, not message Markdown.
- Not Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438 or ThreadChat drops local-file link routing on full-page plugin routes: inline-code file mentions, @thread mentions, and workspace-relative images render dead #4466: those cover link routing in plugin-embedded
ThreadChat, not mentions. - I did not check the side chat's own timeline messages. From the code they go through the regular timeline renderer; only the quote uses
Markdown.
Suggested priority and effort (optional)
Low. Cosmetic and no data loss, but confusing in mention-heavy threads, where the quote turns into a list of ids. Probably small: if the host Markdown passed the same threadMentions as assistant messages, every plugin that quotes messages would get pills.
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. - I searched open and closed issues for the same problem.
- If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
AGENT GENERATED
Activity
bb-slop-cop commentedon Oct 25, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotui,plugins,side-chat,confirmed-repro.Render thread mentions in SDK Markdown (get-bb#6269)
Make plugin surfaces prove they use core's path and delete plugin-onl…