Skip to content

test(ui): wait for a quiet scroll interval before composer measurements - #146836

Merged
steipete merged 1 commit into
mainfrom
codex/v8-composer-scroll-idle
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/v8-composer-scroll-idle

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

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 canonicalProviderName script 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 Review action. 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 cc358124bfd8cafb57d49d1337c609f23c73c624 is based on 0d1cf24318b8e514730637a0047c6fd509faed1c. 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 required openclaw/ci-gate. Native preparation and merge remain pending.

@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review September 13, 2026 07:16
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Sep 13, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 6:19 AM ET / 10:19 UTC (Revision 7).

ClawSweeper review

What this changes

The 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
Reviewed head: cc358124bfd8cafb57d49d1337c609f23c73c624

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with a meaningful browser regression, preserved assertions, and no identified blocking defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test repair. Supplied Chromium observations exercise the changed readiness helper and composer budget; the inspected dashboard images concern separate work.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test repair. Supplied Chromium observations exercise the changed readiness helper and composer budget; the inspected dashboard images concern separate work.
Evidence reviewed 10 items Pinned change and cleanup: The introduced delta modifies only the shared browser-test helper and composer regression. The helper rejects samples containing scroll events and removes its listener in finally; its 180 ms interval, two animation frames, and 10-second timeout remain unchanged.
Meaningful regression coverage: The existing no-scroll control remains alongside the native 8-pixel away/back case. Both exercise ordinary composer typing and retain the host-update ceiling of one, draft persistence, send-button state, and text-direction assertions.
Current main still needs the repair: Fetched main still accepts matching endpoint geometry without recording intervening scroll events. The provided related merged PRs address separate prerequisites; none is identified as landing this readiness repair.
Findings None None.
Security None None.

How this fits together

Control 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +42. Total +42 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 58 16 +42
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 58 16 +42

Review metrics

None.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #146806
Summary: This PR implements the linked issue’s specific scroll-readiness repair; the issue should remain open until the repair lands.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Technical review

Best 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.

Labels

Label justifications:

  • P2: This repairs a concrete browser-test readiness defect with limited scope and no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored test repair. Supplied Chromium observations exercise the changed readiness helper and composer budget; the inspected dashboard images concern separate work.

Evidence

What I checked:

  • Pinned change and cleanup: The introduced delta modifies only the shared browser-test helper and composer regression. The helper rejects samples containing scroll events and removes its listener in finally; its 180 ms interval, two animation frames, and 10-second timeout remain unchanged. (ui/src/e2e/chat-flow.test-support.ts:146, cc358124bfd8)
  • Meaningful regression coverage: The existing no-scroll control remains alongside the native 8-pixel away/back case. Both exercise ordinary composer typing and retain the host-update ceiling of one, draft persistence, send-button state, and text-direction assertions. (ui/src/e2e/chat-stream-runtime-budgets.e2e.test.ts:609, cc358124bfd8)
  • Current main still needs the repair: Fetched main still accepts matching endpoint geometry without recording intervening scroll events. The provided related merged PRs address separate prerequisites; none is identified as landing this readiness repair. (ui/src/e2e/chat-flow.test-support.ts:146, e15e7e5de66c)
  • Latest supplied release comparison: The helper in the supplied latest release, v2026.9.4, also uses the geometry-only check; this repair is not present there. (ui/src/e2e/chat-flow.test-support.ts:146, 3a9d69db306c)
  • Actual runtime and dependency boundary: The transcript offset observer delegates to TanStack and requests host updates when scrolling finishes. This establishes the relevant dependency contract; the changed behavior does not depend on the Codex harness or runtime. (ui/src/pages/chat/components/chat-transcript-offset-observer.ts:130, cc358124bfd8)
  • Published virtualizer idle contract: Inspected the published @tanstack/virtual-core 3.17.8 source in memory. Its package metadata identifies TanStack/virtual; observeOffset resets a debounced idle callback on scroll, with defaults of 150 ms and useScrollendEvent=false. No dependency commit SHA was supplied by npm metadata. (packages/virtual-core/src/index.ts:195)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-09-13T07:22:42.147Z sha 04bc89997657b77237af77705823ed11f432b3ec :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T07:33:37.056Z sha 3ec403c7598cf62da0e41a41aa4e8f3b0a9787d4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T07:41:07.275Z sha 3ec403c7598cf62da0e41a41aa4e8f3b0a9787d4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T07:56:13.981Z sha 3ec403c7598cf62da0e41a41aa4e8f3b0a9787d4 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T09:15:14.942Z sha 2c33d90082dcc5ee0953f3bb2c169b2f4965963b :: needs maintainer review before merge. :: none
  • reviewed 2026-09-13T10:10:34.477Z sha cc35812 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/v8-composer-scroll-idle branch from 04bc899 to 3ec403c Compare September 13, 2026 07:27
@steipete
steipete force-pushed the codex/v8-composer-scroll-idle branch 2 times, most recently from 2c33d90 to cc2da8e Compare September 13, 2026 09:22
@steipete steipete changed the title fix(test): wait for a quiet transcript scroll interval test(ui): wait for quiet scrolling and close named file tabs Sep 13, 2026
@steipete steipete closed this Sep 13, 2026
@steipete steipete reopened this Sep 13, 2026
@steipete
steipete force-pushed the codex/v8-composer-scroll-idle branch from cc2da8e to cc35812 Compare September 13, 2026 10:04
@steipete steipete changed the title test(ui): wait for quiet scrolling and close named file tabs test(ui): wait for a quiet scroll interval before composer measurements Sep 13, 2026
@steipete
steipete merged commit 3a78c93 into main Sep 13, 2026
141 of 142 checks passed
@steipete
steipete deleted the codex/v8-composer-scroll-idle branch September 13, 2026 10:27
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
* 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)
  ...
vincentkoc added a commit that referenced this pull request Sep 13, 2026
…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)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test(ui): scroll-idle readiness can miss scrolling back to the same offset

1 participant