Skip to content

Hide side-chat queues during pending interactions - #2906

Merged
ymichael merged 1 commit into
mainfrom
bb/fixer-complete-side-chat-pending-interaction-own-thr_ytqz27w54s
Sep 2, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fixer-complete-side-chat-pending-interaction-own-thr_ytqz27w54s

Conversation

@ymichael

@ymichael ymichael commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

PR #2870 kept side-chat questions and queued messages visible together, but its pending-interaction policy covered only sending: queued-message editing and deletion remained available while a provider waited for an answer. Side-chat tabs also remount, and the interaction query could reuse cached empty data while its required refresh was still discovering a new question, briefly exposing the composer before the answer controls appeared.

What changed

  • Hide both the side-chat composer and queued-message stack while a normal provider question, interaction refresh, or interaction-load error owns the composer. Held messages return unchanged after the question is answered.
  • Keep plugin-owned interactions unchanged; they continue to show both the composer and queue.
  • Share one pending-interaction freshness rule between regular threads and side chats so cached empty data remains unknown while its refresh is in flight.
  • Add regressions for provider questions, plugin-owned interactions, initially unknown state, and cached-empty refreshes with queued messages.
  • This is UI-only: there are no host-daemon wire, CLI, guide, or documentation changes, so HOST_DAEMON_PROTOCOL_VERSION is unchanged.

How you verified

  • pnpm exec turbo run test --filter=@bb/app -- --run src/components/thread/embedded-chat/EmbeddedThreadChat.test.tsx src/hooks/queries/thread-queries.test.tsx — 39 tests passed.
  • pnpm exec turbo run typecheck --filter=@bb/app — passed.
  • pnpm exec turbo run build --filter=@bb/app — passed with existing build warnings.
  • pnpm exec turbo run lint --filter=@bb/app — passed with 176 existing warnings and 0 errors.
  • Real Claude Code browser QA passed at 1280×720 and 390×844 coarse-pointer/no-hover viewports: the question remained usable while the held queue and composer were absent.
  • Delaying both interaction requests by eight seconds showed only the checking state until the real question appeared; neither the queue nor composer flashed.
  • The final rebase preserved stable patch ID 1e29d4c56a82d1935cdbaa356b2d40a85d9a48d9, and git diff --check passed.

Fixes #2869

AGENT GENERATED

@ymichael
ymichael merged commit e7598f8 into main Sep 2, 2026
15 checks passed
@ymichael
ymichael deleted the bb/fixer-complete-side-chat-pending-interaction-own-thr_ytqz27w54s branch September 2, 2026 06:15
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.

Side chat hides queued messages while a question is pending

1 participant