fix(web): reveal scroll-to-end when the composer hides the last message - #282
Merged
Conversation
…the composer (#9280) Co-authored-by: Claude Code <noreply@anthropic.com> (cherry picked from commit c742edd46c5b6792ec8647f934a4703f9103aa82) (cherry picked from commit bffc7a1)
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
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.
The scroll-to-end button stays hidden when the final message slips beneath the composer because the timeline counts the composer's inset as visible message space. Use the actual viewport distance from the bottom, retaining the existing 40-pixel tolerance.
Ports previously approved upstream #9280, split from #269. Applies to the web chat and desktop renderer; mobile uses its own timeline.
Validation: 44 focused MessagesTimeline tests pass, including the inset regression; web typecheck, targeted lint, formatting, and diff checks pass. Integrated browser verification passes at 1440×960 using an isolated environment with disabled providers and synthetic conversation data. At 140 pixels above the bottom, baseline 08ba8b1 hides the button and the candidate shows it; clicking returns to distance 0 and hides the button. Repeated the return path twice. No live provider or production-state changes. The existing LegendList recycling warning is present on both builds.
Before / after at the same scroll position:
Video: scroll up, return to the final response, and repeat (7 seconds).
scroll-after.mp4
Implemented with GPT-6 Astra through the Codex harness.