Skip to content

Plugin-embedded ThreadChat's composer summary omits the Project chip the main thread view shows #4501

Closed

Description

@cristoslc

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

Steps to reproduce

  1. Install focus-board from https://github.com/cristoslc/bb-plugin-focus-board (or a minimal plugin that renders <ThreadChat threadId={…} />).
  2. 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.
  3. 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.
  4. 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):

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

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

AGENT GENERATED

Activity

  1. added theissue type on Sep 30, 2026
  2. added
    ui
    plugins
    partial-repro
    on Sep 30, 2026
  3. SawyerHood commented on Sep 30, 2026

    @SawyerHood
    Collaborator

    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.

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

    partial-repropluginsui

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions