Repository navigation
test(ui): open the touch-viewport activity drawer with touch input - #161571
Conversation
The narrow touch-viewport Activity card test opened the navigation drawer with a mouse click. That parks a hover pointer at the toggle while the drawer slides in underneath it, so the drawer's header buttons can receive synthetic pointerover events after focus has entered the card. Their tooltip then owns the next Escape (Tooltip.consumeEscape), and the card stays open for the whole poll. #160140 made the window hot: the Online person link's "counts unavailable" title tooltip closes when the card opens and arms the tooltip provider's zero-delay skip window across Tab and Escape. Open the drawer with tap(), matching the touch scenario and the sibling touch tests, and assert Tab moved focus into the portaled card before Escape. First sighting: #160856 (run 36508995885, checks-ui-e2e 7/9).
|
🦞👀 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 30, 2026, 12:12 AM ET / 04:12 UTC (Revision 3). ClawSweeper reviewWhat this changesThe Control UI browser test opens the mobile navigation drawer with touch input and verifies that focus enters the activity card before checking Escape dismissal. Merge readiness✅ Ready for maintainer review Current main still has the flaky browser-test path. The reported failure and the proposed correction are supported by the Control UI event handlers and focused browser evidence; no actionable patch defect emerged. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI browser suite drives a mobile navigation drawer and Online-person activity card using a mocked Gateway. Drawer, tooltip, and card handlers process its pointer and keyboard input before the test checks the rendered result. flowchart LR
A[Mobile browser test] --> B[Drawer touch input]
B --> C[Online person link]
C --> D[Activity card]
D --> E[Focus check]
E --> F{Tooltip visible?}
F -- No --> G[Escape closes card]
F -- Yes --> H[Escape dismisses tooltip]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the tooltip's intended Escape priority and land the focused mobile browser-test correction through normal PR gates. Do we have a high-confidence way to reproduce the issue? Yes. The contributor recorded a matching failure from the current-main mouse-click path in Chromium with a slowed drawer, and current source supports the reported Escape ordering; this review did not rerun the browser test. Is this the best way to solve the issue? Yes. Touch input matches the test's mobile context, and the focus assertion checks the intended keyboard path without weakening dismissal assertions or changing tooltip behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against df2a29cac9ad. 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
History |
|
Merged via squash.
|
…penclaw#161571) The narrow touch-viewport Activity card test opened the navigation drawer with a mouse click. That parks a hover pointer at the toggle while the drawer slides in underneath it, so the drawer's header buttons can receive synthetic pointerover events after focus has entered the card. Their tooltip then owns the next Escape (Tooltip.consumeEscape), and the card stays open for the whole poll. openclaw#160140 made the window hot: the Online person link's "counts unavailable" title tooltip closes when the card opens and arms the tooltip provider's zero-delay skip window across Tab and Escape. Open the drawer with tap(), matching the touch scenario and the sibling touch tests, and assert Tab moved focus into the portaled card before Escape. First sighting: openclaw#160856 (run 36508995885, checks-ui-e2e 7/9).
Backport the exact fixture correction from 2247f10 (#161571). Use a native touch gesture and wait for focus inside the card before Escape; retain all existing assertions and test budgets. Co-authored-by: Peter Steinberger <[email protected]>
* chore(release): prepare 2026.9.33 with backport audit * docs(release): store backport proposals as source diffs * test(update): pin fresh-install fixture version * docs(release): record pending September candidate preparation * test(update): align downgrade fixture with driver version * test(update): pin shared stable-driver fixture version * test(doctor): align config fixture with lease worker clock Reuse the Doctor test-clock hunk from ee7c294 without its production timer changes. Preserve all relative clock advances and assertions. * test(plugins): close fixture state before cleanup * test(telegram): make held album completion deterministic Reuse the complete test-only fix from upstream c39a052 (#162410), by Peter Steinberger. Hold the album window through handler admission and await its real keyed-queue work before asserting replies. Preserve the caption, topic isolation, media and error contracts without changing production, deadlines or retries. * fix(agents): persist cleanup claims before child follow-ups A completed child can accept a human follow-up while browser cleanup is still pending. Persist its cleanup claim through the existing native worker before dispatch, then drain newly admitted predecessor writes before comparing the replacement with its exact durable source. Preserve physical-source, original-row, generation and caller guards, duplicate browser exclusion, and outcome-aware rollback. Adapt only the shipped September session-effect contract; do not import mainline registry or session-effect refactors. Adapted from b725cc7 by Peter Steinberger. Four real-worker regression cases fail before the repair; the focused twelve-file group passes 253 cases on each of macOS and Linux/arm64 afterward. The eleven original audit proposals stay unapplied. * test(telegram): hold adoption batch through native admission Hold the existing forward flush until both durable ingress handlers reach the buffer, and freeze only its monotonic maximum-wait clock. Worker I/O, Date, shutdown timers and the stop-observation budget remain native and unchanged. Assert one two-key replay operation while retaining the original commit, compensating rollback, tombstone and replay-guard checks. Delayed-second-admission controls reproduce the split-batch failure and pass with the corrected fixture; diagnostics are not shipped. Refs #168346 * test(plugins): surface native install timeout phases * test: pin updater schedule and diagnose authority timeouts Pin the legacy update-status schedule fixture as in upstream daedb90 (#163975). Add bounded failure phases to the real managed npm authority cases without changing their commands, assertions, or 120-second budgets. The hosted timeout remains unattributed. * test(ui): use touch input for activity-card drawer Backport the exact fixture correction from 2247f10 (#161571). Use a native touch gesture and wait for focus inside the card before Escape; retain all existing assertions and test budgets. Co-authored-by: Peter Steinberger <[email protected]> * fix(test): resolve monthly survivor no-op through candidate registry Monthly package installs intentionally reject explicit update tags. Keep the installed channel for the survivor no-op and opt into its loopback registry for that invocation, while leaving regular releases on their exact tag. Backport only the fixture target-manifest endpoint hunks from upstream 7a438dc (#161450), preserving existing readiness IPC and published/candidate registry identity. Extend the existing registry identity case to exercise the actual monthly resolver and exact archive bytes. Retain no-op mutation, service, survival assertions and all command budgets; no production policy change. --------- Co-authored-by: Peter Steinberger <[email protected]>
Related: #160856 (first sighting: run 36508995885, job 109217154316,
checks-ui-e2e (7/9), 2026-09-29T01:45Z)What Problem This Solves
Fixes: the Control UI e2e "opens focused details inside a narrow touch viewport and follows the session's saved face" (
ui/src/e2e/people-activity-card.e2e.test.ts) intermittently kept the "Activity for Alice" card open afterEscape(expected 1 to be +0, full 15 s poll), failing unrelated PRs.User Impact
No user-visible change. PR CI stops going red on this test. The Control UI behavior it exposed is intended (a visible tooltip is dismissed by the first
Escape).Why This Change Was Made
The test runs in a touch viewport (
hasTouch,isMobile, 390×650, motion enabled) but opened the navigation drawer with a mouseclick(). That parks a hover pointer at the toggle while the drawer slides in underneath it. If a header button's tooltip opens after focus has entered the card, that tooltip owns the nextEscapeby design (Tooltip.consumeEscape, window capture), so the card's ownEscapehandler never runs.The test now opens the drawer with
tap(), matching its touch scenario and the sibling touch-viewport tests (sidebar-name-marquee,question-flow). It also asserts thatTabactually moved focus into the portaled card beforeEscape. No timeouts, retries, or assertions were weakened.Root cause detail and trace
.shell-navslides in with a 200 ms transform, and the test'sTab/Escaperun while it is still moving (translateX(-15px)atTab,-2.6pxatEscapeon an idle Testbox). The parked mouse sits at ≈(40,30). As the drawer moves, Chromium fires syntheticpointerovers on the header's New conversation and Open command palette buttons.Why it surfaced now: #160140 put
title="Session counts unavailable"on the Online person link, and this mock never returnsownerSessionCounts. Keyboard focus on Alice therefore opens a title tooltip, which closes the moment the card opens. That close arms the tooltip provider's 300 ms skip window, so a hover opens its tooltip with 0 ms delay instead of 150 ms, exactly acrossTab→Escape.A reproduced failure (drawer animation slowed via CDP
Animation.setPlaybackRate(0.1)):The sighting's merge base
4ddd0e33973eis onmain, and no latermaincommit touched this test.Evidence
All proof ran on Blacksmith Testbox
tbx_01m3qttws6vvr5z8a8cdde9ckrwith CI's e2e config (test/vitest/vitest.ui-e2e.config.ts,OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1). A temporary, uncommitted harness replayed this test's opening sequence with a page-side event trace:click(), 4× CPU throttleclick(), normal speed, full tracesclick(), drawer animation at 10%tap(), drawer animation at 10%pointeroversEscapeEscapeFixed test:
people-activity-cardfile with--maxWorkers 2passed 8/8 loops, 12/12 tests each.--maxWorkers 2ran twice. 79/81 files passed both times, includingpeople-activity-card12/12.chat-selection-to-mainandcomposer-text-readabilityfail atbrowserContext.newPagebecause the lease's Playwright cache lacksffmpeg-1011for video recording. That is a Testbox tooling gap; this PR doesn't touch those files and they are green onmainCI.oxfmt --checkandgit diff --checkare clean.Test cost:
node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner --maxWorkers=1 ui/src/e2e/people-activity-card.e2e.test.tstakes 41.5 s wall on Testbox, including the ~12 s bundled Control UI build. The file's 12 tests take 26.0 s, and this test takes 1.3 s (1.28–1.70 s across 11 runs). No test is added.tap()costs the same asclick(), and the new poll resolves on its first read. CI (run 36667368805,checks-ui-e2e (7/9), the sighting's shard, 431/431 passed): the file took 28.2 s and this test 1.22 s.Landing note: the first two CI runs on this PR failed before reaching any tests, because of main-side breaks introduced by #161534 (
preflightcould not find.ci-harness/scripts/ci-build-manifest.mjs, thencheck-guardsrejected itsparseBoolean). Both were fixed onmainby 6c07ebf and df2a29c. The PR head was refreshed twice with the patch unchanged.