Skip to content

chore(ui): validate overlay and focus contracts in WebKit - #168269

Merged
steipete merged 3 commits into
mainfrom
solid2/p1-08
Oct 10, 2026
Merged

steipete merged 3 commits into
mainfrom
solid2/p1-08

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

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 1be16bbcc4bc5191f5d9211353217fdec781e5a2 integrates 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 30c9940d237c1 adds the verified fixture to that list. The focused pnpm test test/scripts/ci-workflow-guards.test.ts -t 'keeps private Control UI servers and resource-sensitive files under one serial owner' --maxWorkers=1 equivalent 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
Exact test Observed failure Suspected cause
ui/src/components/modal-dialog.test.ts — openclaw-modal-dialog > occludes native tabs through nested dialogs, closing animations, and removal Native occlusion reports [[false]] instead of [[false], [true]]. The jsdom fixture may observe native dialog occlusion before WebKit commits opening.
ui/src/components/modal-dialog.test.ts — openclaw-modal-dialog > honors autofocus without overriding pointer input (reopened=false) The autofocus button retains focus instead of the video control. WebKit may apply native autofocus after the fixture's synthetic pointer input.
ui/src/components/modal-dialog.test.ts — openclaw-modal-dialog > honors autofocus without overriding pointer input (reopened=true) The autofocus button retains focus instead of the video control after reopening. WebKit may apply native autofocus after the fixture's synthetic pointer input.
ui/src/components/modal-dialog.test.ts — openclaw-modal-dialog > honors autofocus without overriding keyboard input (reopened=false) The autofocus button retains focus instead of the video control. WebKit may apply native autofocus after the fixture's synthetic keyboard input.
ui/src/components/modal-dialog.test.ts — openclaw-modal-dialog > honors autofocus without overriding keyboard input (reopened=true) The autofocus button retains focus instead of the video control after reopening. WebKit may apply native autofocus after the fixture's synthetic keyboard input.
ui/src/components/tooltip.test.ts — openclaw-tooltip > skins the body and removes the arrow through shared overlay tokens The queried style text is empty rather than containing the tooltip background token. Native adopted stylesheets do not create the style elements this jsdom assertion reads.
ui/src/pages/chat/chat-composer-overflow.browser.test.ts — composer overflow presentation > aligns the expanded 320 px active header and keeps controls above the objective Shift-Tab focuses Clear goal instead of Pause goal. WebKit's keyboard navigation through controls may differ from Chromium's Tab order.
ui/src/pages/chat/chat-composer-overflow.browser.test.ts — composer overflow presentation > aligns the expanded 390 px paused header and keeps controls above the objective Shift-Tab focuses Clear goal instead of Resume goal. WebKit's keyboard navigation through controls may differ from Chromium's Tab order.
ui/src/pages/chat/chat-composer-overflow.browser.test.ts — composer overflow presentation > aligns the expanded 560 px blocked header and keeps controls above the objective Shift-Tab focuses Clear goal instead of Resume goal. WebKit's keyboard navigation through controls may differ from Chromium's Tab order.
ui/src/pages/chat/components/chat-effort-picker.browser.test.ts — effort bar colour and flow > highlights the highest discrete effort in dark mode The highest effort and maximum effort have the same computed gradient. WebKit range-input appearance or computed-style resolution may ignore the variant.
ui/src/pages/chat/components/chat-effort-picker.browser.test.ts — effort bar colour and flow > highlights the highest discrete effort in light mode The highest effort and maximum effort have the same computed gradient. WebKit range-input appearance or computed-style resolution may ignore the variant.
ui/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 Changing the preview leaves its computed appearance equal to the committed level. WebKit range-input appearance or computed-style resolution may ignore the variant.

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.
@clawsweeper

clawsweeper Bot commented Oct 10, 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 docs Improvements or additions to documentation app: web-ui App: web-ui scripts Repository scripts size: M labels Oct 10, 2026
@clawsweeper clawsweeper Bot added 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. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

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

  • Before: CI validates the interaction contracts in Chromium only.
  • After: The first existing UI shard also runs the curated WebKit project.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent test infrastructure with no identified correctness defect; evidence is harness-based and timing-repair validation remains incomplete.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-owned test-infrastructure change has no production behavior requiring ordinary shipped-entry-point proof; browser-suite and CI evidence support the implementation without establishing complete exact-head validation.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Complete
User problem: WebKit overlay and focus regressions can escape the existing Chromium-only validation before renderer migration.
Reason: The additional browser coverage is bounded, reuses existing contracts, and changes neither product defaults nor the browser support floor.

Merge readiness

✅ Ready for maintainer review

This PR adds useful, narrowly selected WebKit coverage; no concrete introduced defect was found.

Priority: P3
Reviewed head: 30c9940d237c130c9c95562bac3ee6c2be487a71

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The PR explicitly leaves the documented standalone and original-shard repetition validation for its two timing repairs incomplete.
Agent review details

How this fits together

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

Technical review

Best 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

  • Browser project configuration keeps the original intent (4ec1c8a: Expose the existing browser configuration for scoped test routing while preserving renderer configuration.)
  • Submenu highlight assertion keeps the original intent (79c921d: Protect visible parent highlighting while keyboard or pointer navigation enters a submenu.)
  • Dropdown completion assertion keeps the original intent (9ec9a1f: Protect dismissal, focus, native occlusion, and interrupted dropdown lifecycle contracts.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Source +73, Tests +285, Docs +4, Config +11, Other +18. Total +391 across 11 files. Added test files: 3.

View PR surface stats
Area Files Added Removed Net
Source 1 86 13 +73
Tests 7 287 2 +285
Docs 1 4 0 +4
Config 1 11 0 +11
Generated 0 0 0 0
Other 1 18 0 +18
Total 11 406 15 +391

Review metrics

Metric Value Why it matters
Expected-failure scope 12 assertion-specific WebKit exceptions; 0 Chromium exceptions Known failures remain executable and fixes must remove their exceptions.

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This is internal browser-validation infrastructure 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.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Complete the documented repetition validation for the dropdown-completion and submenu-transition repairs.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (2 earlier review cycles)
  • reviewed 2026-10-10T06:08:26.602Z sha 4f59a8f :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T07:25:02.965Z sha 1be16bb :: needs maintainer review before merge. :: none

Reviewed 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.
@steipete

steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor Author

The video-gallery timeouts are inherited, not introduced by this PR. Scheduled main CI 38032195500, at f207a608131a169ac7c2aea3868614773bb05fc7, failed both touch=false and touch=true cases at chat-video-gallery.e2e.test.ts:114 with the same 30-second scrollIntoViewIfNeeded timeout waiting for Expand before.mp4 in the media overlay. PR CI 38033959522 reproduced that exact failure. The PR's source merge base is b7a1dc960249d50b5a9e6f590f900802f2c83502; the gallery test was last changed by da2bcd699bc11789ef35b43f61b2e27dc0c03861 (#154051, September 27), but the first failing commit has not been established.

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 main in shard 7 without this PR.

On final head 30c9940d237c130c9c95562bac3ee6c2be487a71, CI 38034706619 passed the video-gallery test and WebKit job. It reported different failures in three E2E jobs; those are being independently attributed before selecting the documented inherited-failure landing route. No test exceptions or retries were added, and no auto-merge was armed.

Final-head attribution is complete. CI run 38034706619 executed merge e1d2072426a2fbec1ed75e8010fa43cdc245b41f, whose parents are main 6996363759660d5aae6a24625ef805225d87fcb5 and PR head 30c9940d237c130c9c95562bac3ee6c2be487a71. All other jobs passed or were legitimately skipped; ClawSweeper completed review of that exact head with no findings. The WebKit project passed 18 files: 281 tests plus 12 strict expected failures (29.44s).

The remaining failed E2E jobs are inherited:

  • Guest publication and dashboard pins (PR job 114162845492): matching failures in scheduled main 38035030681, job 114163718254 and job 114163718240. The main-owned Details change hides old inline PR controls and its gutter intercepts the pin clicks.
  • Cached composer progress (PR job 114162845518): matching failure in main job 114163718264. The test awaits composer progress after the main-owned Details change moved it.
  • Dashboard cold load (PR job 114162845542): all eight frames retain the correct title and board position but contain welcome content. The unchanged fixture verifies the roster cache before reload but never waits for the separate transcript cache, whose writes are debounced and asynchronous. The sibling cached-progress test explicitly flushes that transcript store. This is a pre-existing fixture persistence race plausibly exposed by scheduling; the exact failed-run database state and first introducing commit are unknown. The latest main run passed this file, which does not prove a fix.

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.

@steipete
steipete merged commit 7c0d407 into main Oct 10, 2026
140 of 145 checks passed
@steipete
steipete deleted the solid2/p1-08 branch October 10, 2026 08:05
@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 Oct 11, 2026
…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
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 docs Improvements or additions to documentation P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M 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