Skip to content

Code-fence renderers lack the authoring thread ID for inherited replies #8502

Backlog

Description

@dimiboi

Summary

When BB copies a reply into a fork, the code-fence renderer receives the fork’s thread ID. A renderer that needs a resource belonging to the original reply has no documented way to identify the thread that authored that particular message. This also matters when a fork contains both inherited and newly authored replies.

Versions and environment

BB desktop 0.50.1 on macOS arm64, Codex provider. I checked the event records of an existing source thread and its fork. I traced the renderer props in 0.50.1 and main at 5b6a9962. The comparison on main was source-only.

Steps to reproduce

  1. In a new BB thread, ask for a reply containing a fenced code block with the text origin-demo. Let the turn finish. Fork from that reply using BB’s Fork action.

  2. Set source_id and fork_id to the two thread IDs. Compare the completed assistant item in both histories using the BB CLI and jq.

    for id in "$source_id" "$fork_id"; do
      bb thread log "$id" --all --json |
        jq -c '.[] | select(.type == "item/completed" and
          .data.item.type == "agentMessage" and
          (.data.item.text | contains("origin-demo"))) |
          {item: .data.item.id, thread: .threadId}'
    done
  3. To inspect what a renderer receives, open the inherited reply in a BB development build and inspect the message constructed in ConversationMessageContent. Compare its threadId with the two IDs above. Message construction on main

Expected vs actual

Expected. A code-fence renderer can identify the thread that owns a reply’s thread-local references. If A authored a reply and B forked A, that reply should resolve to A for this purpose. A reply authored in B should resolve to B. The renderer should still be able to identify B as the thread being viewed.

Actual. In the live histories I checked, the original and copied events had the same assistant item ID and different thread IDs. The fork copy carried B. In the inspected source, the timeline passes B through to the renderer. Its message context contains id, threadId, turnId and projectId. I found no documented per-message lookup for A. The renderer-props finding comes from source inspection, not a live capture.

Evidence

  • BB writes copied history under the fork’s ID. The assistant timeline passes its row’s thread ID to the message component. Fork history copy · Timeline row
  • The SDK defines the renderer’s message as PluginMessageDirectiveMessage. Its fields carry a single thread ID. Renderer props · Message fields
  • A downstream investigation records the user-visible impact on an inherited reply that references a thread-local file. Generative UI #47

What you ruled out

  • The thread-level sourceThreadId identifies B’s immediate source. It has the same value for every reply in B, including ones written after the fork. SDK fork lineage
  • Both histories contain the reply. The earlier fix for an empty fork timeline addresses a different symptom. The search of open and closed BB issues and PRs found no exact match. BB PR #2142

AGENT GENERATED

Activity

  1. added
    plugins
    threads
    on Dec 1, 2026
  2. bb-slop-cop commented on Dec 1, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    Type: Feature · Priority: Medium · Effort: High · Labels: plugins, threads

    The SDK already supplies the viewing thread ID. Exposing the authoring thread separately requires a new per-message provenance capability across forks. No bug report or PR was opened.

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

    pluginsthreads

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions