Skip to content

test(ui): use touch events for widget scroll gestures - #178578

Merged
vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/fix-widget-touch-emitter
Oct 20, 2026
Merged

vyctorbrzezowski merged 1 commit into
mainfrom
brzezowski/fix-widget-touch-emitter

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

The widget scrolling browser test can record zero movement on Linux when its synthetic scroll gesture bypasses the platform touch recognizer.

User Impact

No application scrolling behavior changes. The existing browser test exercises the touch input path used by its mobile fixture.

Why This Change Was Made

Send sequential touch-start, touch-move, and touch-end events through Chromium's touch emulator. The sequence supplies no synthetic timestamps and performs no intermediate layout reads. All drag, inertia, monotonicity, and retained-reader assertions remain unchanged.

Evidence

  • The positive case passed with 4x CPU throttling (6.103 s test case).
  • The touch-cancel negative control failed the inertia assertion at 234 px, below the required 260 px.
  • Focused typed lint, canonical type checks, formatting, diff checks, and independent review passed.
  • Chromium source inspection supports the routing change. Linux CI executed the widget scrolling case successfully (6.128 s case; 6.261 s file), including text, widget, upward-scroll, and streaming assertions. The complete CI gate is still pending.

@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review October 20, 2026 17:04
@clawsweeper

clawsweeper Bot commented Oct 20, 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.

@vyctorbrzezowski
vyctorbrzezowski enabled auto-merge (squash) October 20, 2026 17:07
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 20, 2026
@clawsweeper

clawsweeper Bot commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces synthetic scroll gestures with sequential Chromium touch events in the widget-scrolling browser test.

Example: The mobile Chromium fixture performs a 240 px swipe through an embedded widget.

  • Before: The synthetic gesture can record zero drag movement on Linux.
  • After: The fixture sends touch-start, twelve touch-move events, and touch-end while retaining its movement and inertia assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch preserves useful coverage and has no concrete finding; reported browser results support it, while affected-platform validation remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) This MEMBER-authored test repair is outside the ordinary contributor proof gate; the body reports native-browser positive and negative controls, with Linux confirmation still pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: The widget-scrolling browser regression can report zero movement on Linux despite its intended mobile touch scenario.
Reason: The maintainer-authored direction preserves meaningful native-scroll coverage without changing production scrolling, adding settings, or introducing another owner.

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes a focused repair to an existing browser regression test; no actionable introduced defect was found.

Priority: P3
Reviewed head: 306708e58c43a59de54e25a733f05142dd7f8e84

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A passing Linux replay of the changed gesture path is not yet available; its exact-head browser check remains queued.
Agent review details

How this fits together

The Control UI browser fixture sends input through Chromium CDP and observes transcript scrolling across sandboxed widget frames.

flowchart TD
  A[Mobile browser fixture] --> B[CDP touch events]
  B --> C[Chromium touch handling]
  C --> D[Chat and widget frames]
  D --> E[Scroll and release observations]
  E --> F[Drag inertia and reader assertions]
Loading

Technical review

Best possible solution:

Use the existing swipe helper to inject native touch events while preserving all behavioral assertions.

Do we have a high-confidence way to reproduce the issue?

The preceding merged PR documents the Linux zero-movement failure, but this read-only review executed no target code and cannot independently establish its precise platform cause.

Is this the best way to solve the issue?

The patch is the smallest complete routing change in the existing gesture owner, removes the replaced injection path, and preserves independent assertions against drag-only motion.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 59797f91cd08.

Provenance checked

  • Native-touch gesture injection changes intended behavior with a stated reason (58c3f35: Delegate gesture timing to Chromium to avoid synthetic timestamps diverging from actual input delivery on loaded runners.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 7dccff5 adds ui/src/e2e/chat-widget-scroll.e2e.test.ts:37 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7dccff559941; files: ui/src/e2e/chat-widget-scroll.e2e.test.ts)

PR surface

Tests +5. Total +5 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 12 7 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 12 7 +5

Labels

Label changes:

  • add P3: This is a bounded browser-test reliability repair with no application behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a bounded browser-test reliability repair with no application behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Confirm the queued Linux browser check exercises and passes the widget-scrolling case.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 20, 2026, 1:18 PM ET / 17:18 UTC.

@vyctorbrzezowski
vyctorbrzezowski merged commit 051bf6f into main Oct 20, 2026
90 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/fix-widget-touch-emitter branch October 20, 2026 17:26
@vyctorbrzezowski vyctorbrzezowski added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 20, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 21, 2026
@vyctorbrzezowski vyctorbrzezowski self-assigned this Oct 25, 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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS 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.

1 participant