feat(sessions): Scrollable & collapsible queued-messages dock#2904
Merged
Conversation
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
Reviews (1): Last reviewed commit: "feat(sessions): Make the queued-messages..." | Re-trigger Greptile |
2 tasks
A long queue of follow-ups no longer pushes the composer off-screen or crops it: the dock is height-capped and scrolls internally, and a header toggle collapses it. Adds per-task collapse view-state in sessionViewStore. Generated-By: PostHog Code Task-Id: 36c7f9ac-946a-403b-8b7f-c2dd5e3f66fd
d5e98e0 to
9918a6a
Compare
charlesvien
approved these changes
Jul 6, 2026
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.
Problem
While the agent is running, follow-up messages you submit get queued in a dock pinned above the composer. That dock had no height cap, scroll, or collapse — so with several long messages it grew unbounded, pushing the composer down, cropping the input at the bottom, and hiding the conversation above.
Closes #3150
Before
Changes
max-h-[30vh]) and scrolls internally, so a long queue never pushes the composer off-screen. Addedshrink-0to the composer block inSessionViewso the input is never compressed below its (now bounded) height; theflex-1conversation thread yields the space instead.N queued+ caret) toggles the queue open/closed, backed by new per-taskqueueCollapsedByTaskIdview-state insessionViewStore(ephemeral, defaults to expanded, and survives the dock unmounting between turns). The live count stays visible while collapsed.@radix-ui/react-collapsible+ phosphor carets, as inProgressGroupView/SidebarSection— and themax-h … overflow-y-autoscroll idiom. The per-message Steer / Return to editor / Discard actions are unchanged.After — expanded (scrolls instead of growing past the composer)
After — collapsed
Testing
QueuedMessagesDock.test.tsx— default-expanded shows every message with a count, the overflow classes are present, the header toggle collapses/expands the list (count persists), and an empty queue renders nothing.turbo typecheck, Biome lint, and the sessions component suite (100 tests) all pass.Created with PostHog Code