Repository navigation
fix: keep composer menu actions under the pointer after going back - #208116
Conversation
Co-authored-by: daniel-lxs <[email protected]>
Worked on by: - @daniel-lxs Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 058afbc9-8a0b-4bca-8fd0-c66ee49b1837
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. |
|
Codex review: passed. What this changesThis PR keeps composer menu actions beside the trigger during resizing and adds placement regressions plus a startup-read test correction. Example: Return from a long Skills list and hold a click on Plugins in desktop New Session at 1280 × 900.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR fixes a concrete missed-click bug with a small change in the existing menu owner; no actionable defects remain, and current-head CI is still running. Reviewed head: Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe shared composer menu frame receives root or submenu entries, measures their content and native popover placement, and applies layout while the shared menu retains selection, focus, and dismissal. flowchart TD
A[Chat or New Session composer] --> B[Shared Plus menu]
B --> C[Root or submenu entries]
C --> D[Menu frame measurement]
E[Native panel and trigger bounds] --> D
D --> F[Trigger-facing alignment and height]
F --> G[Stable pointer selection]
Technical reviewBest possible solution: Keep alignment in the existing frame owner, using actual native placement while preserving animation, attachment order, and submenu scrolling. Do we have a high-confidence way to reproduce the issue? The base frame resizes without preserving the trigger-facing content edge; supplied browser measurements and inspected screenshots corroborate the missed click, although this read-only review ran no target code. Is this the best way to solve the issue? The repair belongs in the shared frame and uses existing measurement scheduling without adding another positioning owner. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b904594b0377. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource +7, Tests +67. Total +74 across 3 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed November 29, 2026, 4:21 AM ET / 09:21 UTC (Revision 4). |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Use the native panel and trigger bounds when returning from a submenu. Cover the held Plugins click above and below the composer. Wait for both scoped automation reads before checking that idle Chat makes no extra requests.
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
openclaw#208116) Keep the root menu actions beside the composer while its native popover changes height above or below the trigger. Cover the held click at both placements and wait for both startup automation inventories before measuring idle reads. Co-authored-by: daniel-lxs <[email protected]> OpenClaw-Publication: 058afbc9-8a0b-4bca-8fd0-c66ee49b1837
Problem and fix
Clicking Plugins immediately after returning from a long Skills list can miss. The composer’s + menu changes height between mouse-down and mouse-up. In existing Chat, a 36 px row moved 223 px and the root menu stayed open.
The menu frame measures which side of the trigger the browser actually used. It keeps root actions against the bottom edge when the menu opens above the composer and against the top edge when it opens below. The existing 220 ms height animation, attachment order, reduced-motion handling and scrollable submenus are preserved. Menu animation · Attachment placement
Verification
c7d7fe01. Each browser held the click across the native resize in existing Chat, desktop New Session (1280 × 900), and mobile New Session (390 × 844). All six clicks opened Plugins with 0 px row movement.583e7abdtoc7d7fe01and reported no actionable P0–P2 findings. The main update includes the Control UI lint fix and preserves the same three-file PR delta. Controller guard fixc7d7fe01. After Back, the mouse was pressed on Plugins, the native height transition finished, and the mouse was released at the same coordinates. Plugins opened with 0 px row movement at 1280 × 900, 390 × 844 and 555 × 1200. The menu opened below the trigger on desktop and above it at both narrower sizes. The new desktop regression failed on the unconditional bottom-alignment rule.Desktop New Session
The same 1280 × 900 Chromium fixture and gesture were used for both captures. The fixture supplies a long Skills list and has no plugin settings. The pictures show the outcome after release. The distance labels come from the row’s measured position during the click.
Unconditional bottom alignment. The row moved up 223 px and the root menu stayed open.
Alignment at the trigger. The row stayed under the mouse and the Plugins submenu opened.
Existing Chat reproduction
These real-Gateway captures compare the original failure with the above-trigger alignment on the first implementation. Its held-click comparison measured 223 px of row movement on the base and 0 px on the fix in Chromium and WebKit. The original CI replay reproduced the missed click on the base and passed all 445 cases on
6ebac6bedb6b. Original failed assertion · Replay logWorked on by
Work sessions
Linked for team reference; these sessions aren’t public.