Repository navigation
test(ui): wait for a quiet scroll interval before composer measurements - #146836
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 13, 2026, 6:19 AM ET / 10:19 UTC (Revision 7). ClawSweeper reviewWhat this changesThe PR makes browser tests wait for a scroll-event-free interval and adds a composer regression that scrolls away and returns to the original position. Merge readiness✅ Ready for maintainer review Keep open: the readiness defect remains on current main, and this focused repair preserves the existing rendering assertions. No blocking correctness finding was identified. Priority: P2 Review scores
Verification
How this fits togetherControl UI browser tests load chat fixtures through a mocked Gateway and measure the real browser’s rendering behavior. The shared scroll-readiness helper determines when transcript activity has settled enough to begin those measurements. flowchart TD
A[Chat history fixture] --> B[Browser transcript]
B --> C[Native scroll events and geometry]
C --> D{Quiet and stable interval?}
D -->|No| C
D -->|Yes| E[Type into composer]
E --> F[Check rendering budget]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +42. Total +42 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep scroll readiness in the shared test helper, requiring a quiet geometry-stable interval before measuring composer rendering. Do we have a high-confidence way to reproduce the issue? Yes: the 400-message fixture with native scroll-away/back during sampling and 5 ms typing has supplied failing observations, and current source retains the same readiness defect; this review did not execute it. Is this the best way to solve the issue? Yes: recording native scroll activity closes the endpoint-geometry blind spot within the existing helper, without weakening rendering budgets or adding production hooks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e15e7e5de66c. LabelsLabel 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)
|
04bc899 to
3ec403c
Compare
2c33d90 to
cc2da8e
Compare
cc2da8e to
cc35812
Compare
|
Merged via squash.
|
* refs/heads/temp/pr-146883: (159 commits) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) ...
* refs/heads/temp/pr-146833: (43 commits) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) ...
* temp/pr-146802: (51 commits) improve: reduce worktree filesystem stalls and archive syncs (#146906) fix(ui): avoid extra chat rail work while replies stream (#146883) improve(ui): speed up populated Usage timelines (#146947) test(gateway): retain auth recovery failure diagnostics (#146925) fix(tests): create private temporary home directories (#146931) fix(backup): preserve discovery under concurrent state writes (#146912) fix: keep queued deliveries in their original state directory (#146917) fix(discord): settle voice waveform work before releasing input (#146885) fix(memory): preserve newer indexes and disclose automatic rebuild costs (#146908) fix: retain route ownership while discovering conversations (#146927) refactor: reuse plugin fixture shell runner (#146920) fix(worker): stop preparing disabled live previews (#146896) fix(runtime): support Bun across tooling suite (#146807) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) ...
…ssion-list-roster-batch-20260913 * commit 'f513c0f345f7f2514c49ccfbc00adc3f78b9a755': (46 commits) chore(i18n): refresh native locales (#146924) perf(secrets): limit expiry metadata to transient credentials (#146882) fix(ui): preserve queued refreshes during session discovery (#146535) test(ui): wait for quiet scrolling and close named file tabs (#146836) fix(ui): prevent Usage hour filters from freezing during DST (#146919) test(ui): share browser page cleanup across layout fixtures (#146805) ci: balance complete PR runtime test groups (#146916) improve(infra): reduce scheduling work for session notice bursts (#146818) improve: prepare Gateway skill commands asynchronously (#146812) improve(agents): skip unused assistant delivery parsing (#146858) improve(ui): reuse date formatters across timestamp lists (#146789) fix(tests): isolate installer and Docker shell snippets (#146897) test(heartbeat): share explicit channel configuration fixtures (#146853) fix: retain conversation reply claims through write admission (#146866) perf(sessions): bound history reads and stabilize cursor paging (#146770) fix(ui): let slow dashboard downloads finish before recovery (#146881) fix: share Doctor lifecycle coordination with SQLite workers (#146714) fix: retain native session model provenance (#146801) fix: settle embedded transcript repairs before session cleanup (#146842) feat(macos): improve agent navigation and chat layout (#146531) ...
Closes #146806.
What Problem This Solves
Control UI tests can begin measuring steady-state composer edits while scroll-idle callbacks are still pending after the transcript returns to its original position. The old helper compared only starting and ending geometry, so native scrolling away and back could satisfy its readiness check.
What Changed
The existing scroll helper now requires an event-free, geometry-stable sample and removes its native scroll listener in
finally. The composer regression retains ordinary typing and adds real scroll-away/back input with movement and restoration assertions. Wait intervals, timeouts, and the host-update ceiling remain unchanged. This final change affects two test/support files and has no product behavior change.Evidence
The regression fails with the original helper: two host updates exceed the unchanged ceiling of one, with native scroll events inside the admitted geometry-equal sample. The repaired helper rejects that sample, accepts a subsequent quiet sample, and records zero host updates.
The original runtime-budget, chat-scroll, and settle suites passed all 10 tests. All 18 test type graphs and preceding selected guards passed. The aggregate stopped on the unchanged
canonicalProviderNamescript export, also reported by a clean baseline; production unused-export analysis, targeted lint, formatting, and diff checks passed. Two later lint-only Promise-executor edits discard ignored numeric timer/RAF returns; exact reconstruction matched the browser-tested source, and scheduling and assertions are unchanged. Those suites were not repeated for that equivalent edit.Fresh independent P2 review completed both passes with no findings (confidence 0.93). The final two files are byte-identical to the reviewed three-file head
cc2da8e9122b771e6eb8d1d7a9218910a7a5826e, which passed CI 34749382018 and CI 34750233254.The earlier inherited file-link failure selected the retired
Close Reviewaction. Its seven-case browser proof and failure logs are retained, but the exact selector repair has independently landed in #146810 and is no longer part of this PR. Earlier inherited type-routing and test-root headroom failures were repaired by #146702 and #146803.Browser proof uses Windows Chromium 153. The earlier Linux Chromium 144 scroll failure had no callback stacks; the separately reproduced readiness defect does not establish that historical run's exact callback.
Current Head
Final head
cc358124bfd8cafb57d49d1337c609f23c73c624is based on0d1cf24318b8e514730637a0047c6fd509faed1c. Both the source branch and GitHub pull head resolve to this exact head, so the earlier stale pull-reference mismatch is resolved. Current CI 34750912082 completed successfully at this exact head, including the requiredopenclaw/ci-gate. Native preparation and merge remain pending.