Repository navigation
Add the thread context card behind an early-adopter experiment - #6529
Merged
Merged
Conversation
ymichael
force-pushed
the
bb/thread-details-card-thr_an3vhi6xak
branch
2 times, most recently
from
October 29, 2026 20:40
9664cf7 to
bcc50db
Compare
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only a compact viewport with a coarse pointer (a phone) keeps the composer context row instead of the card, the rule MessageActionBar already uses. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rename the thread details card to the thread context card and replace its row and section slots with one experimental_threadContextCard slot, where a title makes an entry a section. experimental_useThreadContextKind() reports whether a pane shows thread context as a banner or a card, so a context segment that also has a card entry hides itself there while other plugins' segments keep showing. The threadContextCard field leaves the segment input. Co-Authored-By: Claude Opus 5.5 <[email protected]>
experimental_threadContextCardRow and experimental_threadContextCardSection mirror the Info tab's row and section slots again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
bb/thread-details-card-thr_an3vhi6xak
branch
from
October 29, 2026 20:54
3c7328b to
3082c53
Compare
This was referenced Nov 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Human comments
What was wrong
A running thread's context (parent thread, changed files, pull request) lives in the context row above the composer. It scrolls out of mind once you are reading the transcript, it competes with the composer for space, and plugins could only add to it as composer-time segments. #6481 asks for a place in each thread pane, below the header, where bb owns placement and plugins own the contents.
What changed
Behind the
threadContextCardexperiment (on for early adopters), each thread pane gets a thread context card at its upper-right. A pane now shows its thread context one of two ways, a banner (the context row above the composer) or a card, and bb picks one per pane:gutter/shift, measured from the pane). The header button pins or unpins it (threadContextCard.pinned, a synced UI preference, default on). A narrow desktop pane or window (right panel open, splits, a half-screen window) opens it from the header button as a popover, the shared bottom drawer below 768px. Phones (a narrow touch screen, the rule the message action bar uses) keep the composer context row and show no card.ThreadContextCardCore.tsx), the Git plugin's Changes row (+N −M, opens the Diff tab), and GitHub PR Status's PR row (the banner's own label, now shared asPullRequestSummaryLabel, with a…menu: open, copy link, merge, ready/draft). A row'sactionreplaces itstrailingon hover or focus. Row menus open just below the card, aligned to its edges. A card with nothing in it shows an empty state.experimental_useThreadContextKind()iscard. bb's parent, Git changed-files and PR segments do this. Threads shown inside a panel or as a transcript are alwaysbanner.app.slots.experimental_threadContextCardRowandapp.slots.experimental_threadContextCardSection(the card's counterparts of the Info tab's row and section slots), the host row componentexperimental_ThreadContextCardRow, andexperimental_useThreadContextKind(): "banner" | "card". The segment input is unchanged frommain. Core's entries go through the same provider and row component, and core's parent segment uses the same function as the hook. Audit entry indocs/api_to_audit.md; Plugin Guide surface, wireframe region and anatomy updated; plugin SDK 0.6.102 → 0.6.103.· Auto-mergewhen no other next step is shown (nothing when queued, since "Queued to merge" says it); the Info tab shows a muted "Auto-merge on" that truncates instead of overlapping.docs/configuration.md(experiment + preference),bb guide customizationtemplate, Settings → Experiments copy, bb-guidefrontend-thread-details-card.md(new, linked from SKILL.md),frontend-registration.md,frontend-components.md, API indexes. The Ladle SDK shim gains four missing exports so the PR plugin gallery loads; galleries for card rows and PR states added.No server/daemon wire changes.
How you verified
pnpm exec turbo run typecheck lint test --filter='...[origin/main]': typecheck and lint green across 254 tasks. The test failures were unrelated: two app flakes and an MCP timeout test that pass on their own, plus the Electron preload smoke test, which fails the same way onorigin/mainon this machine. After rebasing on the latestmain, the affected packages were rerun green (39 tasks), plus@bb/server/@bb/clitypecheck and lint, and the server docs/skills/experiments tests (125).PluginThreadContextCard.test.tsx(ordering, crash isolation, per-pane scoping, pin toggle, popover close on row run, and the kind each pane reports, including a thread nested in a panel), a banner segment test that the parent segment yields to the card, PR segment tests for the card kind and auto-merge wording.start:worktreeserver: experiment toggle round-trip,threadContextCard.pinnedget/set/reset and rejection of non-booleans.bb git status|files,bb pull-request showandbb thread showoutput was byte-identical to anorigin/mainserver on a copy of the same data. The guide and skill docs ship on the branch only.origin/mainserver and the branch server on identical data: wide, medium, narrow and phone widths, light theme, empty, parent-only and children-only cards, PR hover and menu, the Settings experiments list and the Plugin Guide. With the experiment off, the branch renders the same asmain.Fixes #6481
🤖 Generated with Claude Code