Repository navigation
fix(ui): preserve reader position through transcript resize clamps - #196187
roboclaw-bot wants to merge 1 commit into
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. |
Release a completed virtualizer target when a layout receipt consumes reader movement before its native scroll event. Preserve untouched following and active commands. Co-authored-by: steipete <[email protected]>
f0c4344 to
ab843c0
Compare
|
Codex review: needs maintainer review before merge. What this changesThis PR cancels a completed transcript scroll target when a layout correction reveals previously unobserved reader movement. Example: After Latest completes, the reader moves up 8 pixels immediately before the viewport grows from 400 to 500 pixels tall.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a confirmed transcript-position defect with a focused repair and no definite introduced bug. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe transcript offset observer reconciles native scrolling, layout corrections, and host commands, then updates the virtualizer and reader-follow policy. flowchart TD
A[Reader movement] --> C[Transcript offset observer]
B[Viewport layout correction] --> C
C --> D[Transcript session host]
D --> E[Virtualizer target]
E --> F[Native transcript position]
Technical reviewBest possible solution: Use the existing offset observer to release completed targets on reader departure while preserving untouched following and pending commands. Do we have a high-confidence way to reproduce the issue? The scheduled Chromium assertion confirms the 860-to-960 failure, and current-main target retention plus correction handling explain the path; this read-only review executed no target code. Is this the best way to solve the issue? The patch is the smallest source-supported repair: it uses the existing movement receipt and cancellation owner without adding state, timers, or a competing scroll policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ce7788f5a24e. Provenance checked
TestingProof path: none. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +5, Tests 0. Total +5 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 November 9, 2026, 1:46 PM ET / 18:46 UTC. |
What Problem This Solves
Fixes the transcript returning to its old end after a reader moves just before a viewport resize clamps their position.
User Impact
Reader position survives the viewport growing and shrinking. An untouched end continues following normally, and active scroll commands keep their existing lifecycle.
Why This Change Was Made
The offset observer already receives the position immediately before each layout correction. If that position differs from its last observed offset and no host command is pending, it now releases the completed virtualizer target before recording the correction. Otherwise the native clamp can conceal the reader departure and the retained end target pulls the viewport back later.
Classification: timing-dependent product defect. The retained dynamic target was added by #196036 (
21c0b48bfd71), which precedes the previous passing scheduled headbd0557f4fac0by ten commits. The API comparison ofbd0557f4fac0..6edcaa28edb7establishes no causal introducer in that interval; predecessor-paint change #196001 does not establish causation. No matching repair was found on main after the failing head or in overlapping updated PRs.The five-line production fix keeps the existing offset owner. The existing browser clamp matrix now refreshes the completed Latest target before the settled reader departs and commits viewport geometry before inspecting the clamp. All position and idle assertions remain. Observer cleanup uses the existing test-finish hook. The offset-observer unit test is unchanged from main.
Test growth is exactly zero versus
origin/main: 22 browser-test lines added, 22 removed. No new test case, fixture, state, timer, dependency, configuration, baseline, allowance, or production test hook is added. The standalone fixture from the previous revision has been removed.Evidence
6edcaa28edb7:chat-transcript-end-follow.browser.test.ts:657, settled/end/8 px/before-clamp case, expected 860, received 960. Job log fetched once.5370a9d79c925f5e5c28a0b62fc8de7c40e27192, with the complete browser test, source owner/callers, layout owner, native fixture and exact virtual-core 3.19.2 source: scoped-clean P0–P2. Review found the real-boundary regression capable of exposing the original defect; runtime red/green remains unverified. The lead separately verified unit-test byte identity and 22/22 browser-test line counts against main.git diff --check: passed.f0c4344156ac, failed before testing: the gate reportspreflightandsecurity-fastasabandoned, and UI/build/planning lanes as skipped. No test job ran; the underlying abandonment reason is unavailable in the gate log. This is not evidence for the replacement head.ab843c069c09a61ac2023eb447ee67a973a78934, force-pushed with a lease against the recorded prior head after the test-budget repair. That push supplies the CI trigger; results are pending. No manual dispatch, rerun or warmup was issued.Work sessions
Linked for team reference; these sessions aren’t public.