Repository navigation
fix: prevent visible scrolling when opening a chat - #169334
Conversation
Keep the initial measured transcript out of paint until its existing end anchor settles. Cover direct entry, sidebar first visits, and cached reconnection without changing live scroll ownership. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: d55a53ab-b105-48bd-856a-5090609eb270
|
🦞👀 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. |
Visual evidenceSynthetic transcript in the actual Control UI. The settled layout is intentionally unchanged. The baseline initially measured Before — settled after the initial jumpAfter — same final layout, positioned before display |
|
Codex review: needs maintainer review before merge. What this changesThis PR keeps the transcript measurable but hidden until its existing initial end anchor settles. Example: Open an unvisited conversation containing 40 messages from the session sidebar.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a concrete first-display scrolling defect with a focused change, and review found no definite introduced bug; collaborator authorship also protects it from cleanup closure. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Control UI transcript receives session rows and saved scroll state, measures a virtualized window, and renders messages at the reading position selected by the session scroll owner. flowchart TD
A[Chat route or sidebar] --> B[Session transcript controller]
B --> C[Session virtualizer host]
C --> D[Solid transcript renderer]
D --> E[Row measurements]
E --> C
C --> F[Initial end anchor settled]
F --> G[Visible transcript]
Technical reviewBest possible solution: Reveal the measured transcript through the existing initial-anchor lifecycle while preserving saved-reader and explicit-scroll ownership. Do we have a high-confidence way to reproduce the issue? The current rendering lifecycle permits preliminary measured positions to paint, and the contributor reports baseline offsets of 0/4139 and 4798/6004; this review inspected source and supplied evidence without executing target code. Is this the best way to solve the issue? The focused visibility gate fits the existing ownership model and preserves layout measurement, avoiding additional scrolling or scheduling machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0df3c9188273. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests +112. Total +117 across 4 files. Added test files: 0. View PR surface stats
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 11, 2026, 4:20 PM ET / 20:20 UTC. |
|
Merged via squash.
|
* fix: prevent visible scrolling when opening a chat Keep the initial measured transcript out of paint until its existing end anchor settles. Cover direct entry, sidebar first visits, and cached reconnection without changing live scroll ownership. Co-authored-by: steipete <[email protected]> * fix: prevent visible scrolling when opening a chat Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: d55a53ab-b105-48bd-856a-5090609eb270 --------- Co-authored-by: steipete <[email protected]>


What Problem This Solves
Fixes visible scrolling through intermediate positions when opening a previously unvisited chat.
User Impact
The transcript appears at its correct reading position on first display, including navigation from the session sidebar. Saved reading positions and normal message scrolling are unchanged.
Why This Change Was Made
The virtualized transcript must measure its rows before its existing initial end anchor settles. Keep those preliminary layouts measurable but unpainted, then reveal the already-positioned transcript. This reuses the existing readiness owner without adding timers, measurement passes, or a second scroll policy.
Evidence
Contributor credit
Reported by and prepared for @steipete.
Work sessions
Worked on by
View the OpenClaw team session