Repository navigation
[Feature]: Collapsible composer so the thread is readable while a question or approval is pending #6849
Replies: 4 comments
|
bad comment pls ignore |
|
I think this comment is meant for another thread ser |
|
Ah crap, sorry, too many tabs |
|
Part of this has landed since: the question card collapses to its header with the chevron, and on desktop the composer rests to a single line when you scroll the thread up (#7855, #10437). Two of the cases above still keep it at full height, though:
#10444 keeps multiline drafts open so they're easy to review and edit, which makes sense while I'm typing. A rule that keeps that and covers both cases: decide by where focus is when the scroll happens.
This doesn't bring back collapse on blur (#10437): losing focus alone changes nothing, it only decides what a scroll does. The pending-question case is filed as a bug: #14231. Code references are to main @ d2c9281. |
Uh oh!
There was an error while loading. Please reload this page.
Before submitting
Area
apps/web
Problem or use case
The composer has no way to get out of the way. When it grows — a pending user-input / ask-user card with several options, a pending approval, a long draft, attachments — it eats a large share of the thread viewport, and the conversation above it is what I actually need to read in order to answer it.
Concretely, when an agent asks a question I want to scroll back through what it just did and decide from that. Today the panel that renders the question is pinned at full height (
apps/web/src/components/chat/ComposerPendingUserInputPanel.tsx, rendered fromChatComposer.tsx) — neither file has any collapse affordance or max-height, so the only way to see more of the thread is to scroll a shrunken viewport a few lines at a time.The Claude Code desktop app handles this well: the input box can be collapsed to a thin bar, the full thread is visible behind it, and expanding it restores exactly what was there.
Proposed solution
A collapse toggle on the composer:
Why this matters
The composer is the single biggest fixed-height element in the chat view, and it is largest exactly when the thread content matters most — when the agent is blocked on you and you need to review the context before answering. Right now answering a question means answering it half-blind, or losing the question off-screen while you scroll. This affects every user on every ask-user / approval interaction, and gets worse on small windows and split layouts.
Smallest useful scope
A single collapse/expand toggle on the web composer that preserves draft + selections, with no persistence across reloads and no keyboard shortcut. That alone solves the "I can't read the thread while a question is pending" problem.
Alternatives considered
Risks or tradeoffs
request_user_inputcard overflows the viewport), but the interaction there probably wants a different shape (sheet/drag handle) rather than a straight port.Contribution
All reactions