Skip to content

fix(ui): keep your place when scrolling older chat history - #207631

Merged
roboclaw-bot merged 2 commits into
mainfrom
openclaw/marine-krill-aacea2
Nov 28, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
openclaw/marine-krill-aacea2

Conversation

@roboclaw-bot

Copy link
Copy Markdown
Collaborator

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

  • A minimal 390 px Chromium fixture using the original scroll owners reproduced the 24-pixel reversal when synchronization preceded scroll-event delivery. The scratch correction retained the new offset. This reproduces the mechanism, not the entire hosted timing sequence.
  • The new capture-first regression failed on the unpatched owner. Independent review identified move-first and idle-first orderings; both were reproduced on earlier patch revisions and pass with the final correction.
  • 126 focused tests passed across prepend anchoring, offset observation, scroll ownership, and resize delivery, before the mechanical formatting-only test table change. The unchanged bundled history cases passed at 390 px and 1280 px with the mock Gateway. WebKit and real-Gateway cases were not run on this revision.
  • UI typecheck, changed-file lint, format, and git diff --check passed. Independent follow-up review of patch 0ff7d73ed31a6de2df1fb86ad1e9f99e72402e8a on a3bd2136eec2 found 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

roboclaw-bot and others added 2 commits November 28, 2026 17:34
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: b2ae41f6-a494-820b-9366-1126be891fd8
@clawsweeper

clawsweeper Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. labels Nov 28, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 28, 2026 17:37
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 28, 2026
@roboclaw-bot
roboclaw-bot merged commit 9b59c56 into main Nov 28, 2026
148 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/marine-krill-aacea2 branch November 28, 2026 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant