Repository navigation
Conversation
ymichael
added a commit
that referenced
this pull request
Nov 24, 2026
Drop the second, directory-chosen binding and resolve the core binding with moduleSideEffects: false, as #8088 does, so each importer pulls in only the members it uses. The Info components keep their import() split, which boot still needs (1748.8 KB without it, 1619.1 KB with it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
bb/move-the-parent-segment-and-context-card-core-ro-thr_3vekg59pjx
branch
2 times, most recently
from
November 24, 2026 05:45
0d8afb2 to
6acc2bc
Compare
ymichael
added a commit
that referenced
this pull request
Nov 24, 2026
Drop the second, directory-chosen binding and resolve the core binding with moduleSideEffects: false, as #8088 does, so each importer pulls in only the members it uses. The Info components keep their import() split, which boot still needs (1748.8 KB without it, 1619.1 KB with it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
bb/move-the-parent-segment-and-context-card-core-ro-thr_3vekg59pjx
branch
2 times, most recently
from
November 25, 2026 00:18
799cd7c to
b00bc5a
Compare
ymichael
added a commit
that referenced
this pull request
Nov 25, 2026
Drop the second, directory-chosen binding and resolve the core binding with moduleSideEffects: false, as #8088 does, so each importer pulls in only the members it uses. The Info components keep their import() split, which boot still needs (1748.8 KB without it, 1619.1 KB with it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
added a commit
that referenced
this pull request
Nov 26, 2026
Drop the second, directory-chosen binding and resolve the core binding with moduleSideEffects: false, as #8088 does, so each importer pulls in only the members it uses. The Info components keep their import() split, which boot still needs (1748.8 KB without it, 1619.1 KB with it). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
added a commit
that referenced
this pull request
Nov 26, 2026
## Human comments ## What was wrong bb's Info tab was registered through the public tab slot, but its body was not public. `ThreadSecondaryPanel` filled a private React context (`ThreadInfoContentContext`) with `<ThreadMetadataContent>`. That component took 18 props built in `ThreadDetailView` and merged a core-only array of seven rows and three sections with plugin registrations. No plugin could build or replace that body. Core rows read private host state that plugin rows can't reach (audit V8, core-contributions rank 8). Emptiness was also decided from core fields alone. `hasAnyThreadMetadata` (`ThreadDetailSecondaryContent.tsx`) showed "No thread details available." whenever core saw no environment, parent, provisioning failure, archive or forks. That hid every plugin row and section, and core's own Parent and Project rows (a-thread F12). Repro on main: a pending thread with no environment and an automation targeting it shows only "No thread details available."; the Automations section is hidden. Main's provisioning-failure row was also wrong. It scanned the cached timeline for a `systemKind: "error"` row titled "Provisioning thread failed". `normalize-provisioning-failures` replaces that row with an `operation` row, so a real failure (a worktree whose repository is gone) showed "No thread details available." instead of "Environment: Not created · provisioning failed". Nothing durable recorded the failure: the thread only moved to `error`, which a lost start, a refused start command or `provider.failed` before start also do. ## What changed **The Info tab is the public host** - `experimental_ThreadInfo` (component, `ExperimentalThreadTabProps`) is the Info body. Implementation: `apps/app/src/components/secondary-panel/info/ThreadInfo.tsx`. - It renders every `threadInfoRow` and `threadInfoSection`, bb's own included, through the same mount path. - It shows a skeleton while the thread loads. - It shows "No thread details available." only when no `dt` and no `[data-info-section]` rendered. - `apps/app/src/core-contributions/thread-info.tsx` (plus `thread-info/*.tsx`) registers: - the `info` fixed tab; - the seven rows: Parent, Notify parent, Project, Environment and Machine, provisioning failure, Directory, Archived; - the three sections: Child threads, Forks, Thread storage. - They import only `@get-bb/plugin-sdk` and registry components; `bb/core-contribution-imports` is green. - The registration module stays light. The components live in `core-contributions/components/ThreadInfoEntries.tsx` (inside #8152's `src/core-contributions/components/*` split boundary), and each row and section is an `experimental_lazy` part, the helper #8152 added for core contributions. The host's ordered reveal (`useOrderedReveal`) holds them like plugin entries. `ThreadInfoSlots` renders a pending marker while the reveal holds an entry, and the host shows its skeleton rather than the empty text. - When Info is the restored panel tab, bb's rows and sections start through #8203's restored-parts path: `bootPluginFrontends` passes the same `restoredLazyParts` list to `startRestoredCoreContributionParts` (`apps/app/src/lib/core-contribution-parts.ts`). Calling `readStoredPanelTabs` from boot instead would add 12.5 KB raw / 2.3 KB brotli, which #8203 kept out. - `vite-core-plugin-sdk-app.ts` resolves the one core binding with `moduleSideEffects: false` (the same option as #8088), so each importer pulls in only the members it uses. - Boot payload: 1661.3 KB raw / 417.3 KB brotli against main's 1657.4 KB raw / 417.1 KB brotli, inside the 1682.1 KB / 419.1 KB budget, with no split-boundary violations. - `plugin-slots.ts` puts them first in the slot lists plugins join. - Removed: - `ThreadInfoContentContext` and `thread-info-registration.tsx`; - `ThreadMetadataContent` and its 18-prop `metadata` plumbing; - `metadataContent` on the secondary panel; - `hasAnyThreadMetadata`; - the private parent-thread subset query; - `useThreadTimelineProvisioningFailure` and `thread-provisioning-failure.ts`. - Section collapse state is stored under `<pluginId>/<id>` for every section; bb's own are `bb--core/<id>`. The `infoPanel.collapsedSections` schema maps the legacy bare ids `childThreads`, `forks` and `threadStorage`, so existing collapsed state carries over. **New and changed public API (plugin SDK 0.6.205)** - `experimental_useEnvironment(environmentId): ExperimentalEnvironmentState` - States: `loading`, `ready` with `environment`, `notFound`, `error`, the same as `experimental_useThread`. - `ExperimentalEnvironment` = `environments.get`'s `Environment` plus `label` and `host: { id, name, connected, local, named, machineProvider } | null`. - It reads the same realtime-kept environment, hosts and provider queries the thread view uses. - `label` comes from core's `formatEnvironmentDisplay`/`getEnvironmentWorkspaceInfoDisplay`. - `named` and `machineProvider` carry core's Machine-row rules. - `GET /api/v1/hosts/:id?includeRemoved=true` / `useSdk().hosts.get({ hostId, includeRemoved })` returns a removed machine, disconnected, so the Machine row keeps naming it. - `experimental_useThreadStorageFiles(threadId, { enabled? }): ExperimentalThreadStorageFilesState` - States: `loading`, `ready` with `files`, or `error` with `errorMessage` (core's error text). - `enabled: false` pauses the read and keeps the last list, the same option shape as the RPC query hooks. Core's Thread storage section pauses it while the Info tab is hidden or the machine is offline. - `experimental_searchPickerOptions({ options, query, getLabel, getAliases? })` exposes bb's picker ranking. - It is named after `searchPickerOptions`, which moved from `@bb/shared-ui/picker-search` into `@bb/fuzzy-match`. - Core and the SDK runtime now share that one function. - `ExperimentalThread.runtime.failure: "provisioning" | null`. - Stored in the new nullable `threads.failure_kind` (migration `0172_thread_failure_kind`, generated by drizzle-kit). - Written only in `writeThreadLifecycleStateInTransaction`: set when `provisioning.failed` moves the thread to `error`, cleared on every other status move. - Filled by the runtime builders for `threads.get`, sidebar entries and status-change realtime. - Server to client only; no daemon protocol change. - Type-only widening, already supported at runtime: `ExperimentalThreadTitleTextProps.tooltip`. **Registry components (no SDK member)** - Moved from `apps/app` into `@bb/shared-ui` and published by `plugin-registry`: - `option-picker` (13 app callers repointed); - `thread-unarchive-button`; - `truncate-path-middle`; - `thread-storage-tree`; - `use-thread-storage-browser`; - `right-panel-file-visuals`. - Newly published: `info-list-row`, `copy-button`, `list-loading-placeholder`, `picker-layout`, `use-reset-picker-scroll`, and a new `info-list-more-row`. **Docs** - `docs/api_to_audit.md`: - new entries for `experimental_useEnvironment`, `experimental_useThreadStorageFiles` and `experimental_searchPickerOptions`; - updated entries for Info rows/`experimental_ThreadInfo`, `experimental_useThread` (`runtime.failure`), panel tabs, unified tabs and thread-title text. - Plugin Guide `surfaces.ts` and the anatomy manifest. - bb-plugin-authoring `frontend-registration.md` and `frontend-components.md`. - `docs/configuration.md` row for `infoPanel.collapsedSections`. **Core callers on the shared path** - Every core Info row and section and the Info tab itself (`thread-info.tsx`) run on the public slots and hooks. - `ThreadInfoRows`/`ThreadInfoSections` mount core and plugin entries identically. - The lazy panel placeholder renders the same `ThreadInfo`. - `BranchPicker`, `ProjectSelector`, `ModelReasoningPicker` and machine search call the same `searchPickerOptions`. **Visible changes, all intended** - A thread with no environment, parent, failure, archive or forks now shows its Parent and Project rows and any plugin rows or sections, instead of "No thread details available." (F12). - A real provisioning failure now shows "Environment: Not created · provisioning failed". - Thread storage no longer marks the file open in a split panel pane, or opens folders and expands "N more" to reveal it. That highlight only showed with Info and the file side by side, and reading it publicly needed a required `target` on every file tab. Removed with `InfoList`'s `revealIndex`, which existed only for it. - Everything else matched main on live data (see below). ## How you verified **Live, one dev server, main's app bundle via a proxy against the branch's bundle on identical data:** - Info card element screenshots are pixel-identical for: - a child thread (Parent link, Notify parent "When stuck", Project, Environment, Directory, Git rows); - an archived thread (Archived row with Unarchive); - a fork. - On the root worktree thread (Child threads, Forks, Thread storage) the only difference is the relative time "3m" against "4m", from capture timing. - Parent picker options are identical ("None", "Fork of QA"; the child and the archived thread excluded). - Opening a storage file opens the same tab on both builds. - F12: the pending thread with an automation shows "No thread details available." on main. On the branch it shows Parent, Project and the Automations section. - Provisioning failure: a worktree thread whose repository was deleted before dispatch. Main shows "No thread details available."; the branch shows "Environment: Not created · provisioning failed". The DB row has `failure_kind = 'provisioning'`. - Two machines (a second daemon enrolled on the dev server): the Machine row is pixel-identical on main and branch for a thread on each machine. - Removed machine (host set to `destroyed` in the dev DB, then restored): both builds show "Unavailable — machine removed" with Machine "Studio (second)". The branch gets the name from `hosts.get({ includeRemoved: true })`. - Removing machine (host `phase = 'removing'`): both builds show "Machine removal in progress" with the machine named. Pixel-identical. - Split panes (Root and Child threads side by side): the Info panel follows the focused pane on both builds. Pixel-identical for the child; the root differs only in the Forks collapse state. **Tests (each fails on main for the behaviour it covers):** - `ThreadInfo.test.tsx`, 7 tests: - plugin section plus core rows on a thread without metadata; - Environment label, Machine row and new-thread action with two machines; - removed machine named through the removed-host read; - provisioning failure shown only for `runtime.failure`; - archived thread read by id; - child threads and forks; - parent options (children first; self, descendants, side chats and other projects excluded). - `lifecycle-failure-kind.test.ts`: `provisioning.failed` sets the failure. A lost start, a refused start command, `provider.failed` before start and a deleted environment row leave it null. A retry clears it. The check covers the column, `threads.get` and the list entry. - `public-host-get-removed.test.ts`: `includeRemoved` returns a removed host; a plain GET still 404s. - `public-ui-preferences.test.ts`: legacy section ids map to `bb--core/*`. - `ThreadInfoSlots.test.tsx`: updated so the "core" entries are a plugin registered first, and it settles bb's lazy Info entries before asserting. - `core-contribution-parts.test.ts`: bb's Info rows and sections start loading when Info is the restored tab and not for another restored tab. **Commands:** - `pnpm exec turbo run typecheck lint --filter='...[origin/main]'`: 168/168. - `pnpm exec turbo run test` for @bb/app, @bb/server, @bb/db, @bb/domain, @get-bb/plugin-sdk, @bb/shared-ui, @bb/fuzzy-match, @bb/plugin-registry, @bb/sdk, @bb/server-contract, @bb/test-helpers, demo-server, bb-guide, the Git plugin and plugin-api-docs: all green. - `node apps/app/scripts/check-bundle-budget.mjs` after `turbo run build --filter=@bb/app`: OK (numbers above). `drizzle-kit generate`: no schema changes after 0172. - After rebasing onto #8152/#8203, live on `pnpm start:worktree`: the Info tab on the root thread shows the same rows, Git rows and sections. A reload with Info restored requests the Info chunk 122 ms in, right after the plugin loader chunk. The provisioning-failure and pending-automation threads show what they did before. ## Plugin author impact One type-only break. Runtime values are unaffected: the host always sends the field. Plugin code typed against these shapes needs it when it builds them, which in practice means test fixtures. - **`runtime.failure` is required** on `ExperimentalThread` (`ThreadWithRuntime`) and thread list entries. Add `failure: null` to literal `runtime` objects. In the community corpus (504 folders), 31 folders build `runtime: { displayStatus }` literals, all in tests or test helpers. Only the ones typed as these thread shapes break. Examples: tobi/bb-bots-sidebar `tests/workflow-runs.test.ts`, openwizdev/WizPlugins wizbar tests, VKirill/bb-plugin-project-folders `auto-archive.test.ts`. I did not edit these plugins. **Community callers that can migrate (not edited):** - environment reads in the app: 14 folders call `useSdk().environments.*` and about 10 call `hosts.*` as one-shot fetches, e.g. SergeyGavrilov/bb-diff-tree, wy3z/bb-cursor-suite agent-pills; - storage files: 9 folders call `threads.storageFiles`. - The KosachMax/bb-plugin-notion-theme CSS on `dl [data-info-section]` still matches. 🤖 Generated with [Claude Code](https://claude.com/claude-code) > AGENT GENERATED --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
bb/move-the-parent-segment-and-context-card-core-ro-thr_3vekg59pjx
branch
from
November 26, 2026 05:03
b00bc5a to
493e383
Compare
Core's parent thread and Child threads, the Git plugin's changed files and GitHub PR Status's pull request each register one thread context item (app.slots.experimental_threadContextItem) with an optional banner part and an optional card part. bb shows the banner part in banner panes, and in card panes only when the item has no card part. The old segment, card row and card section slots are adapted onto items, so older plugins keep working. Segments get the thread's environment, the pull request sorts before Git everywhere, and core's rows use only the public SDK (experimental_useThread, experimental_threadDisplayTitle and friends). Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
force-pushed
the
bb/move-the-parent-segment-and-context-card-core-ro-thr_3vekg59pjx
branch
from
December 1, 2026 04:55
493e383 to
572cbf5
Compare
Its one use was hiding a context segment while the card showed the same content, which thread context items now do in the host. The hook and ExperimentalThreadContextKind leave the typings, the testing harness, the Plugin Guide and the authoring docs. Plugins that still import it build with a migration warning naming experimental_threadContextItem and keep working through retiredPluginSdkAppMembers. Co-Authored-By: Claude Opus 5.5 <[email protected]>
ymichael
deleted the
bb/move-the-parent-segment-and-context-card-core-ro-thr_3vekg59pjx
branch
December 1, 2026 05:23
scowalt
pushed a commit
to scowalt/bb
that referenced
this pull request
Dec 1, 2026
## Human comments
## What was wrong
One piece of thread context, such as the parent thread or a pull
request, needed separate registrations for each surface: a context
segment above the composer and a context card row or section. They were
linked only by a rule each plugin hand-wrote: hide the segment in panes
that show the card. Core, Git and GitHub PR Status each carried that
rule, and so do at least six community plugins (audit a-thread F7).
Core's own parent segment, parent row and Child threads section also
read private modules and mounted outside the slot crash boundary.
The segments' `environment` was also gated on git eligibility
(`contextEnvironmentId`, the other half of F7), while card rows, Info
rows and tabs got the thread's environment. So the same prop meant
different things on different surfaces.
## What changed
- **One registration per piece of thread context.**
`app.slots.experimental_threadContextItem({ id, title, group, order?,
banner?, card? })`.
- `banner` is a context row segment: `{ summary, action?, details?,
useVisible? }`.
- `card` is `{ row }` or `{ section }`.
- A plugin registers only the parts it draws.
- bb places them. The banner part shows in `banner` panes, and in `card`
panes too when the item has no card part, so no pane shows the same
thing twice. In a `card` pane the banner part's `useVisible` does not
run.
- The collector rejects:
- an item with no parts;
- a card with both or neither of `row` and `section`;
- an item id the plugin already uses for an item, segment, card row or
card section.
- **Callers moved.** These now register items, each with one shared
group and order:
- core's parent thread (banner and card row) and Child threads (card
section), importing only the public SDK;
- the Git plugin's changed files (banner and card row);
- GitHub PR Status's pull request (banner and card row).
- **The old slots keep working.**
- `threadContextItemsOf` (`apps/app/src/lib/plugin-slots.ts`) adapts
every legacy segment, card row and card section onto a one-part item.
The banner and the card read one slot kind, and plugins built against
older SDKs run unchanged.
- Legacy segments still show in both kinds, as before.
- `CapturedPluginApp` adds `threadContextItems` and keeps the legacy
arrays.
- **`contextKinds` is gone.** It never shipped on main.
- **F7b: segments get the thread's environment**, as card rows, Info
rows and tabs do; `null` remains only for embedded `ThreadChat`.
- The git gate only ever affected non-git environments. For a removed
machine or a destroyed environment, the composer already shows read-only
history, which never renders plugin segments.
- The Git segment still needs a git status with a workspace.
- PR Status still needs a pull request.
- **Order.** `experimental_THREAD_INFO_ROW_GROUPS.pullRequest` is now
`2_pullRequest`. The pull request now sorts before Git in the card and
the Info tab, matching the banner.
- **Lazy loading (get-bb#8152).**
- `PLUGIN_APP_COMPONENT_FIELDS` learns nested part paths
(`banner.summary`, `card.component`).
- The banner and card hosts keep `useOrderedReveal` over items.
- **Core rows on the public SDK.**
- `experimental_useThread`, `navigate.experimental_threadHref`,
`navigate.toThread` and `experimental_useSidebarThreads()`.
- The new pure `experimental_threadDisplayTitle`, which core's
`getThreadDisplayTitle` also returns.
- `inline` on `ExperimentalThreadTitleTextProps`.
- `experimental_ThreadContextCardRow` in the core binding, resolved
side-effect-free (`moduleSideEffects: false`) to keep the boot payload
in budget.
- `ThreadContextCardCore.tsx` and `useParentThreadSection.ts` are
deleted.
- **Docs.**
- `docs/api_to_audit.md`: a new thread context items entry, and the
card, segment, `experimental_useThread` and
`experimental_threadDisplayTitle` entries updated.
- Plugin Guide `surfaces.ts` and the anatomy manifest anchors.
- The bb-plugin-authoring references `frontend-thread-context-card.md`,
`frontend-registration.md`, `frontend-core-slots.md` and
`frontend-components.md`.
- JSDoc for `experimental_useThreadContextKind` and the card row and
section docs (the card experiment is retired).
- SDK 0.6.213.
Visible differences from main:
- **Pull request before Git.** The card and the Info tab now list the
pull request before Git: "Parent, PR, Changes" in the card, and
"…Directory, Pull request, Branch, Git status" in the Info tab. The
banner already showed "PR, changed files".
- **Parent group label.** The parent segment's summary gains the slot's
`role="group"` "Parent thread" wrapper.
- **Cmd/Ctrl-click on the parent link** opens a split, like bb's other
thread links.
- **Archived child in a wide pane.** The read-only banner hides the
parent, which the card shows, and shows Unarchive in its place (approved
Nov 24).
## How you verified
- **Tests.**
- `ThreadPromptContextBanner.segments.test.tsx` runs one placement table
against core's parent thread, the Git item and a third-party item in
`card` and `banner` panes. A banner-only item and a legacy segment show
in both.
- The existing focus-handoff table passes unchanged.
- `plugin-app-thread-context-item.test.ts` covers collection, every
rejection, and id collisions in both registration orders. Legacy
segments and card rows may still share an id.
- `plugin-app-component-fields.test.ts` finds an item's nested lazy
components.
- `PluginThreadContextCard.test.tsx` runs on core items plus legacy
plugin rows and sections.
- **Checks.**
- `pnpm exec turbo run typecheck lint test` passes for `@bb/app`,
`@get-bb/plugin-sdk`, `@bb/plugin-registry`, `@bb/domain`,
`@bb/scripts`, `bb-plugin-bb--git`, `bb-plugin-bb--github-pr-status`,
`bb-plugin-plugin-api-docs` and `bb-plugin-bb-guide` (32/32).
- The boot bundle budget and the plugin SDK version guard pass.
- Rebased onto `f253bb24cb7`: the same 9 packages pass typecheck, lint
and test, except one `@bb/app` test that timed out under a load average
of ~70. It and two other load-sensitive app test files pass when run
alone (408/408, twice).
- **Live A/B, main (`e9e0493838b`) against this branch.** I ran `pnpm
start:worktree` from each build in turn on one data directory, so
server, plugins and app all came from the same build.
- Fixtures:
- a parent with three children and one archived child, and a fork;
- a child and parent on a git clone of this branch with an uncommitted
change and PR get-bb#8088 open;
- a thread on a plain folder.
- At 1000px (banner) and 1700px (card), element screenshots are
pixel-identical for:
- the parent, fork and archived-child banners;
- the git child's and git parent's banners (PR, changed files);
- the parent, fork and archived child card rows;
- the Child threads section;
- the plain-folder card;
- a two-pane split.
- The fork card differs by 10 pixels along its edges (anti-aliasing).
- The plain-folder thread shows no Git or PR rows on either build.
- The only other differences are the visible changes listed above.
- Navigation is identical on both builds, with no page reload:
- the banner parent link;
- the card parent row and a Child threads row;
- the parent link inside a two-pane split.
> AGENT GENERATED
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Claude Opus 5.5 <[email protected]>
This was referenced Dec 2, 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
One piece of thread context, such as the parent thread or a pull request, needed separate registrations for each surface: a context segment above the composer and a context card row or section. They were linked only by a rule each plugin hand-wrote: hide the segment in panes that show the card. Core, Git and GitHub PR Status each carried that rule, and so do at least six community plugins (audit a-thread F7). Core's own parent segment, parent row and Child threads section also read private modules and mounted outside the slot crash boundary.
The segments'
environmentwas also gated on git eligibility (contextEnvironmentId, the other half of F7), while card rows, Info rows and tabs got the thread's environment. So the same prop meant different things on different surfaces.What changed
app.slots.experimental_threadContextItem({ id, title, group, order?, banner?, card? }).banneris a context row segment:{ summary, action?, details?, useVisible? }.cardis{ row }or{ section }.bannerpanes, and incardpanes too when the item has no card part, so no pane shows the same thing twice. In acardpane the banner part'suseVisibledoes not run.rowandsection;threadContextItemsOf(apps/app/src/lib/plugin-slots.ts) adapts every legacy segment, card row and card section onto a one-part item. The banner and the card read one slot kind, and plugins built against older SDKs run unchanged.CapturedPluginAppaddsthreadContextItemsand keeps the legacy arrays.contextKindsis gone. It never shipped on main.nullremains only for embeddedThreadChat.experimental_THREAD_INFO_ROW_GROUPS.pullRequestis now2_pullRequest. The pull request now sorts before Git in the card and the Info tab, matching the banner.PLUGIN_APP_COMPONENT_FIELDSlearns nested part paths (banner.summary,card.component).useOrderedRevealover items.experimental_useThread,navigate.experimental_threadHref,navigate.toThreadandexperimental_useSidebarThreads().experimental_threadDisplayTitle, which core'sgetThreadDisplayTitlealso returns.inlineonExperimentalThreadTitleTextProps.experimental_ThreadContextCardRowin the core binding, resolved side-effect-free (moduleSideEffects: false) to keep the boot payload in budget.ThreadContextCardCore.tsxanduseParentThreadSection.tsare deleted.docs/api_to_audit.md: a new thread context items entry, and the card, segment,experimental_useThreadandexperimental_threadDisplayTitleentries updated.surfaces.tsand the anatomy manifest anchors.frontend-thread-context-card.md,frontend-registration.md,frontend-core-slots.mdandfrontend-components.md.experimental_useThreadContextKindand the card row and section docs (the card experiment is retired).Visible differences from main:
role="group""Parent thread" wrapper.How you verified
ThreadPromptContextBanner.segments.test.tsxruns one placement table against core's parent thread, the Git item and a third-party item incardandbannerpanes. A banner-only item and a legacy segment show in both.plugin-app-thread-context-item.test.tscovers collection, every rejection, and id collisions in both registration orders. Legacy segments and card rows may still share an id.plugin-app-component-fields.test.tsfinds an item's nested lazy components.PluginThreadContextCard.test.tsxruns on core items plus legacy plugin rows and sections.pnpm exec turbo run typecheck lint testpasses for@bb/app,@get-bb/plugin-sdk,@bb/plugin-registry,@bb/domain,@bb/scripts,bb-plugin-bb--git,bb-plugin-bb--github-pr-status,bb-plugin-plugin-api-docsandbb-plugin-bb-guide(32/32).946ba1822a7: the same 9 packages pass typecheck, lint and test, except one@bb/apptest that timed out under a load average of ~70. It and two other load-sensitive app test files pass when run alone (408/408, twice).2a21dd56f69) against this branch. I ranpnpm start:worktreefrom each build in turn on one data directory, so server, plugins and app all came from the same build.🤖 Generated with Claude Code