Repository navigation
Show plugin-rendered interactions in ThreadChat - #6072
Closed
pascal-de-ladurantaye wants to merge 1 commit into
Closed
pascal-de-ladurantaye wants to merge 1 commit into
pascal-de-ladurantaye wants to merge 1 commit into
Conversation
3 tasks done
pascal-de-ladurantaye
force-pushed
the
fix/thread-chat-plugin-interactions
branch
from
October 22, 2026 21:11
5d2a54c to
f242c6d
Compare
Contributor
Author
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
EmbeddedThreadChat, the component behindThreadChat(the side chat and plugin panels), dropped every pending interaction whose payload kind ispluginbefore 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 anAskUserQuestionquestion and a secret request. The main thread view passes every interaction to the sameThreadPendingInteractionBanners, whose default branch mountsPluginPendingInteractionComposer, and that's why the form only appeared there. Details in #6071.What changed
EmbeddedThreadChatno 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
EmbeddedThreadChattests 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/appandpnpm exec turbo run lint --filter=@bb/apppassed, andoxfmt --checkpassed on the changed files.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: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;mainFixes #6071