Repository navigation
Description
Summary
The composer of the plugin-embedded ThreadChat shows the same environment/checkout summary row the main thread view shows, but without the Project chip. The shared ThreadEnvironmentSummary component supports a projectName prop and renders a Project chip for it, and the main thread view passes that prop. The embedded plugin surface (PluginThreadChat.tsx) renders the same component without it. In practice, a chat opened from a plugin pane or full-page plugin route tells you the checkout kind and branch but not which project the thread belongs to — and for a project's own checkout the label is the generic "Project Checkout", so nothing on the row identifies the project. There is no way for the plugin to fix this: ThreadChat accepts no project/environment props, and composer customization offers no slot that lands in this row.
Versions and environment
- bb 0.44.0 (desktop app), macOS 26 arm64. Verified against the
desktop-v0.44.0tag (commit0baa605b32a00619c1d7e3f32be6553ebcf8244a), which matches the shipped minified bundle shape. @get-bb/plugin-sdk0.5.29- Repro consumer: focus-board 0.5.16 (source: https://github.com/cristoslc/bb-plugin-focus-board), which embeds the SDK
ThreadChatin a plugin side pane; any plugin embeddingThreadChatbehaves the same - Worktree environments and project checkout both reproduce; remote machines not required
Steps to reproduce
- Install focus-board from https://github.com/cristoslc/bb-plugin-focus-board (or a minimal plugin that renders
<ThreadChat threadId={…} />). - Take a thread that belongs to a project (project id set), whose environment is either the project's own checkout or a git-worktree environment.
- Open that thread in the main thread view. The composer's checkout summary row starts with a Project chip (folder icon, project name), followed by checkout type and branch.
- Open the same thread's chat from the plugin surface. Same thread, same environment — the row shows checkout type and branch only.
Expected vs actual
Expected: the embedded summary row matches the main view for the same thread, including the Project chip.
Actual: no Project chip. When the environment is the project's own checkout ("Project Checkout") and the host chip reads as the local machine, nothing on the row identifies the project, so a chat in a plugin surface does not even say which project it belongs to.
Workarounds: the plugin can build its own context strip below the component from SDK data (focus-board does this as of its current main), but there is no plugin-side way to fix the row itself: ThreadChatProps exposes no projectName or environment props, and ComposerCustomization only supports actions/banners/plusMenu/richText, none of which render into this summary row.
Evidence
All from the desktop-v0.44.0 tag (commit 0baa605b32a00619c1d7e3f32be6553ebcf8244a):
ThreadEnvironmentSummaryacceptsprojectName?: stringand renders a Project chip when set, as the first chip of the row: ThreadEnvironmentSummary.tsx#L19-L63- The main thread view passes
projectName(resolved viauseProjectDisplayName): ThreadDetailPromptArea.tsx#L1680-L1693 - The embedded plugin chat renders the same component with every prop except
projectName: PluginThreadChat.tsx#L209-L229. The file has no project-name query at all (useProjectDisplayNameis imported by the main view only).
Also confirmed at runtime: the shipped 0.44.0 desktop bundle (app.asar extracted) contains the memoized summary component with the projectName branch, invoked from the main view with the prop and from the embedded chat without it — so the tag source reflects what runs.
Investigation thread: bb thread thr_f11d76ec6ffe27JDY5LYA1Y1Qr (focus-board project), verified 2026-09-29.
What you ruled out
- Not a duplicate of Embedded ThreadChat should inherit compatible provider features #2967: that asks for embedded
ThreadChatto inherit provider features (message actions, context usage); this is project identity in the composer summary, independent of providers. - Not Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438/ThreadChat drops local-file link routing on full-page plugin routes: inline-code file mentions, @thread mentions, and workspace-relative images render dead #4466: those cover message-body link routing; this is composer chrome.
- Not the plugin's markup or data: the identical thread and environment render the Project chip in the main view, and the SDK type of
ThreadChathas no project/environment surface through which the plugin could supply it. - Not version staleness: reproduced on desktop 0.44.0 (latest stable); the shipped bundle matches the tag source.
Suggested priority and effort (optional)
Low-to-medium priority, low effort. Affects every plugin surface embedding ThreadChat; the data is already available inside PluginThreadChat's render (the thread carries projectId, and the project-name hook used by the main view is in-tree). A one-lookup change in PluginThreadChat.tsx to derive the project display name and pass projectName to its ThreadEnvironmentSummary would close the parity gap. The alternative of exposing it as an SDK prop is heavier and not needed.
Happy to attempt a PR after contributor approval (per CONTRIBUTING.md, joining #contributors first).
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. (Verified on bb 0.44.0 desktop, latest stable.) - I searched open and closed issues for the same problem. (Searches run:
ThreadChat,projectName ThreadEnvironmentSummary,environment summary project chip,composer checkout summary project,project chip; only overlaps Embedded ThreadChat should inherit compatible provider features #2967/Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438/ThreadChat drops local-file link routing on full-page plugin routes: inline-code file mentions, @thread mentions, and workspace-relative images render dead #4466, addressed above.) - If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
AGENT GENERATED
Activity
SawyerHood commentedon Sep 30, 2026
Verified report: https://get-bb.github.io/reports/issues/4501.html
PARTIALLY REPRODUCED: two clean same-SHA component runs omit projectName; two actual Chromium summary renders show the missing chip and supplied-name control. Full plugin-page integration remains untested.
Make plugin surfaces prove they use core's path and delete plugin-onl…