Skip to content

chore(ui): catch clipped row-menu actions in WebKit - #198599

Merged
steipete merged 1 commit into
mainfrom
steipete/secrets-last-row-menu
Nov 14, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/secrets-last-row-menu

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #196567

What Problem This Solves

A WebKit visual proof (2026-11-07) found the last Secrets row's action menu with Delete cut off, while its menu-bounds check still passed. No committed test covered that case in WebKit, and the shared visibility check could not see a row clipped inside the menu.

User Impact

No user-visible change. The clipping itself is already fixed on main by #196567. This PR makes a regression fail in both Chromium and WebKit.

Why This Change Was Made

The cause was in the shared overlay stylesheet that every Menu uses, so other long lists with row menus had the same exposure. Before #196567, max-height used calc(100% - 16px), and inside a position-area that 100% is the space beside the trigger. A menu near the window edge shrank into that space and scrolled its own rows instead of flipping above. WebKit hit this on Secrets because the first keyboard focus at the bottom of Settings moves the last row down 72px, leaving 64px below a 66px menu. Chromium kept the row higher, so the menu still fit below.

This PR changes only tests:

  • expectItemVisible now measures each row against the menu's scrollport (clientTop/clientHeight), not the menu's outer box.
  • A new short two-item bottom-end menu at the window edge must show every action in full, above its trigger.
  • overlay-style.browser.test.tsx joins the WebKit browser lane. The whole file already passes there.

Evidence

Before (main without #196567) and after (current main), WebKit 1440x1000, last Secrets row menu

Synthetic data only, captured headlessly from production bundles with the perf lane's own Secrets proof harness (200 rows, keyboard-opened last-row menu). Top: current main with #196567's overlay CSS reverted. The menu sits at y=939.8 and is 48.2px tall around 66px of content (the same numbers as the 2026-11-07 report), and the harness's wrapper-bounds check still passes. Bottom: current main. The menu flips to y=833.8 at its full 66px. Chromium is unchanged between the two because the row has room below.

  • With fix: menus collapse near the top or bottom of the window #196567's CSS reverted, the new test fails in both engines: Edit: expected 592 to be less than or equal to 588. The menu wrapper itself still fits the viewport, which is the gap the lane reported.
  • On main, overlay-style.browser.test.tsx passes in Chromium (13/13, 5.5s) and WebKit (13/13, 6.6s).
  • pnpm tsgo:test:ui, oxlint and oxfmt pass on the touched files. Autoreview (Codex) found nothing at P2 and above.

Not covered: the 72px WebKit scroll-range drop on first focus near the bottom of Settings is a separate layout shift. This PR doesn't change it.

The WebKit Secrets proof found the last row's Delete action clipped while
its menu-bounds check still passed. The clip came from the shared overlay
max-height resolving 100% against the cell beside the trigger, already
fixed on main by #196567. Measure item visibility against the menu
scrollport, cover a short bottom-edge row menu, and run the overlay style
tests in the WebKit lane so a regression fails in both engines.
@clawsweeper

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

@steipete
steipete marked this pull request as ready for review November 14, 2026 02:54
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-14T02:56:29.403366Z 0521789 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR checks menu actions against their scrollport and adds a short bottom-edge menu regression.

Example: Open an Edit/Delete menu near the bottom of an 800×600 window.

  • Before: The outer menu bounds could pass while an action was clipped.
  • After: The test requires both actions to fit fully inside the scrollport and the menu to flip above its trigger.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, useful browser coverage with reported negative-control results; exact-head CI remains blocked by an independently observed main failure.
Proof confidence 🦐 gold shrimp (3/6) No user-visible behavior changes; inspected screenshots explain the existing production fix, and the PR reports the new browser regression failing with reverted CSS and passing in both engines.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: A menu could hide Delete while its outer bounds still passed the visibility check.
Reason: The reported visual failure demonstrates a useful regression boundary, covered through the existing Menu owner without new production machinery.

Merge readiness

✅ Ready for maintainer review

Keep this useful regression coverage; no introduced correctness or security defect was found. The UI gate reports a failure also present on main, and the existing WebKit glob already includes this suite.

Priority: P3
Reviewed head: 05217891fecf95b4f9bce70d685dd2b2f56369a0

Before merge

None.

Findings

None.

Agent review details

How this fits together

Control UI browser tests mount the shared Solid Menu, exercise native overlay positioning, and assert geometry in Chromium and WebKit.

flowchart LR
  A[Browser test] --> B[Solid Menu]
  B --> C[Native overlay stylesheet]
  C --> D[Browser positioning]
  D --> E[Scrollport and action geometry]
  E --> F[Visibility assertions]
Loading

Technical review

Best possible solution:

Retain the scrollport assertion and short-menu regression, using the existing WebKit glob without the redundant literal entry.

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

This test-only PR supplies a screenshot of the former clipping and reports a failing CSS-revert control plus 13 passing cases per engine; no target code was executed during this review.

Is this the best way to solve the issue?

Checking each action against the actual scrollport closes the demonstrated false-positive gap in the existing owner suite; the WebKit inventory addition is unnecessary.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3cd6a3ed4974.

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +1, Tests +21. Total +22 across 2 files. Added test files: 0.

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

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 P3: This is focused regression coverage for an already-fixed layout defect, with no production behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is focused regression coverage for an already-fixed layout defect, with no production behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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 13, 2026, 10:11 PM ET / November 14, 2026, 03:11 UTC.

@steipete
steipete merged commit 859d36d into main Nov 14, 2026
146 of 151 checks passed
@steipete
steipete deleted the steipete/secrets-last-row-menu branch November 14, 2026 03:47
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 14, 2026
…ge (openclaw#198599)

The WebKit Secrets proof found the last row's Delete action clipped while
its menu-bounds check still passed. The clip came from the shared overlay
max-height resolving 100% against the cell beside the trigger, already
fixed on main by openclaw#196567. Measure item visibility against the menu
scrollport, cover a short bottom-edge row menu, and run the overlay style
tests in the WebKit lane so a regression fails in both engines.
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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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