Skip to content

fix: keep composer menu actions under the pointer after going back - #208116

Merged
daniel-lxs merged 5 commits into
mainfrom
openclaw/main-ci-failures-sweep-8e511f
Nov 29, 2026
Merged

daniel-lxs merged 5 commits into
mainfrom
openclaw/main-ci-failures-sweep-8e511f

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • Real Gateway, Chromium 156 and WebKit 27.2. A disposable Linux VM served the matching production UI and Gateway built at 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.
  • Independent source review. Local autoreview covered the full PR delta from 583e7abd to c7d7fe01 and 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 fix
  • New Session, Chromium, c7d7fe01. 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.
  • Existing Chat. The original browser regression still clicks Plugins immediately after Back and checks keyboard focus and scrolling in long lists. All 12 focused cases passed. Production and E2E typechecks, formatting, stylesheet lint and the whitespace check passed.
  • Idle Chat, shard 6. The hosted failure recorded two distinct startup requests. The sidebar listed the agent’s automations and desktop Details listed the session’s automations. The reconnect test waits for both scopes, asserts exactly two startup reads, then checks the counts stay unchanged through ten idle minutes. The complete four-worker replay passed all 152 tests in its 36 files. Failing job · Desktop Details inventory

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.

Desktop New Session with the root menu still open

Alignment at the trigger. The row stayed under the mouse and the Plugins submenu opened.

Desktop New Session with the Plugins submenu open

Pointer position and 223 px row displacement

Plugins opened with zero row displacement

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 log

Before After
Before: the click leaves the root menu open After: the Plugins submenu opens
The row moved 223 px before release The row stayed under the pointer

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

roboclaw-bot and others added 2 commits November 29, 2026 07:18
Worked on by:
- @daniel-lxs

Co-authored-by: daniel-lxs <[email protected]>
OpenClaw-Publication: 058afbc9-8a0b-4bca-8fd0-c66ee49b1837
@clawsweeper

clawsweeper Bot commented Nov 29, 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.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@daniel-lxs
daniel-lxs marked this pull request as ready for review November 29, 2026 07:45
@clawsweeper clawsweeper Bot added 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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. labels Nov 29, 2026
@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed.

What this changes

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

  • Before: The Plugins row moves 223 px during the click, leaving the root menu open.
  • After: The row stays under the pointer and the Plugins submenu opens.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused shared-owner repair with inspected visual evidence and distinct browser regressions; final current-head CI is pending.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected desktop before/after images show the changed menu outcome, supported by recorded real-Gateway Chromium and WebKit held-click results for Chat and New Session; the production delta is unchanged from that verified revision.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Clicking Plugins immediately after returning from a long Skills list can miss because the row moves during the click.
Reason: The maintainer-authored repair restores reliable selection in a common shared control without changing product defaults or adding configuration.

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: b3899f8f5cd5be0d1d22d2697799d75355b43032

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Shared menu frame keeps the original intent (c8e1ef9: Extract shared frame support while lazily loading subviews and retaining parent search and expansion state.)
  • Height animation keeps the original intent (fix(ui): open composer plus menu without upward growth #192441: Avoid stale-height growth on opening while preserving height easing between settled menu views.)
  • Idle-read regression keeps the original intent (00b00e2: Keep idle identity reads quiet and pause reads during announced restarts; the adjusted setup waits for both legitimate automation scopes without weakening the idle-count assertion.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit c8e1ef9 adds ui/src/pages/chat/components/chat-composer-plus-menu-frame.tsx:15 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c8e1ef929577; files: ui/src/pages/chat/components/chat-composer-plus-menu-frame.tsx)
  • Vyctor H. Brzezowski: Raw commit 43f872f adds ui/src/e2e/agent-identity-reconnect.e2e.test.ts:27 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 43f872f17162; files: ui/src/e2e/agent-identity-reconnect.e2e.test.ts)

PR surface

Source +7, Tests +67. Total +74 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 8 1 +7
Tests 2 69 2 +67
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 77 3 +74

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-11-29T08:01:32.281Z sha a3bc98d :: passed. :: none
  • reviewed 2026-11-29T08:25:48.155Z sha b3728ea :: needs changes before merge. :: [P2] Preserve pointer targets when the menu opens below the trigger
  • reviewed 2026-11-29T08:58:51.824Z sha c7d7fe0 :: passed. :: none

Reviewed November 29, 2026, 4:21 AM ET / 09:21 UTC (Revision 4).

@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 Nov 29, 2026
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.
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot removed the rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. label Nov 29, 2026
@clawsweeper clawsweeper Bot added 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. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 29, 2026
@daniel-lxs

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Nov 29, 2026
@daniel-lxs
daniel-lxs merged commit 14a9dfe into main Nov 29, 2026
93 checks passed
@daniel-lxs
daniel-lxs deleted the openclaw/main-ci-failures-sweep-8e511f branch November 29, 2026 09:31
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 30, 2026
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
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 impact:ux-friction User-facing flow adds avoidable confusion or support burden without fully blocking progress. 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

2 participants