Skip to content

fix(ui): open composer plus menu without upward growth - #192441

Merged
vyctorbrzezowski merged 6 commits into
mainfrom
openclaw/lucky-crab-2
Nov 4, 2026
Merged

vyctorbrzezowski merged 6 commits into
mainfrom
openclaw/lucky-crab-2

Conversation

@roboclaw-bot

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

Copy link
Copy Markdown
Collaborator

Problem

Reopening the composer + menu made it grow upward from a stale measured height instead of using the normal composer-picker entrance. This affected desktop and narrow mobile viewports.

Solution

  • Restrict height easing to an already-open menu with .agent-chat__capability-menu-panel:where([data-phase="open"]).
  • Remove the redundant consumer opacity/scale/display/overlay transition declaration. Opening and closing now inherit the shared menu defaults directly; switching capability views retains height easing.
  • Keep the phase condition at zero specificity so the existing reduced-motion override wins.
  • Allocate 42 regression-test lines for the real-browser geometry and reduced-motion contracts; no shared budget cap was raised.

Validation

  • Reopen regression fails on the original source with 9 distinct visible heights and passes with the fix: the panel is 197px on every visible entry frame.
  • Reduced-motion regression fails on the earlier PR selector (height instead of none) and passes with :where.
  • Final local browser run: 14/14 attachment-menu tests plus 2/2 desktop/mobile capture scenarios passed (100.48s combined run, including transforms/imports). Real browser layout is needed to observe native popover transitions and measured height.
  • Targeted stylelint, oxfmt, and git diff --check passed.
  • Final published head 14555c31ce428282068d9392e5ef63f893b4746f: control-ui-performance and baseline-ratchet CI passed, as did dependency/security review. Remaining CI is tracked on the PR rather than treated as prior-head evidence.
  • Chromium desktop/mobile viewport coverage; no claim of native mobile/WebKit or live-Gateway verification.

Inspected before/after screenshots

Matching reopened-menu entrance frames, paused at 40ms, from the real UI with synthetic fixtures. Before uses the original stylesheet; after uses the final stylesheet. Crops come from their respective viewport screenshots. The old panel is still growing and clips Web search; the fixed panel already has its full height while fading/scaling normally. Capture details.

Viewport Before After
Desktop 1280×900 Desktop before Desktop after
Mobile 390×900 Mobile before Mobile after

Worked on by

roboclaw-bot and others added 2 commits November 4, 2026 01:09
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 49d21ba3-2272-4c56-a0cf-deb260ea9b9d
@clawsweeper

clawsweeper Bot commented Nov 4, 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. 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 clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 4, 2026
@clawsweeper

clawsweeper Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

This PR limits composer plus-menu height animation to navigation within an already-open menu.

Example: Reopen the plus menu on /chat at 390×844.

  • Before: Reported visible heights grow from 25px to 197px during entrance.
  • After: Reported visible frames stay at 197px while opacity and scale animate.

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The repair is focused and useful, but the accessibility regression, executable budget failure, and incomplete visual validation prevent readiness.
Proof confidence 🦪 silver shellfish (2/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Reopening the composer plus menu visibly grows its panel upward during entrance.
Reason: The maintainer-authored direction restores consistent menu entrance behavior while retaining animated navigation between capability views.

Merge readiness

⛔ Blocked before merge - 3 items remain

Keep open: this PR addresses a current menu animation defect, but introduces a reduced-motion regression and leaves the test-line ratchet failing.

Priority: P2
Reviewed head: c071232373dd55d46722660e63091631d9bafabc

Before merge

  • Preserve the reduced-motion override for open menus (P2) - With prefers-reduced-motion: reduce enabled, open the plus menu and navigate to Skills or Plugins. This new selector has specificity 0,2,0, so its height transition defeats the existing 0,1,0 transition:none rule at lines 610–613. View changes now animate for users who previously had those transitions disabled. Use a zero-specificity phase condition such as :where([data-phase="open"]), or otherwise preserve the existing override.
  • Allocate the added regression-test lines (P2) - This test adds 34 tracked test lines without a corresponding allocation. The exact-head baseline-ratchet job reports test-lines failure, and the checker rejects positive unallocated growth when the tree exceeds its ceiling. Keep this distinct browser regression and add a justified allocation under config/test-lines-allocations/ rather than raising the shared scalar.
  • Resolve merge risk - Before merge, the CI owner must resolve or independently attribute the remaining UI-shard and chat boot-size failures; available annotations do not establish their cause.

Findings

  • [P2] Preserve the reduced-motion override for open menus — ui/src/styles/chat/composer.css:337-338
  • [P2] Allocate the added regression-test lines — ui/src/e2e/chat-attachment-menu.e2e.test.ts:305-306

Tests

  • Missing end-to-end proof: The reported red/green frame-sampling regression is useful, but inspected before/after visual captures and WebKit verification are not supplied.
Agent review details

How this fits together

The composer renders capability views inside the shared native menu; layout measurement supplies panel height, and overlay lifecycle phases control presentation.

flowchart LR
  A[Composer plus button] --> B[Shared native menu]
  B --> C[Overlay lifecycle phase]
  B --> D[Capability view]
  D --> E[Measured panel height]
  C --> F[Composer CSS transitions]
  E --> F
Loading

Technical review

Best possible solution:

Keep the phase-scoped CSS repair, preserve the reduced-motion override with a zero-specificity phase condition, and allocate the justified regression-test growth.

Do we have a high-confidence way to reproduce the issue?

Source shows measured inline height combined with an unconditional entrance-height transition on main; the PR reports matching desktop/mobile frame samples, but no target code was executed during this review.

Is this the best way to solve the issue?

Using the existing overlay phase is a focused solution; wrapping the phase condition in :where() would retain the existing reduced-motion precedence without adding another owner.

Full review comments:

  • [P2] Preserve the reduced-motion override for open menus — ui/src/styles/chat/composer.css:337-338
    With prefers-reduced-motion: reduce enabled, open the plus menu and navigate to Skills or Plugins. This new selector has specificity 0,2,0, so its height transition defeats the existing 0,1,0 transition:none rule at lines 610–613. View changes now animate for users who previously had those transitions disabled. Use a zero-specificity phase condition such as :where([data-phase="open"]), or otherwise preserve the existing override.
    Confidence: 0.99
  • [P2] Allocate the added regression-test lines — ui/src/e2e/chat-attachment-menu.e2e.test.ts:305-306
    This test adds 34 tracked test lines without a corresponding allocation. The exact-head baseline-ratchet job reports test-lines failure, and the checker rejects positive unallocated growth when the tree exceeds its ceiling. Keep this distinct browser regression and add a justified allocation under config/test-lines-allocations/ rather than raising the shared scalar.
    Confidence: 0.97

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 1ca0669dbe39.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the phase-scoped CSS repair, preserve the reduced-motion override with a zero-specificity phase condition, and allocate the justified regression-test growth.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm exec vitest run --config ui/vitest.e2e.config.ts ui/src/e2e/chat-attachment-menu.e2e.test.ts
  • pnpm lint:ui:styles
  • pnpm check:test-lines-ratchet
  • git diff --check

What I checked:

  • Verified introduced scope: The pinned introduction diff changes only the composer stylesheet and its attachment-menu regression test. (c071232373dd)
  • Reduced-motion cascade regression: The new open-phase selector has specificity 0,2,0, overriding the existing reduced-motion selector at lines 610–613 with specificity 0,1,0. (ui/src/styles/chat/composer.css:337, c071232373dd)
  • Current main still has the entrance-height transition: Fetched main retains the unconditional height transition; its unrelated lightning-icon changes are not edits introduced by this PR. (ui/src/styles/chat/composer.css:329, 1ca0669dbe39)
  • Original menu-height intent: fix(ui): refine composer media and capability menus #184780 introduced the height transition to support consistent capability-menu navigation, including menu-height browser validation; this PR preserves that intent for settled menus. (ui/src/styles/chat/composer.css:329, 9d44439eecaa)
  • Executable test-budget failure: The baseline-ratchet job reports test-lines failure. The PR adds 34 test lines without the allocation required by the repository's test-budget contract. (ui/src/e2e/chat-attachment-menu.e2e.test.ts:305, c071232373dd)
  • Other failed checks remain unattributed: UI-shard annotations identify toast assertions, and the performance annotation identifies chat boot gzip growth. Corresponding base lanes were skipped, so green aggregate base CI does not establish an outside cause; detailed job-log retrieval was blocked by the artifact host allowlist. (754f04fc069b)

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 9d44439 adds ui/src/styles/chat/composer.css:327 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 9d44439eecaa; files: ui/src/styles/chat/composer.css)
  • Peter Steinberger: Raw commit 5469173 adds ui/src/styles/chat/composer.css:306 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 54691736d026; files: ui/src/styles/chat/composer.css)

PR surface

Source +5, Tests +34. Total +39 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 6 1 +5
Tests 1 34 0 +34
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 40 1 +39

Labels

Label changes:

  • add P2: This is a limited composer presentation defect with an introduced accessibility-preference regression.
  • add rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: This is a limited composer presentation defect with an introduced accessibility-preference regression.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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.

Reviewed November 3, 2026, 8:26 PM ET / November 4, 2026, 01:26 UTC.

roboclaw-bot and others added 2 commits November 4, 2026 02:09
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 3cd5f7c0-aff2-4895-a08b-85f9dc229fd9
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Inspected motion evidence

The same real composer is reopened in Chromium with its CSS entrance transitions paused at 40 ms. These are crops from the captured viewport frames, using synthetic fixtures. Before uses the original stylesheet; after uses the final stylesheet. The baseline panel is still growing (173.375 px), clipping Web search; the fixed panel already has its full 197 px height. Both retain the shared fade/scale.

Viewport Before After
Desktop 1280×900 Desktop before Desktop after
Mobile 390×900 Mobile before Mobile after

Final validation: all 14 attachment-menu E2E tests plus both capture scenarios pass. Reduced-motion coverage fails on the earlier PR selector (height instead of none) and passes with :where specificity. The final CSS also removes the redundant consumer opacity/scale/display/overlay transition declaration, inheriting the shared menu owner directly and reducing emitted CSS instead of increasing a size cap. The justified 42-line regression allocation is included. No new public configuration, dependencies, or generated media are committed.

roboclaw-bot and others added 2 commits November 4, 2026 11:16
Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: a43fb7de-0704-4a3e-8e38-a49608ee937a
@vyctorbrzezowski
vyctorbrzezowski merged commit 0253ac7 into main Nov 4, 2026
96 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/lucky-crab-2 branch November 4, 2026 11:41
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 5, 2026
fix(ui): open composer plus menu without upward growth

Co-authored-by: vyctorbrzezowski <[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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: S status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants