Repository navigation
fix(ui): prevent widget tests from missing menu actions - #157494
Conversation
Observe a fresh wa-after-show before each pointer or keyboard action so click coordinates do not straddle the opening animation. Preserve every original request, target, frame, draft, split and failure assertion. Controlled real-pointer red/green and the exact 79-file cohort pass; historical CI pointer attribution remains unproven. Co-authored-by: vincentkoc <[email protected]>
|
🦞👀 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 24, 2026, 2:59 PM ET / 18:59 UTC. ClawSweeper reviewWhat this changesThe branch makes the Control UI widget test wait for the header menu to finish opening after pointer and keyboard triggers before selecting menu actions. Merge readiness✅ Ready for maintainer review Keep open. The animation-sensitive menu wait remains on current main and in the latest release. The branch has a focused test repair supported by controlled browser evidence. The linked packaging PR addresses separate code. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI places fullscreen widget actions in the chat header menu. A Playwright test opens that menu against a mocked Gateway, then checks board requests and preserved widget state. flowchart LR
A[Widget board fixture] --> B[Control UI dashboard]
B --> C[Header dropdown]
C --> D[Opening completes]
D --> E[Menu action]
E --> F[Gateway request assertions]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +7. Total +7 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep the completion wait in the shared test helper while retaining real menu clicks, exact Gateway request checks, and widget-state assertions. Do we have a high-confidence way to reproduce the issue? Yes, at the browser boundary: the PR body describes a controlled pointer sequence that misses the moving Remove item, and current main still has the pre-fix wait. I did not execute that sequence; the historical CI failure has no pointer trace. Is this the best way to solve the issue? Yes. Waiting for the dropdown's own completion event in the shared test helper directly addresses the timing gap while preserving real interactions and the existing assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0603d46c1b76. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Apply the maintained fixture repair from 2019fd9 (#157494). Wait for each actual menu opening before choosing pointer coordinates, retaining the real input flow and every original assertion. Co-authored-by: vincentkoc <[email protected]>
Keep committed session usage totals visible during background refresh and reread them when chat.metadata.changed announces settled work. Scope refresh outcomes to their agent, retain successful publications through later failures, and preserve paused recovery across navigation and filter changes until explicit Refresh or a successful publication. Reject unavailable requested transcripts through the existing failure receipt, and keep provider quota retry budgets independent. Use Telegram's production dispatch boundary in its session-destination fixture instead of a generic HTTP wrapper with an unrelated ten-second deadline. Preserve routing, real-command, topic persistence, and reply assertions. Validated with original-code negative controls, real usage-worker and Gateway tests, Control UI tests and bundled browser proof, static gates, and Telegram fixture repetition on Blacksmith Testbox. No production deployment or live multi-minute refresh. Adopt the maintained widget-menu fixture synchronization from #157494, retaining every original pointer, keyboard, target, and frame-preservation assertion. Co-authored-by: vincentkoc <[email protected]>
…7494) Observe a fresh wa-after-show before each pointer or keyboard action so click coordinates do not straddle the opening animation. Preserve every original request, target, frame, draft, split and failure assertion. Controlled real-pointer red/green and the exact 79-file cohort pass; historical CI pointer attribution remains unproven. Co-authored-by: vincentkoc <[email protected]>
) Keep committed session usage totals visible during background refresh and reread them when chat.metadata.changed announces settled work. Scope refresh outcomes to their agent, retain successful publications through later failures, and preserve paused recovery across navigation and filter changes until explicit Refresh or a successful publication. Reject unavailable requested transcripts through the existing failure receipt, and keep provider quota retry budgets independent. Use Telegram's production dispatch boundary in its session-destination fixture instead of a generic HTTP wrapper with an unrelated ten-second deadline. Preserve routing, real-command, topic persistence, and reply assertions. Validated with original-code negative controls, real usage-worker and Gateway tests, Control UI tests and bundled browser proof, static gates, and Telegram fixture repetition on Blacksmith Testbox. No production deployment or live multi-minute refresh. Adopt the maintained widget-menu fixture synchronization from openclaw#157494, retaining every original pointer, keyboard, target, and frame-preservation assertion. Co-authored-by: vincentkoc <[email protected]>
What Problem This Solves
Fixes: the fullscreen-widget test can click a menu action before its opening animation finishes and then wait for a request that was never selected.
User Impact
Test-only synchronization repair in one file; no production or visual change. The real pointer/keyboard flow, timeouts, request counts, target assertions and frame/draft preservation checks remain intact. No new tests or retries.
Why This Change Was Made
A visible menu heading does not mean its items have finished moving. The shared fixture now registers a fresh wa-after-show observer before each real trigger, clears the previous marker and waits for that opening to finish. The keyboard reopen uses the same helper rather than a duplicate listener.
Contributor credit: requested by and co-authored with @vincentkoc.
Work sessions
Evidence
The owned configured Testbox was stopped and independently verified completed with no IP. No proxy, source-privacy, sandbox, timeout or assertion safeguard was changed. Final exact-head CI 36044232734 and the enforced CI/security gate passed. The unchanged head landed as 2019fd9288c9; main containment, Vincent’s co-author trailer and native closeout were verified. Native admission reported relevant mainline input drift and proceeded under its unchanged default policy; this does not claim full merged-main CI recovery.
View the OpenClaw team session