Skip to content

Show plugin-rendered interactions in ThreadChat - #6072

Closed
pascal-de-ladurantaye wants to merge 1 commit into
get-bb:mainfrom
pascal-de-ladurantaye:fix/thread-chat-plugin-interactions
Closed

pascal-de-ladurantaye wants to merge 1 commit into
get-bb:mainfrom
pascal-de-ladurantaye:fix/thread-chat-plugin-interactions

Conversation

@pascal-de-ladurantaye

@pascal-de-ladurantaye pascal-de-ladurantaye commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Human comments

What was wrong

EmbeddedThreadChat, the component behind ThreadChat (the side chat and plugin panels), dropped every pending interaction whose payload kind is plugin before rendering its banners. That filter dates from #957, when a plugin-owned interaction was meant to render in a composer of its own. Nothing renders it in the embedded chat today, so a plugin-rendered form never shows there. That covers an AskUserQuestion question and a secret request. The main thread view passes every interaction to the same ThreadPendingInteractionBanners, whose default branch mounts PluginPendingInteractionComposer, and that's why the form only appeared there. Details in #6071.

What changed

EmbeddedThreadChat no longer filters plugin interactions out. A plugin-rendered interaction now replaces the composer and hides held queued messages, as approvals and questions already do there, and as every interaction does in the main thread view. No wire, CLI or plugin API change.

How you verified

  • The two EmbeddedThreadChat tests that asserted the old behaviour now assert the banner in place of the composer, and the queue hidden while it's pending. Both fail before the change and pass after.
  • pnpm exec turbo run test --filter=@bb/app -- src/components/thread/embedded-chat/EmbeddedThreadChat.test.tsx src/components/thread/pending-interactions/ThreadPendingInteractionBanner.test.tsx src/components/plugin/PluginThreadChat.test.tsx: 41 tests passed.
  • pnpm exec turbo run typecheck --filter=@bb/app and pnpm exec turbo run lint --filter=@bb/app passed, and oxfmt --check passed on the changed files.
  • In a running app (pnpm dev), with a secret request pending on a side chat's thread, following the steps in ThreadChat (side chat, plugin panels) never shows plugin-rendered interactions such as AskUserQuestion forms #6071:
    • on main, the side chat showed "Requesting DEMO_TOKEN" and kept its composer, with no form; the same thread in the main view showed the form;
    • on this branch, the side chat shows the "Add secrets" form in place of its composer. Submitting it from the side chat resolved the request, the CLI wrote the env file, and the composer came back.
main This branch This branch, after submitting
The side chat on main: "Requesting DEMO_TOKEN" in its timeline, the Reply composer, and no form The side chat on this branch: the Add secrets form in place of its composer The side chat after submitting the form from it: "Provided DEMO_TOKEN" and the composer back

Fixes #6071

AGENT GENERATED

@pascal-de-ladurantaye
pascal-de-ladurantaye force-pushed the fix/thread-chat-plugin-interactions branch from 5d2a54c to f242c6d Compare October 22, 2026 21:11
@pascal-de-ladurantaye

Copy link
Copy Markdown
Contributor Author

Superseded by #6387, which fixes #6071 in the unified thread screen: plugin-rendered interactions now replace the composer in the side chat and in ThreadChat. Closing.

AGENT GENERATED

@pascal-de-ladurantaye
pascal-de-ladurantaye deleted the fix/thread-chat-plugin-interactions branch October 28, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ThreadChat (side chat, plugin panels) never shows plugin-rendered interactions such as AskUserQuestion forms

1 participant