Repository navigation
fix: Latest stops short while the final transcript row grows - #196036
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 Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex review: needs maintainer review before merge. What this changesThis PR keeps Latest following late transcript growth and releases its remaining scroll target when the reader takes control. Example: Choose Latest in an 800-row transcript, then grow the final row by 105 pixels.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this PR addresses a concrete Latest scrolling defect still present on main, with no actionable patch findings; the exact-head CI failure remains unattributed. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe per-session transcript host translates Latest commands, reader input, and row measurements into virtualizer targets and native scroll positions. flowchart TD
A[Latest command] --> C[Transcript session host]
B[Reader input] --> C
D[Row measurements] --> C
C --> E[TanStack virtualizer]
E --> F[Native transcript viewport]
Technical reviewBest possible solution: Retain the existing host’s dynamic end target through measurement settlement and cancel it immediately on reader takeover. Do we have a high-confidence way to reproduce the issue? The current-main handoff and supplied native-browser regression establish the failure path; this read-only review ran no target code. Is this the best way to solve the issue? The patch repairs the existing owner, preserves reader cancellation and header compensation, and avoids additional state or scheduling machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 1c996b16cd71. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -3, Tests +46, Other +2. Total +45 across 3 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:
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, 10:12 AM ET / 15:12 UTC. |
|
Merged via squash.
|
|
Follow-up qualification found a remaining Latest failure with the receipt-narrowing candidate. The 200-tool foreground run at candidate This occurred once in six candidate Firefox observations, versus zero in five baseline and five identical-base control observations. It is not attributed to main. The matrix stopped at 52 total observations, retained the failure, and did not replace the sample. The receipt change is not being landed and no Chat budget was changed. This fix's deterministic cold-row growth and reader-cancellation regressions remain passing; this full-app interaction still needs attribution. The intermittent reproduction uses the current committed harness on the candidate build: node --import ./scripts/tsx.mjs scripts/bench-control-ui-engines.ts \
--bundle-dir dist/control-ui --source-root . --engines firefox \
--cpu-throttle 1 --steps event-load-0 --event-load-interactions-only \
--viewport desktop --pairs 1 --output .artifacts/latest-reproductionThe screenshot below contains only synthetic fixture data. |
…w#196036) * fix: keep Latest anchored through late transcript growth * fix: release transcript payloads after virtualizer disposal

What Problem This Solves
Fixes Latest stopping short of the final answer when cold transcript rows and a growing tail change height after the initial end arrival.
User Impact
Latest continues following the measured end through late layout. Fresh reader input still releases the target, including PageUp or a cancelled scroll that causes no native movement.
Why This Change Was Made
Completing the smooth journey replays skipped row measurements. The old handoff replaced the moving end with a fixed offset, leaving later growth behind. Keep a dynamic end target during that handoff and explicitly cancel the remaining virtualizer target when the reader takes over. No new timer, state owner, dependency, or startup import is added.
Evidence
The deterministic red/green reproduction is the native transcript-owner fixture. The full application flow is also exercised; the original rare full-app shortfall is not deterministic in every run. WebKit is unavailable on this host.
Synthetic fixture, before (106 px short):
After, Firefox (at the end):
The production host remains smaller after inlining its single-use row-sync helper. Its retained range extractor is bound to the range owner, avoiding a render closure that would retain disposed message payloads. Solid refactor census is unchanged: zero effects, render effects, untrack, DOM queries, direct listeners, flush, owner-capture calls, or cleanup hooks added. The tests add two distinct behavior regressions; no runtime test hook is introduced.
LOC: production host 790 → 787; browser test 723 → 769 (+46). Two lines allocate the new regression coverage.
Compared against
4b077d31b914aa62c6c10650abc62263ef3db839using the same installed toolchain. No budget or cap changed.CI repair: the first run (42636289621) caught two real retained-payload failures in
chat-transcript-layout-retention.test.ts; the bound extractor fixes both, and all six retention cases pass.chat-details-desktop-body.browser.test.tsx > adds no handoff measurements or animations to cached and settled scrollingalso failed that run; its focused local replay passes. That failure is not classified as inherited. Replacement-head CI provides the final broad proof.The replacement run's sole E2E assertion was
Platform attachment menu > reopens at its measured height instead of growing upward(two observed heights). It passed once locally on both the exact base and the head. A delayed-chunk probe on the exact base confirmed that the test's firstdata-phase=opencan still show only “Loading…”; the overlay phase settles its animation, not lazy content measurement. After waiting for the real menu, the unchanged reopen-height assertion passed. One targeted CI job rerun passed for this diagnosed readiness flake; this is not classified as an inherited failure. Run 42639175851 is green on the replacement head, including all UI unit, Control UI E2E, browser-extension, and real-Gateway jobs.