Repository navigation
fix: respect menu dismissal in sidebar animation checks - #165265
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 October 4, 2026, 10:10 PM ET / October 5, 2026, 02:10 UTC. ClawSweeper reviewWhat this changesThe sidebar animation browser test waits for menu dismissal and presses Escape again before checking that the mobile drawer has closed. Merge readiness✅ Ready for maintainer review The repair remains useful: current main still contains the stale interaction sequence, and the patch preserves the existing animation assertions. No actionable patch defect was found. Likely related people: vyctorbrzezowski and Peter Steinberger, as routing candidates from nearby merged history. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI sidebar contains account and agent menus inside a mobile navigation drawer. Browser tests exercise these controls and check that overflowing names stop animating when the drawer closes. flowchart TD
A[Touch opens identity menu] --> B[Name animation starts]
B --> C[First Escape dismisses menu]
C --> D[Wait for menu closure]
D --> E[Second Escape closes drawer]
E --> F[Check animation cleanup]
F --> G[Reopen and check animation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the keyboard-driven browser scenario aligned with menu-first Escape handling while retaining all animation lifecycle checks. Do we have a high-confidence way to reproduce the issue? Yes: current main opens the agent menu, sends one Escape, and immediately expects the enclosing drawer to close despite the menu consuming that key. Source and supplied browser evidence support the failure; this review did not execute tests. Is this the best way to solve the issue? Yes: waiting for menu dismissal and sending the drawer its own Escape is a focused correction that preserves the original touch interaction and assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against deac9742f37f. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Fixed: mobile sidebar animation checks now dismiss the agent menu before closing the drawer. |
) Respect the agent menu's Escape handling in the existing mobile drawer animation check. Refs openclaw#150587.
What Problem This Solves
The mobile sidebar animation check fails after opening the agent menu and pressing Escape. The menu correctly consumes that key before the enclosing navigation drawer, but the scenario immediately expects the drawer to be offscreen. This stale interaction sequence makes the check fail before it can verify animation cleanup.
User Impact
This changes test coverage only. It preserves the check that overflowing identity names stop animating when the mobile drawer closes and animate again after reopening, for both the account and agent controls.
Why This Change Was Made
The scenario now waits for the menu to close before pressing Escape again to dismiss the drawer. Keeping the keyboard-driven path preserves the original touch-hover conditions, while respecting the agent menu's Escape handling introduced in #150587. All existing animation, offscreen-position, and reopening assertions remain.
Evidence
The original one-Escape sequence reproduced the same offscreen assertion failure on the remote browser. The failure is also recorded in the scheduled main run and release-validation run.
The corrected file passed all seven scenarios, including long and short names, workspace names, keyboard/reduced-motion behavior, RTL, touch activation, and both mobile close/reopen cycles. The neighboring mobile navigation scenario also passed its menu dismissal, modal focus, and focus-restoration checks: eight cases passed in 24.66 seconds with one worker. The marquee file took 13.48 seconds and its mobile lifecycle case took 3.51 seconds.
Changed-file formatting and lint, i18n verification, UI production types, and all native UI test type graphs passed remotely. Independent review and autoreview found no actionable issues in the three-line change. The comparison below shows the original and corrected test sequences against identical application assets, with synthetic names and a Demo model. The application itself is unchanged. Registered CI passed on the published head; its mocked UI job took 93 seconds including setup. ClawSweeper rated the exact head Platinum, with no actionable findings.
Visual evidence
Corrected account and agent menu close/reopen cycles
[email protected]
Visual verification
39717e0c3a62e2495163c57c10decd8e2aefcdb4