Repository navigation
fix(ui): retain delayed progress scroll gestures - #158153
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 25, 2026, 11:12 AM ET / 15:12 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch retains pending Control UI progress-card scroll gestures until native movement arrives and adds controller regression cases and browser test readiness assertions. Merge readiness✅ Ready for maintainer review Keep this PR open. Current main and the latest release still discard a pending scroll gesture before delayed native movement arrives. The branch has credible before-and-after browser evidence, and this review found no definite introduced defect. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI displays a task progress card above the chat composer. Transcript input and native scroll observations reach a local controller that decides whether to collapse the card while someone reads earlier messages. flowchart LR
A[Wheel or touch input] --> C[Transcript scroll observer]
B[Native scroll movement] --> C
C --> D[Progress card controller]
D --> E{Gesture thresholds met?}
E -->|Yes| F[Collapse card]
E -->|No| G[Keep card open]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +6, Tests +42. Total +48 across 3 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep gesture attribution in the existing Control UI controller so delayed native movement counts without changing the documented collapse thresholds. Do we have a high-confidence way to reproduce the issue? Yes. Current main has the unconditional idle flush, and the supplied browser fixture and captures establish a delayed-offset before-and-after path. Is this the best way to solve the issue? Yes. The change stays in the controller that owns gesture accounting and preserves the existing movement and collapse thresholds. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 53a0b854769d. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash auto-merge.
|
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ...
* commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ...
* fix(qa-lab): retain tab focus and scroll during polling * chore(qa-lab): merge main for tab navigation validation * fix(qa-lab): keep focused tabs visible after layout changes * fix(qa-lab): reconcile navigation retention with current app * chore: refresh main for QA Lab navigation validation * commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (194 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ... Co-authored-by: Vincent Koc <[email protected]>
* fix(ui): retain delayed progress scroll gestures * test: await streamed text before scroll assertions
) * fix(qa-lab): retain tab focus and scroll during polling * chore(qa-lab): merge main for tab navigation validation * fix(qa-lab): keep focused tabs visible after layout changes * fix(qa-lab): reconcile navigation retention with current app * chore: refresh main for QA Lab navigation validation * commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (194 commits) feat(ui): listen to managed desktop audio in the panel (openclaw#157724) fix(ci): resume partially published preparation receipts (openclaw#158174) feat(release): one approval per release via an attested parent approval receipt (openclaw#157911) feat(desktop): advertise current managed desktop audio (openclaw#157723) fix(ui): retain delayed progress scroll gestures (openclaw#158153) refactor(ui): share sidebar mutation error feedback (openclaw#158173) test: await database verifier process lifecycle events (openclaw#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (openclaw#157722) refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050) feat(desktop): isolate managed Linux application audio (openclaw#157720) fix(test): prepare catalog fixture modules before startup (openclaw#158157) fix: keep model pickers usable during provider sign-in (openclaw#158132) refactor(test): remove unused prompt scenario metadata (openclaw#158151) fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020) fix: bound stalled browser stream startup (openclaw#156323) fix(onnx): prevent worker fixture hangs after release (openclaw#158146) fix(models): preserve scoped provider discovery outcomes (openclaw#158139) fix(agents): report offline trash failures after agent delete (openclaw#158052) ... Co-authored-by: Vincent Koc <[email protected]>
* fix(ui): release failed avatar response bodies * test(ui): cover avatar response cancellation in Chromium * test(ui): assert retained image after avatar failure * test(ui): preserve window global type in avatar proof * test(ui): avoid shadowed avatar proof bindings * chore: refresh main for avatar lifecycle validation * commit '54b5f23b006ae917c8bb7903f5ee7dad6108ec25': (175 commits) feat(ui): listen to managed desktop audio in the panel (#157724) fix(ci): resume partially published preparation receipts (#158174) feat(release): one approval per release via an attested parent approval receipt (#157911) feat(desktop): advertise current managed desktop audio (#157723) fix(ui): retain delayed progress scroll gestures (#158153) refactor(ui): share sidebar mutation error feedback (#158173) test: await database verifier process lifecycle events (#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (#157722) refactor(gateway): split companion prompts and metadata fixtures (#158050) feat(desktop): isolate managed Linux application audio (#157720) fix(test): prepare catalog fixture modules before startup (#158157) fix: keep model pickers usable during provider sign-in (#158132) refactor(test): remove unused prompt scenario metadata (#158151) fix(ci): unblock Control UI targeted Crabbox gates (#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (#158020) fix: bound stalled browser stream startup (#156323) fix(onnx): prevent worker fixture hangs after release (#158146) fix(models): preserve scoped provider discovery outcomes (#158139) fix(agents): report offline trash failures after agent delete (#158052) ... * test(ui): wait for settled avatar fallback * test(ui): wait for control UI before avatar handoff * fix(ui): preserve avatar cleanup across retry lifecycle updates Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state. * fix(ui): integrate avatar response cleanup with current main * test(ui): align avatar cleanup proof with current harness * test(ui): qualify avatar cleanup harness types and formatting Co-authored-by: Vincent Koc <[email protected]>
* fix(ui): release failed avatar response bodies * test(ui): cover avatar response cancellation in Chromium * test(ui): assert retained image after avatar failure * test(ui): preserve window global type in avatar proof * test(ui): avoid shadowed avatar proof bindings * chore: refresh main for avatar lifecycle validation * commit '0001f441f53712e44b2ca6edf2a6752b8abd6d1d': (175 commits) feat(ui): listen to managed desktop audio in the panel (openclaw#157724) fix(ci): resume partially published preparation receipts (openclaw#158174) feat(release): one approval per release via an attested parent approval receipt (openclaw#157911) feat(desktop): advertise current managed desktop audio (openclaw#157723) fix(ui): retain delayed progress scroll gestures (openclaw#158153) refactor(ui): share sidebar mutation error feedback (openclaw#158173) test: await database verifier process lifecycle events (openclaw#158171) perf(update): avoid repeated retained-copy parent creation feat(desktop): bind audio streaming to screen authorization (openclaw#157722) refactor(gateway): split companion prompts and metadata fixtures (openclaw#158050) feat(desktop): isolate managed Linux application audio (openclaw#157720) fix(test): prepare catalog fixture modules before startup (openclaw#158157) fix: keep model pickers usable during provider sign-in (openclaw#158132) refactor(test): remove unused prompt scenario metadata (openclaw#158151) fix(ci): unblock Control UI targeted Crabbox gates (openclaw#158149) refactor(agents): deslop subagents, sessions, worktrees, commands and auth (openclaw#158020) fix: bound stalled browser stream startup (openclaw#156323) fix(onnx): prevent worker fixture hangs after release (openclaw#158146) fix(models): preserve scoped provider discovery outcomes (openclaw#158139) fix(agents): report offline trash failures after agent delete (openclaw#158052) ... * test(ui): wait for settled avatar fallback * test(ui): wait for control UI before avatar handoff * fix(ui): preserve avatar cleanup across retry lifecycle updates Integrate current main while preserving retry exhaustion, auth restoration, and deferred response cleanup. Keep the real-stream test on real timers and drain loader cleanup before restoring shared test state. * fix(ui): integrate avatar response cleanup with current main * test(ui): align avatar cleanup proof with current harness * test(ui): qualify avatar cleanup harness types and formatting Co-authored-by: Vincent Koc <[email protected]>
What Problem This Solves
Fixes: the progress card can remain expanded after scrolling back through a conversation when the first native scroll observation reaches the controller after its idle timer.
User Impact
The card collapses after the existing two-gesture and distance thresholds are met, including when native scroll observations arrive late. Keyboard, pointer, programmatic scrolling and session changes still replace stale gesture state. No settings or migration are required.
Why This Change Was Made
The idle timer discarded a valid gesture before it had received any movement. The disclosure controller now retains that pending gesture until an offset arrives or another input replaces it. It continues to count actual consumed scrolling and retains the existing collapse thresholds.
Evidence
The delayed-observation regression fails before the repair and passes afterward. All 19 controller tests pass in 2.919s wall; the delayed case takes 6ms. The table also covers keyboard, pointer, programmatic and session-scope replacement without adding a browser boot or real timer to the committed tests.
The existing browser disclosure file passes all three cases in 45.760s wall (28.932s test file), including navigation and reconnect behavior. An additional disposable before/after fixture passed two cases in 15.288s: each variant received two trusted wheel gestures and 700px of native upward movement. Delaying the actual offset publication beyond the existing 300ms boundary leaves the original card expanded and collapses the repaired card. It does not change physical scrolling, the controller state, or the disclosure element directly. The instrumentation is not included in this PR.
The inspected screenshots below are synthetic delayed-observation reproductions. They demonstrate the confirmed controller bug, not the cause of the earlier CI failure. That historical causality remains unproven; the original failure is retained in run 36129742700, UI shard 3. A broader local shard passed 385 cases but omitted the target because its recipe missed CI's generated include list; it is neighboring coverage only. Local Chromium was 152, while the historical CI run used 153. Independent review found no actionable P0–P2 findings. Selected guards, formatting, graph-boundary inspection, i18n, and the
gateway-rootconsumer type graph passed. The remaining five consumer type graphs, UI production types, coercion and unused-export checks, and targeted lint checks all passed in a 346.810s continuation. An earlier intentional interruption respected the concurrent memory budget; resumption initially stopped on its retained task-local artifact lock. After verifying the recorded owner and all associated work had exited, the documented lock recovery allowed the missing checks to run. Both the interrupted run and the lock refusal remain recorded; neither was a source/type diagnostic. Hosted timing for the final head is recorded below.The first exact-head CI run also failed in
chat-scroll-dock.e2e.test.ts: after returning to latest and reopening the progress card, one streamed update left a 35px bottom gap (expected at most 8px). The original 79-file / 369-case shard passed locally with the recorded merge, Node, Chromium, include list, and worker count. A focused timing probe also passed. These are non-reproductions; the original failure remains unexplained.That investigation exposed a separate readiness gap in settled phases 13–20: their assertions could inspect the previous rendered reply. Two expected-text checks now precede the existing idle and geometry assertions. A disposable held-delivery control showed that the original assertions completed while the new paragraph was absent; the candidate remained pending until delivery and then passed. Concurrent streaming during lines 1–12, the existing idle helper, and all geometry thresholds are unchanged. This strengthens fixture readiness without claiming the historical 35px cause is established.
All four normal variants passed in 40.280 seconds wall time (26.220 seconds in the file). The controlled original failed at the intended readiness assertion in 22.400 seconds; the controlled candidate passed in 21.743 seconds. All 19 selected checks passed in 214.044 seconds, and fresh independent review found no actionable P0–P2 finding.
Hosted validation on final head
493d92145e73: CI run 36151775500 passed. All eight scroll-dock cases passed in 71.095 seconds; the four changed browser variants totaled 33.765 seconds. The UI shard completed 80 files in 369.25 seconds (461-second job). This passing run does not establish the cause of the historical 35-pixel failure described above.