Skip to content

Side chat: the "Replying to" quote shows raw @thread: tokens instead of thread pills #6268

Closed

Description

@matthiasvongrundherr

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 main at c115cfb

Steps to reproduce

  1. 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.
  2. Check that the main timeline renders the mention as a thread pill.
  3. Open that message's actions and choose Reply in side chat.
  4. 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:
    <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 Markdown passes no threadMentions to MarkdownPreview:
    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}
    />
    );
    }
  • MarkdownPreview adds the mention parsing step and the bb-thread-mention component only when threadMentions is set:
    if (threadMentions !== undefined) {
    plugins.push(remarkThreadMentions);
    and
    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:
    * 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

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 GENERATED and links the thread or report.

AGENT GENERATED

Activity

  1. added theissue type on Oct 25, 2026
  2. added
    ui
    plugins
    side-chat
    confirmed-repro
    on Oct 25, 2026
  3. bb-slop-cop commented on Oct 25, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    • Classification: Bug · Priority Low · Effort Low. Labels: ui, plugins, side-chat, confirmed-repro.
    • Reproduction report: REPRODUCED, high confidence. The SDK component regression fails on unchanged production code in two clean trusted-main checkouts; browser captures confirm the rendering mismatch.
    • Root cause: SDK Markdown omits the configuration that enables existing thread-mention parsing and pills. Component-level verification; the full desktop side-chat flow was not exercised.
    • Fix: PR #6269, ready for review and not merged. Two files, 66 changed text lines; 349 relevant tests, typecheck, and app build pass after the fix. The regression checks titled links and click navigation, including message anchors.

    AGENT GENERATED

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

    confirmed-repropluginsside-chatui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions