Repository navigation
agent: scroll the transcript from the side margins - #1253
Merged
Merged
Conversation
The transcript list was laid out inside the 900px content column, so the wheel only reached it over the text. The list now spans the full width and each row carries the centered column and gutter, so the layout is unchanged while the margins scroll too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhDzZ7AvSid4KYuis9yv91
The composer row now spans the full width and forwards a wheel over its side margins to the transcript list, with the same line height, tail follow release/re-engage and history paging as the list's own wheel. The centered column still consumes its own wheel, so the composer, cards and slash palette behave as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QhDzZ7AvSid4KYuis9yv91
A full-width transcript list re-measured every row on each width change: gpui drops all cached row heights when a list's width changes, so opening the sidebar or resizing the window collapsed the scroll range, and the scrollbar thumb jumped and changed size. The list goes back to the content column, whose width only changes on narrow windows. The chat pane forwards any wheel that nothing under the pointer takes: the margins and gutters, the scrollbar strip, the banners, the message being sent and the space beside the composer. The header, the composer column, the question card and a scrolling send bubble keep their own wheel. The forwarded wheel reports the rows the list painted in view, as the list's own wheel does. At the end of the transcript the list's scroll top names no row, so the margin wheel reported an empty range and narrowed image loading to the last five rows. The image lightbox now blocks the pointer, so a wheel over an open image no longer scrolls the transcript behind it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
In the GPUI desktop app (
apps/maple-agent), the mouse wheel only scrolled the chat history when the pointer was over the 900px centered text column. The empty areas beside it did nothing. Now a wheel anywhere in the chat pane scrolls the transcript, unless something under the pointer scrolls itself or is window chrome. The layout looks the same.ui/chat/transcript.rs): the transcriptgpui::liststays inside the 900px content column. gpui drops every measured row height whenever a list's width changes, so a full-width list lost them on every sidebar toggle and on every frame of a window resize: the scrollbar thumb jumped and changed size. Inside the column its width only changes on narrow windows.ui/chat/mod.rs,ui/chat/transcript.rs):scroll_transcript_from_paneon the chat pane covers the side margins, the gutter beside the text, the scrollbar strip, the history banners, the message being sent, the waiting dots and the space beside the composer. It scrolls the same way the list's own wheel does: the same 20px line, the view stops following new messages when you scroll up and follows again at the bottom.Testing
just ci: format, clippy for every feature set, workspace and headless tests.ui::chat:🤖 Generated with Claude Code
Generated by Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need.