Skip to content

fix(ui): measure mobile picker geometry after animation - #140997

Merged
steipete merged 1 commit into
mainfrom
steipete/fix-ui-e2e-composer-picker-0907
Sep 7, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/fix-ui-e2e-composer-picker-0907

Conversation

@steipete

@steipete steipete commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves an intermittent Control UI e2e failure in the mobile model and effort picker geometry test. It can block unrelated PRs even though the fully opened panels retain the correct width and placement above an expanded composer.

Related: #140633, #140699, #140974.

Why This Change Was Made

The test waited a fixed 100 ms after opening each picker and then measured its bounding box. The popup animates from a scale of 0.9, so its correct 369 px layout width can temporarily measure 332.10 px. This animation was introduced in #133650 and predates #140633; the relevant test, picker renderers, overlays, and composer CSS have no changes between the parent of #140633 and the tested main revision.

The scenario now reuses waitForControlUiProofSurface on the actual animated Web Awesome shadow popup, with the menu as required visible content. This joins the existing presentation owner before measuring. It removes the fixed delay and preserves every numeric geometry assertion, including the 368 px minimum. No production, CSS, dependency, timeout, retry, skip, mock, or baseline changes.

User Impact

No product behavior change. The browser test continues to enforce full-width mobile panels, viewport containment, placement above the composer, and keyboard focus behavior, after the opening animation has completed.

Evidence

Five serial headless runs of the exact case, with CI=1:

Revision Result
Main 86a3c7267be 2/5 passed; widths 342.93, 342.06, and 339.56 failed the unchanged minimum
Parent of #140633, 6cf361dc08f 2/5 passed; widths 345.98, 365.51, and 346.99 failed the same assertion
Repaired case 5/5 passed

The complete chat-composer-redesign.e2e.test.ts file passes 9/9. Production delta: 0; test delta: +7/-1, net +6.

#140699 is an open draft whose actual fork parent is b0667d59bcb; it only moves compact context-option styling, with no change to these popup widths or animations. That branch is not a causal candidate. No CSS value was adjusted to accommodate a test result.

CI=1 OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts --testNamePattern 'keeps mobile picker panels above an attachment-expanded composer'
CI=1 OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/chat-composer-redesign.e2e.test.ts

Each run used a task-owned filesystem module cache, separate from the cron repair worktree. Changed checks pass, and independent Codex review is clean through P2. The tested e2e, readiness helper and composer CSS are unchanged across the rebase onto main 15e5cf111d5. Production delta remains zero.

Completed landing validation

  • node scripts/check-changed.mjs: passed.
  • pnpm build: passed in 8m 57.4s on head 35fac1ff650af376953065fb5ea4818130813825.
  • pnpm ui:check-performance: passed; startup JavaScript 347,949 B gzip / 8 requests, below 350,953 B / 18 requests. Startup CSS is 43,989 B gzip. The baseline is unchanged.
  • Required openclaw/ci-gate: SUCCESS for the exact head.
  • Native review artifacts: validated.

ClawSweeper found no actionable patch defect and flagged missing CI/build/performance evidence. The completed checks above resolve that validation gap.

CI history

The original attempt failed an unrelated image-handoff case (278 passed / 1 failed); one local replay passed. The first retry request encountered GitHub startup_failure before a second attempt was created. A subsequent authorized infrastructure retry started attempt 2, which executed the UI e2e step and passed. This was one executed test rerun on the unchanged head; no test assertion was weakened.

Browser/Gateway data is synthetic. No external-provider live claim or separately allocated Testbox lease.

Wait for the actual shadow popup through the existing proof-surface owner before sampling viewport bounds. Preserve every geometry assertion and all production CSS.

Proof: exact mobile case passes 5/5; full composer e2e file 9/9; changed checks pass; independent review clean through P2. Main and pre-140633 controls each passed only 2/5.
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 7, 2026
@steipete
steipete marked this pull request as ready for review September 7, 2026 07:57
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Sep 7, 2026
@clawsweeper

clawsweeper Bot commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 4:34 AM ET / 08:34 UTC.

ClawSweeper review

What this changes

The mobile composer browser test waits for model and effort picker animations to finish before checking their dimensions and placement.

Merge readiness

⛔ Blocked before merge - 1 item remains

This remains a useful, focused test repair absent from current main. No actionable patch defects were found; the protected maintainer PR remains subject to normal landing checks.

Priority: P2
Reviewed head: 35fac1ff650af376953065fb5ea4818130813825

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair reuses the correct readiness owner and preserves meaningful assertions; incomplete landing checks do not establish a patch defect.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this maintainer-authored test repair; reported Chromium runs exercise the changed measurement boundary, with no production behavior change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this maintainer-authored test repair; reported Chromium runs exercise the changed measurement boundary, with no production behavior change.
Evidence reviewed 8 items Verified introduced change: The pinned base-to-head diff replaces the fixed delay with the existing presentation helper for both pickers. All numeric geometry and keyboard assertions remain unchanged.
Current main still needs the repair: Fetched main retains waitForTimeout(100) before the mobile geometry measurements. No supplied merged PR implements this repair; the supplied latest release is v2026.9.2, and no shipped fixing release was established.
Animation owner and readiness contract: Composer CSS animates the popup shadow part from scale 0.9. The reused helper waits for content and fonts, checks visibility and opacity, and waits for finite animations on the selected element and its ancestor/shadow-host chain. The existing picker contract test independently checks this shadow surface and reduced-motion behavior.
Findings None None.
Security None None.

How this fits together

The Control UI browser suite opens chat pickers using synthetic Gateway data and checks their layout. Its shared presentation helper waits for visible content and completed animations before measurements are taken.

flowchart LR
  A[Synthetic Gateway data] --> B[Mobile chat composer]
  B --> C[Open model or effort picker]
  C --> D[Wait for visible content and animation completion]
  D --> E[Measure viewport bounds]
  E --> F[Assert geometry and keyboard behavior]
Loading

Before merge

  • Resolve merge risk (P1) - Complete landing validation is not established: the captured required CI run remains unsuccessful, the local build was stopped, and performance validation was not run.
Agent review details

Security

None.

PR surface

Tests +6. Total +6 across 1 file.

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

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Use the existing presentation-readiness helper at the measurement boundary while retaining production animation and strict layout assertions.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Use the existing presentation-readiness helper at the measurement boundary while retaining production animation and strict layout assertions.

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

Yes: the focused mobile-picker case, reported intermittent baseline failures, and current animation source establish a concrete reproduction path. This review inspected source without executing it.

Is this the best way to solve the issue?

Yes: reusing the existing animation-readiness owner fixes when measurements occur without relaxing assertions or changing production layout.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This repairs a bounded browser-test timing defect that can obstruct unrelated PR validation without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The external-contributor proof gate does not apply to this maintainer-authored test repair; reported Chromium runs exercise the changed measurement boundary, with no production behavior change.

Evidence

What I checked:

Likely related people:

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

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-07T08:03:03.273Z sha 35fac1f :: needs maintainer review before merge. :: none
  • reviewed 2026-09-07T08:16:39.960Z sha 35fac1f :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 6a78a20 into main Sep 7, 2026
204 of 206 checks passed
@steipete
steipete deleted the steipete/fix-ui-e2e-composer-picker-0907 branch September 7, 2026 09:04
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Wait for the actual shadow popup through the existing proof-surface owner before sampling viewport bounds. Preserve every geometry assertion and all production CSS.

Proof: exact mobile case passes 5/5; full composer e2e file 9/9; changed checks pass; independent review clean through P2. Main and pre-140633 controls each passed only 2/5.
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 maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. 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