Skip to content

fix: respect menu dismissal in sidebar animation checks - #165265

Merged
shakkernerd merged 1 commit into
mainfrom
fix/sidebar-marquee-drawer
Oct 5, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/sidebar-marquee-drawer

Conversation

@shakkernerd

@shakkernerd shakkernerd commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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

Open preview

Before After
Original test leaves the mobile drawer open after the agent menu consumes Escape Corrected keyboard sequence reaches the closed drawer and returns focus to its toggle

Corrected account and agent menu close/reopen cycles

[email protected]

Visual verification

  • Baseline: 67f261d
  • Exact head: 39717e0c3a62e2495163c57c10decd8e2aefcdb4
  • Scenario: At 390 by 844 pixels, open each overflowing identity menu on touch, dismiss with the keyboard, close the drawer, and reopen. The original test stops after one Escape; the corrected test waits for menu dismissal and sends Escape for the drawer. This comparison demonstrates the corrected test sequence; application behavior is unchanged.
  • Runtime/build: Both runs served identical application assets/index-BWUHlFv0.js on remote macOS Chromium, light theme, synthetic names. Candidate content tree 831eb848aacc20c3201d0ec88107299cf1ac4781 matches the committed head. Capture fixtures explicitly display Demo model.
  • Original terminal state: Drawer open; agent name still has two animations
  • Corrected terminal state: Drawer closed; both names offscreen with zero animations
  • Focused browser proof: All seven marquee scenarios and one mobile Escape/focus neighbor passed in 24.66 seconds
  • Original offscreen assertion reproduced on unchanged application code
  • Corrected test preserves every existing animation and reopening assertion
  • Both screenshots inspected at original resolution using synthetic data
  • Recording shows the same keyboard-driven touch interaction

@clawsweeper

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

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 10:10 PM ET / October 5, 2026, 02:10 UTC.

ClawSweeper review

What this changes

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

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test repair with relevant before/after browser evidence and no actionable correctness findings.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
Evidence reviewed 7 items Pinned introduced change: The introduced delta adds only the second Escape presses and a menu-closure assertion. Existing offscreen, animation-stop, reset-position, and reopening assertions remain intact. The verified test-merge comparison likewise contains only this test change.
Current-main necessity: Fetched main still expects the drawer to be offscreen after a single Escape in both mobile close/reopen cycles; it does not contain this repair.
Production interaction contract: The agent menu prevents the Escape event's default action so the dropdown can consume it before the mobile drawer. Waiting for menu closure before the next Escape matches this intentional interaction contract.
Findings None None.
Security None None.

How this fits together

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

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

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

Review metrics

None.

Technical review

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

Labels

Label changes:

  • add P2: This repairs a concrete browser-test failure with a bounded test-only change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.

Label justifications:

  • P2: This repairs a concrete browser-test failure with a bounded test-only change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. Inspected browser screenshots show menu-first dismissal reaching a closed mobile drawer against unchanged application assets; the captured remote Chromium results additionally cover animation cleanup and reopening. Video inspection was limited by unavailable ffprobe. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The introduced delta adds only the second Escape presses and a menu-closure assertion. Existing offscreen, animation-stop, reset-position, and reopening assertions remain intact. The verified test-merge comparison likewise contains only this test change. (ui/src/e2e/sidebar-name-marquee.e2e.test.ts:209, 39717e0c3a62)
  • Current-main necessity: Fetched main still expects the drawer to be offscreen after a single Escape in both mobile close/reopen cycles; it does not contain this repair. (ui/src/e2e/sidebar-name-marquee.e2e.test.ts:207, deac9742f37f)
  • Production interaction contract: The agent menu prevents the Escape event's default action so the dropdown can consume it before the mobile drawer. Waiting for menu closure before the next Escape matches this intentional interaction contract. (ui/src/components/app-sidebar-agent-menu.ts:303, 39717e0c3a62)
  • Related merged work: GitHub confirms fix(ui): clarify sidebar agent selection and roster actions #150587 merged as c501233. It provides context for the menu behavior rather than superseding this test repair. (c5012333049e)
  • Inspected browser proof: Downloaded before/after screenshots show the original sequence leaving the drawer open and the corrected sequence reaching the closed drawer with focus on its toggle. The captured PR body reports seven marquee cases plus the neighboring navigation case passing in remote macOS Chromium against identical application assets, in 24.66 seconds. Video preparation failed because ffprobe was unavailable; the screenshots were inspected directly, and this reviewer limitation does not negate their evidence. (39717e0c3a62)
  • Area history and inspection limit: Main's file history records Vyctor H. Brzezowski's marquee work and Peter Steinberger's recent test maintenance. Targeted blame could not complete because a historical object was unavailable and its retrieval returned HTTP 403; no source-line introduction attribution is claimed. (ui/src/e2e/sidebar-name-marquee.e2e.test.ts, deac9742f37f)

Likely related people:

  • vyctorbrzezowski: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: 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.

@shakkernerd shakkernerd self-assigned this Oct 5, 2026
@shakkernerd
shakkernerd merged commit 1eb4eec into main Oct 5, 2026
99 checks passed
@shakkernerd
shakkernerd deleted the fix/sidebar-marquee-drawer branch October 5, 2026 02:19
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Fixed: mobile sidebar animation checks now dismiss the agent menu before closing the drawer.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
)

Respect the agent menu's Escape handling in the existing mobile drawer animation check.

Refs openclaw#150587.
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. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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