Repository navigation
chore(ui): validate overlay and focus contracts in WebKit - #168269
Conversation
Run the curated WebKit project in the first existing UI shard when its owners change. Retain twelve verified assertion-specific expected failures with unexpected-pass and missing-case gates; Chromium coverage remains unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR runs existing overlay and composer-focus suites in WebKit with assertion-specific expected failures. Example: A PR changes ui/src/components/modal-dialog.ts.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR adds useful, narrowly selected WebKit coverage; no concrete introduced defect was found. Priority: P3 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe CI manifest selects browser coverage from changed paths, and the UI Vitest configuration runs existing component contracts and reports unexpected results. flowchart LR
A[Changed paths] --> B[CI manifest]
B --> C[First UI shard]
C --> D[WebKit project]
D --> E[Existing interaction suites]
E --> F[Assertion-specific exception checks]
F --> G[CI result]
Technical reviewBest possible solution: Retain the selective WebKit lane and remove each exception when its underlying assertion passes. Do we have a high-confidence way to reproduce the issue? No production bug is claimed; source inspection confirms that this PR extends existing test contracts to another browser. Is this the best way to solve the issue? Reusing the existing suites, worker budget, and CI row is a proportionate solution that preserves Chromium coverage. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 8832904b171a. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
PR surfaceSource +73, Tests +285, Docs +4, Config +11, Other +18. Total +391 across 11 files. Added test files: 3. View PR surface stats
Review metrics
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 HistoryReviewed October 10, 2026, 3:39 AM ET / 07:39 UTC (Revision 3). |
Integrate main for the private-server inventory gate, register the promotion fixture with its serial owner, and require the selected UI matrix in the type-checked test. Wait on actual dropdown and color-transition completion without increasing deadlines or adding expected failures.
|
The video-gallery timeouts are inherited, not introduced by this PR. Scheduled There is a scheduling connection: registering the promotion fixture can select the complete E2E inventory and change weighted shard placement. That may expose or reshuffle an existing failure; it does not change the gallery's isolated Chromium project or its two-worker limit. The new WebKit step runs in the separate UI job, and its setup never runs this E2E test. The same failure already occurred on On final head Final-head attribution is complete. CI run 38034706619 executed merge The remaining failed E2E jobs are inherited:
The 43 inspected test, fixture, build, and production inputs are byte-identical between the tested main parent and merge. E2E remains isolated Chromium with two bundled workers. No CI was rerun for green, and no assertions, timeouts, or expected-failure lists were changed. Landing uses the documented inherited-failure exception; these failed checks are retained as failures, not described as passing. |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
…68269) * test(ui): cover overlay and focus contracts in WebKit Run the curated WebKit project in the first existing UI shard when its owners change. Retain twelve verified assertion-specific expected failures with unexpected-pass and missing-case gates; Chromium coverage remains unchanged. * test(ci): track promotion fixture in private-server guard
What Problem This Solves
Control UI overlay and focus contracts run only in Chromium, leaving WebKit regressions unobserved before the renderer migration.
User Impact
No production behavior or browser support floor changes. This adds WebKit validation for existing overlays, tooltips, menus, and composer focus.
Why This Change Was Made
The opt-in WebKit project runs 18 existing suites. CI selects it only for the interaction owners, their styles, or the subset/exception harness, sequentially in the first existing UI shard. Runner counts, worker limits, and timeouts stay unchanged.
Two suites remain Chromium-only because they use CDP media emulation or the CDP accessibility tree. Their replacements are a follow-up.
Twelve failures observed in the initial WebKit proof are explicitly admitted per test. Every entry must execute and fail with its recorded assertion; an unexpected pass, unrelated error, skipped case, or missing case/file fails the run. Chromium has no exceptions. These are follow-up triage items, not claims that the underlying behaviors are fixed.
Evidence
Testbox run 38027350342, exact source commit
4f59a8f97dfd0aefddec62e2641234458bc89874:OPENCLAW_UI_WEBKIT=1 pnpm --dir ui test --project=webkit --maxWorkers=3: all 18 files passed; 281 passed plus 12 expected failures; 18.47s.pnpm test test/scripts/ci-webkit-selection.test.ts --maxWorkers=1: 10 passed; 2.77s test duration, 3.92s complete command wall time on Testbox. PR CI seconds pending at publication.pnpm check:workflows: passed (including actionlint, zizmor, and checkout/input guards).node scripts/run-tsgo.mjs -p <temporary harness project>: passed for both new harness files, extending the repository TypeScript settings.Independent Codex autoreview is clean at P0–P2. Synthetic native Vitest probes verify all twelve recorded assertions, unexpected passes, unrelated equality failures, skipped tests, and missing files. Focused lint and git diff checks pass.
Release-note context: internal Control UI browser coverage only.
Landing validation and current blocker
The first landing CI run exposed a nullable matrix parse, a newly landed private-server fixture missing from the serial inventory, and two WebKit assertions that ran before dropdown/transition completion. Commit
1be16bbcc4bc5191f5d9211353217fdec781e5a2integrates main for that named inventory gate and repairs those checks without increasing timeouts or adding expected failures. In CI run 38033959522, the WebKit/UI shard and core test-types stripe passed.That run also caught the same promotion fixture missing from the guard's independent expected list. Commit
30c9940d237c1adds the verified fixture to that list. The focusedpnpm test test/scripts/ci-workflow-guards.test.ts -t 'keeps private Control UI servers and resource-sensitive files under one serial owner' --maxWorkers=1equivalent via the repository runner passed locally: one case, 13.39s test time, 32.46s complete command wall time. The original CI guard file took 51.37s before this final correction. Codex autoreview is clean for the full repair and the subsequent inventory correction.The video-gallery failure was independently reproduced on scheduled main run 38032195500 and passes on the final head. Final-head CI 38034706619 passed the WebKit project (18 files; 281 passed plus 12 strict expected failures in 29.44s), all type and inventory checks, and every other job except three independently attributed inherited E2E failures. The classification comment records main-run evidence, the actual merge parent, the scheduling connection, and the dashboard fixture's persistence-race uncertainty. ClawSweeper reviewed the final head with no findings. Landing uses the documented inherited-failure exception without rerunning CI for green.
The additional standalone/original-shard repetition proof for the two timing repairs remains incomplete after Testbox/AWS/Hetzner infrastructure failures; all task-owned leases were stopped. Exact-head WebKit CI passed.
Verified WebKit-only expected failures and suspected causes
ui/src/components/modal-dialog.test.ts— openclaw-modal-dialog > occludes native tabs through nested dialogs, closing animations, and removalui/src/components/modal-dialog.test.ts— openclaw-modal-dialog > honors autofocus without overriding pointer input (reopened=false)ui/src/components/modal-dialog.test.ts— openclaw-modal-dialog > honors autofocus without overriding pointer input (reopened=true)ui/src/components/modal-dialog.test.ts— openclaw-modal-dialog > honors autofocus without overriding keyboard input (reopened=false)ui/src/components/modal-dialog.test.ts— openclaw-modal-dialog > honors autofocus without overriding keyboard input (reopened=true)ui/src/components/tooltip.test.ts— openclaw-tooltip > skins the body and removes the arrow through shared overlay tokensui/src/pages/chat/chat-composer-overflow.browser.test.ts— composer overflow presentation > aligns the expanded 320 px active header and keeps controls above the objectiveui/src/pages/chat/chat-composer-overflow.browser.test.ts— composer overflow presentation > aligns the expanded 390 px paused header and keeps controls above the objectiveui/src/pages/chat/chat-composer-overflow.browser.test.ts— composer overflow presentation > aligns the expanded 560 px blocked header and keeps controls above the objectiveui/src/pages/chat/components/chat-effort-picker.browser.test.ts— effort bar colour and flow > highlights the highest discrete effort in dark modeui/src/pages/chat/components/chat-effort-picker.browser.test.ts— effort bar colour and flow > highlights the highest discrete effort in light modeui/src/pages/chat/components/chat-effort-picker.browser.test.ts— effort bar colour and flow > previews colour without committing and restores the committed level on cancel or blur