Repository navigation
fix(ui): keep your place when scrolling older chat history - #207631
Merged
Merged
Conversation
Co-authored-by: vincentkoc <[email protected]>
Worked on by: - @vincentkoc Co-authored-by: vincentkoc <[email protected]> OpenClaw-Publication: b2ae41f6-a494-820b-9366-1126be891fd8
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
roboclaw-bot
marked this pull request as ready for review
November 28, 2026 17:37
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.
What Problem This Solves
The first upward scroll step after older chat history loads can snap back to the previous position. The scheduled 390 px Chromium case captured a 24-pixel reversal without a change in transcript height.
User Impact
Upward reading movement is preserved while newly loaded history settles. No configuration change or migration is required.
Why This Change Was Made
The offset observer now carries newly observed reader movement into the pending history anchor whether a scroll event, an idle callback, or a synchronous offset read sees it first. Before capturing a fresh anchor, the same observer accounts for motion already reflected in the DOM so it cannot be applied twice. Existing command and maintenance ownership stays in place.
Evidence
git diff --checkpassed. Independent follow-up review of patch0ff7d73ed31a6de2df1fb86ad1e9f99e72402e8aona3bd2136eec2found no remaining P0–P2 issues. Hosted PR CI is pending.Co-authored with @vincentkoc.
Work sessions
Linked for team reference; these sessions aren’t public.
Worked on by