Repository navigation
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. Reviewed September 14, 2026, 8:58 AM ET / 12:58 UTC (Revision 7). ClawSweeper reviewWhat this changesPreserves collapsed task progress during transcript measurement corrections, repairs browser fixture interactions and timestamps, and documents reading behavior. Merge readiness✅ Ready for maintainer review This remains a useful, focused repair beyond the earlier merged scroll fix. No actionable correctness or security findings remain; the previous review’s reproduction caveat does not establish a new blocker. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI virtualizes chat messages and combines browser scroll events with reader intent. That reader policy controls automatic following and task-progress expansion above the composer. flowchart TD
A[Streaming messages] --> B[Transcript row measurement]
B --> C[Browser scroll correction]
C --> D[Scroll origin classification]
E[Reader input or Latest] --> D
D --> F[Reader follow policy]
F --> G[Transcript position and task progress]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +13, Tests +89, Docs +5. Total +107 across 6 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep measurement provenance in the existing transcript owner while preserving page-owned reader intent and task-scoped manual disclosure choices. Do we have a high-confidence way to reproduce the issue? Yes, for the measurement-clamp mechanism: current source and the focused controller/page-policy regression establish the path. This review did not execute tests, and the exact intermittent browser timing remains unreproduced. Is this the best way to solve the issue? Yes. Recording correction provenance at the existing scroll adapter repairs the classification error without adding another follow-policy owner or changing manual preferences. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 6f21bfa05db4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
756473c to
cacb205
Compare
cacb205 to
e3eb163
Compare
e3eb163 to
f9b7625
Compare
Preserve the provenance of virtualizer row-measurement adjustments when their native scroll event lands at the transcript end. Layout compensation must not unlock a history reader or reopen automatic task progress. Explicit reader input and manual Latest commands keep their existing behavior. Validated the regression against the original implementation, 238 focused unit tests, 9 production-bundled Chromium E2Es, full changed checks, and independent P0-P2 review. The original CI animation timing did not reproduce locally; the controller and ResizeObserver regression independently proves the ownership defect.
Use actual Home input in the interactive manual-disclosure sequence so reader takeover cancels queued and active Latest commands. Exercise a return interrupted by keyboard collapse, while preserving all original card assertions and the 10-second click deadline. Keep the shared geometry-only helper and runtime unchanged. Paired bundled controls reproduce the scripted setup defect and verify native-input reader preservation. The permanent scenario fails with the old helper; all 9 ordinary bundled browser cases pass with the correction. Targeted formatting, lint, and independent P0-P2 review passed.
f9b7625 to
a1dc608
Compare
What Problem This Solves
Fixes task progress reopening while a reader stays on earlier chat messages and background row measurements adjust the transcript.
User Impact
Task progress stays collapsed while you read earlier messages, even as streaming output and layout measurements continue. Scrolling back to the end or selecting Latest resumes following; explicit card choices remain respected.
Why This Change Was Made
The existing per-session transcript offset owner records the actual browser-clamped offset written by measurement compensation. Reader input and disconnect retire that marker, so automatic corrections preserve reading mode while real input retains its normal behavior.
The interactive browser fixture uses native Home-key input when interrupting an active Latest return. Directly assigning
scrollTopchanges geometry without delivering reader takeover. The shared geometry helper, original card assertions, and click deadlines remain unchanged.Evidence
A deterministic regression through the actual TanStack ResizeObserver and transcript/page-policy boundary fails on the original owner and passes with the repair. Both reader commits retain their reviewed patches exactly after rebasing onto main
99d0458d56244ac4c6298904848dcf034f06f79d.The original scripted browser setup produced a 10-second Latest-click timeout. Paired controls showed that native Home input cancels the retained Latest target. The permanent scenario fails with the old helper and passes with the correction. Fresh current-base qualification passes all 147 owner/unit tests, nine ordinary reader browser scenarios plus the upstream cloud-reconciliation scenario, the production build and budget check (357,227 bytes startup JavaScript gzip), and the complete changed-file gate.
This base includes the separate shared Docker assertion repair in #148129 and cloud-fixture timestamp repair in #147926. The original Docker failure and cloud-fixture failure remain attributable; new exact-head CI qualifies this refreshed reader change.
The exact intermittent CI animation interleaving did not reproduce locally. The inspected screenshots below illustrate the normal synthetic before/after flow. All three PR attachments were verified as accessible PNGs, and the same captures were inspected and rendered in the originating task.
The earlier UI shard 2/3 failure remains documented: “keeps malformed closing-tag validation bounded” measured 107.0 ms against its 100 ms guard. This PR does not claim to fix that timing failure; its stress case and threshold are untouched.