Repository navigation
fix: let Logs wheel scrolling reach the newest entries - #188945
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR suppresses ordinary row-size scroll compensation during manual scrolling with Auto-follow disabled. Example: In desktop WebKit, scroll to the newest entry in a 2,000-row retained Logs buffer with Auto-follow disabled.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a concrete Logs scrolling failure still present in current main; no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Logs page supplies retained Gateway log rows and follow preferences to LogsView, whose virtualizer measures rows and controls the scroll viewport. flowchart LR
A[Gateway log tail] --> B[Logs page retained rows]
B --> C[LogsView]
D[Reader input and Auto-follow] --> C
C --> E[Virtualizer measurement and anchoring]
E --> F[Visible log viewport]
Technical reviewBest possible solution: Keep measurement policy within the existing virtualizer and preserve idle anchoring, trimming, explicit End, and Auto-follow behavior. Do we have a high-confidence way to reproduce the issue? Source inspection identifies the compensation writes and an existing browser scenario matching the reported failure; this read-only review did not independently reproduce WebKit's timing-dependent result. Is this the best way to solve the issue? The focused change uses the dependency's existing adjustment hook and preserves established scroll ownership without introducing another state manager or configuration option. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against a825acc286e0. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +17. Total +17 across 1 file. Added test files: 0. View PR surface stats
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 30, 2026, 10:02 PM ET / October 31, 2026, 02:02 UTC. |
|
Fixed: wheel scrolling reaches the newest logs with Auto-follow disabled. |
Keep Logs wheel scrolling from stopping before the newest retained entry when Auto-follow is disabled.
What Problem This Solves
With Auto-follow disabled, a wheel scroll toward the bottom can stop before the newest Logs row is fully visible in WebKit.
User Impact
Readers can reach the newest retained log while keeping Auto-follow off. Paused reading, trimming, End and re-enabling follow retain their existing behavior.
Why This Change Was Made
Row measurement could write a compensating scroll offset while WebKit was still completing wheel travel, cutting it short. The existing virtualizer now leaves ordinary size adjustments alone during reported scrolling when follow is off, then restores normal anchoring at rest. Measurement pinning in that mode begins at the end instead of within the last 120 pixels.
The landed measurement, key and offset-readback owner remains intact.
Evidence
Selected CI and Workflow Sanity pass. All five additional scroll, layout and real-Gateway lifecycle cases pass. Independent review is clean. The matched visual evidence below shows the bottom gap changing from 128px to 0px.
Visual evidence
Auto-follow off: wheel up, trim, then wheel down 1,000,000 px to row 2499.
focused.webm
Visual verification
a317c816d47e4ccc3862e5b8888153645e9a153e