Repository navigation
Description
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
-
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. -
Set
source_idandfork_idto 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
-
To inspect what a renderer receives, open the inherited reply in a BB development build and inspect the
messageconstructed inConversationMessageContent. Compare itsthreadIdwith 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
messageasPluginMessageDirectiveMessage. 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
sourceThreadIdidentifies 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
bb-slop-cop commentedon Dec 1, 2026
🚨 SLOP COP 🚨 ·
new-issue-autopilotType: Feature · Priority: Medium · Effort: High · Labels:
plugins,threadsThe 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.