Skip to content

fix(ui): prevent widget tests from missing menu actions - #157494

Merged
roboclaw-bot merged 1 commit into
mainfrom
fix/solo-widget-remove-ci-20260924
Sep 24, 2026
Merged

roboclaw-bot merged 1 commit into
mainfrom
fix/solo-widget-remove-ci-20260924

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Canonical CI 36034723474 / job 107756437529 timed out waiting for the Research widget's remove request. Its artifacts lack pointer/selection traces, so the precise historical cause is not claimed proven.
  • Controlled real-pointer proof: pointerdown hits Remove; animation completes; pointerup at the same coordinates hits the height item; the resulting dropdown click emits no selection or remove request, despite valid authority and a nonbusy board. Waiting for the fresh completion event passes every original assertion. No synthetic selection event or direct handler replaces the UI flow.
  • Controlled red/green and final proof used CI=true, retaining the original 30-second request deadline. The ordinary unmodified replay passed but used CI=1's 10-second request deadline; it is neither an exact-environment reproduction nor fix evidence.
  • Final actual runtime: Node 24.21.0, Playwright 1.63.0, Chromium 153.0.8010.12. Whole file 4/4 passed, file 4.966 s, command 21.87 s including setup/build; relevant siblings 2 files / 11 tests passed.
  • Original selected cohort, actual logged shard 8/8, three workers: exact matched inventory 79 files / 375 tests passed, 431.29 s. Under cohort load the widget case took 3.368 s. Full source-capsule/tree and final file hashes were verified.
  • Full selected changed-file checks and diff check passed; fresh independent P2 review and repository AutoReview found no actionable findings. All original assertions remain, including after:1, exact operations/target, frame/draft identity, split/multi controls, read-only and failure behavior.

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

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]>
@roboclaw-bot roboclaw-bot self-assigned this Sep 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 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.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 24, 2026 18:52
@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 24, 2026
@clawsweeper

clawsweeper Bot commented Sep 24, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 2:59 PM ET / 18:59 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The narrow patch matches the dropdown event contract and has detailed browser-run evidence, though the original CI failure's exact cause remains unproven.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The bot-authored PR is exempt from the contributor proof gate. Its captured body reports a controlled Chromium pointer failure before the helper change and passing widget and cohort runs afterward; no stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The bot-authored PR is exempt from the contributor proof gate. Its captured body reports a controlled Chromium pointer failure before the helper change and passing widget and cohort runs afterward; no stored-data contract changes.
Evidence reviewed 9 items Introduced change: The pinned merge-base-to-head diff adds a fresh completion observer before each menu trigger and reuses it for keyboard reopening; it changes only the widget E2E test.
Current main still has the earlier wait: The helper clicks the trigger and waits for the widget heading, without waiting for the dropdown opening animation to complete.
Dropdown contract: The browser tests observe wa-after-show on the dropdown itself and use that event to count completed openings.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +7. Total +7 across 1 file.

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

Review metrics

Metric Value Why it matters
Focused E2E cost 4 cases; 4.966 s file runtime and 21.87 s command wall time reported The changed file remains near the repository's five-second test-time target without adding cases or retries.

Technical review

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

Labels

Label changes:

  • add P2: This is a bounded repair to an existing UI test failure with limited product impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The bot-authored PR is exempt from the contributor proof gate. Its captured body reports a controlled Chromium pointer failure before the helper change and passing widget and cohort runs afterward; no stored-data contract changes.

Label justifications:

  • P2: This is a bounded repair to an existing UI test failure with limited product impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The bot-authored PR is exempt from the contributor proof gate. Its captured body reports a controlled Chromium pointer failure before the helper change and passing widget and cohort runs afterward; no stored-data contract changes.

Evidence

What I checked:

  • Introduced change: The pinned merge-base-to-head diff adds a fresh completion observer before each menu trigger and reuses it for keyboard reopening; it changes only the widget E2E test. (ui/src/e2e/solo-widget-chrome.e2e.test.ts:94, b70d59ab0a20)
  • Current main still has the earlier wait: The helper clicks the trigger and waits for the widget heading, without waiting for the dropdown opening animation to complete. (ui/src/e2e/solo-widget-chrome.e2e.test.ts:94, 0603d46c1b76)
  • Dropdown contract: The browser tests observe wa-after-show on the dropdown itself and use that event to count completed openings. (ui/src/components/web-awesome-dropdown.browser.test.ts:32, b70d59ab0a20)
  • Original assertions retained: The changed test still clicks the widget action and asserts the resulting board.update request targets the Research widget. (ui/src/e2e/solo-widget-chrome.e2e.test.ts:229, b70d59ab0a20)
  • Reported browser proof: The captured PR body reports a controlled pointerdown on Remove followed by pointerup over a moving height item before the fix, then 4/4 widget tests and the 375-test selected cohort passing after the change. These are contributor-reported observations; the historical CI artifact lacks pointer traces. (b70d59ab0a20)
  • Original CI failure: The referenced UI E2E shard job concluded with failure; its result alone does not prove the precise pointer cause.

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • 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.

@roboclaw-bot
roboclaw-bot merged commit 2019fd9 into main Sep 24, 2026
146 of 147 checks passed
@roboclaw-bot
roboclaw-bot deleted the fix/solo-widget-remove-ci-20260924 branch September 24, 2026 19:26
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

@roboclaw-bot roboclaw-bot changed the title test(ui): wait for widget header menus to finish opening fix(ui): prevent widget tests from missing menu actions Sep 24, 2026
steipete added a commit that referenced this pull request Sep 24, 2026
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]>
steipete added a commit that referenced this pull request Sep 24, 2026
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]>
@roboclaw-bot roboclaw-bot mentioned this pull request Sep 24, 2026
2 of 8 tasks
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 25, 2026
)

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]>
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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