Skip to content

fix(ui): run WebKit overlay contracts without expected failures - #168385

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

steipete merged 7 commits into
mainfrom
solid2/p1-08b

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The WebKit overlay/composer gate carried twelve expected failures, obscuring whether its contracts were useful for the Solid migration.

User Impact

No product or visual behavior changes. WebKit now runs all 293 selected assertions without expected-failure exceptions; the existing assertions remain in force.

Why This Change Was Made

All twelve failures were fixture artifacts:

Cases Cause and repair
Modal native occlusion (1) A module mock did not reach components already imported by sibling browser suites. Seed the real native bridge boundary instead.
Modal opening focus (4) Synthetic input ran inside showModal before WebKit made slotted content usable. Inject input at the opening commit, then verify it survives later animation work.
Tooltip skin (1) Native adopted stylesheets have no style elements; WebKit also serializes the animation shorthand differently. Inspect adopted rules and assert the animation-name longhand.
Goal Shift-Tab (3) Pointer activation and keyboard traversal were combined in one sequence. Exercise native keyboard order before the pointer pass; use Option-Tab on macOS WebKit, where default Safari settings exclude buttons from plain Tab. Preserve all focus, action, and geometry assertions.
Effort appearance (3) The fixture read hidden popup styles before the queued details toggle activated it. Await that existing transition before inspecting appearance.

The expected-failure registry, setup, reporter, and obsolete CI selector are removed. The mock baseline shrinks by one exact entry. A separately reproduced tooltip fake-clock race now waits for the commit that arms its hover timer before advancing time.

Release-note context: internal Control UI test reliability only; no dependency or browser-floor change.

Evidence

Final head: 08dce52. The import conflict with current main was resolved by retaining its Solid plugin and TSX discovery while removing the obsolete expected-failure import.

Testbox through node scripts/crabbox-wrapper.mjs, Linux/Node 24.19.0, Playwright 1.63.0:

  • Final lease tbx_01m4jp2feamv9wg018g0bfgg5k, run 38045397729: full WebKit 293/293, Chromium 23/23, UI typecheck, targeted UI/config lint and formatting passed. Earlier lease tbx_01m4jkw6a0w9ptrq8md987gr96, run 38043163769, supplied the individual contract timings, script/test lint and stylelint. The first lease reached its workflow lifetime; all leases are stopped at handoff.
  • OPENCLAW_UI_WEBKIT=1 pnpm --dir ui test --project=webkit --maxWorkers=3 --reporter=dot: 16.90 s Vitest / 17.97 s shell wall.
  • Chromium composer overflow + effort suites: 23/23, 4.99 s Vitest / 6.06 s shell wall. Current-head UI typecheck: 42.51 s.
  • Earlier lease tbx_01m4jg2thvfna2p38rmqj7n0y0, run 38039261335: jsdom modal + tooltip 74/74; CI selection 9/9; core-test, UI, and root-test typechecks, ratchets, formatting, and i18n passed.
  • Codex autoreview: no actionable P0–P2 findings.

Individual cost measurements use OPENCLAW_UI_WEBKIT=1 pnpm --dir ui test --project=webkit --maxWorkers=1 --reporter=dot <file> at a573039 (before the compiler-wiring merge; test sources are unchanged):

File Tests Vitest seconds Testbox shell wall seconds
src/components/modal-dialog.test.ts 25 1.93 2.51
src/components/tooltip.test.ts 49 1.32 1.92
src/pages/chat/chat-composer-overflow.browser.test.ts 19 4.20 4.83
src/pages/chat/components/chat-effort-picker.browser.test.ts 4 0.53 1.11

Known broader-proof gaps:

  • The full Chromium run passed 1,446/1,447. The unchanged markdown-file-tooltip case timed out awaiting “Copied!”. Its standalone reproduction passed 13/13; this is recorded as an unresolved intermittent failure, not a claimed fix.
  • On the earlier base, full check:changed stopped at pre-existing unused exports: isPollVoteEchoText, PUBLIC_SESSION_ENTRY_SCRIPT, and isClaudeLikeLiveAgent. Their files are unchanged. All preceding checks passed; the remaining touched lint/style checks were run directly and passed.
  • Playwright WebKit proof is not exact-floor macOS WKWebView qualification. No screenshot is required because production markup/styles are unchanged.

Classify the twelve expected failures as fixture issues: exercise opening focus after content is usable, seed the actual native bridge, read adopted stylesheets and animation longhands, wait for the effort popup, and establish native keyboard traversal independently of Safari pointer focus. Remove the expected-failure registry and its CI wiring. No product or visual behavior changes.
@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: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR repairs browser-test fixtures so the selected WebKit contracts run without expected-failure exceptions.

Example: WebKit runs the 293 selected overlay and composer assertions.

  • Before: Twelve assertions use explicit expected-failure exceptions.
  • After: Every selected assertion must pass normally.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful, coherent fixture maintenance with no identified introduced defect; validation confidence rests on source inspection and reported browser-harness results.
Proof confidence 🦐 gold shrimp (3/6) This changes test fixtures and CI test configuration without changing shipped UI behavior; supplied browser-suite results support it, but raw Testbox logs were inaccessible.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Maintainers cannot use a WebKit lane with twelve admitted failures as a fully passing overlay contract gate.
Reason: The change strengthens existing coverage without adding product surface, changing defaults, or increasing the browser support floor.

Merge readiness

⛔ Needs changes before merge - 1 item remains

This PR provides useful WebKit fixture repairs and removes obsolete exceptions without an identified correctness defect; the earlier conflict is resolved.

Priority: P3
Reviewed head: 08dce52ae4948af41691dd52421dbda00c17f9bd

Before merge

  • Complete next step - Inspect the check-test-types-core-4 failure diagnostics and establish whether the failure comes from this diff or an independently evidenced outside cause.

Findings

None.

Agent review details

How this fits together

The CI manifest selects the WebKit lane from changed paths, and the UI Vitest configuration runs existing component contracts and reports assertion results.

flowchart LR
  A[Changed paths] --> B[CI manifest]
  B --> C[First UI shard]
  C --> D[WebKit project]
  D --> E[Overlay and composer fixtures]
  E --> F[Normal assertion results]
Loading

Technical review

Best possible solution:

Retain the focused fixture repairs and remove the obsolete exception machinery once the required CI gate is satisfied.

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

This PR claims fixture defects rather than a production bug; source supports the bridge, stylesheet, and lifecycle explanations, and no target code was executed during this read-only review.

Is this the best way to solve the issue?

Repairing the existing fixtures and deleting their exception path is proportionate and preserves the original interaction and appearance expectations.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • WebKit exception registry, reporter, setup, and selection keeps the original intent (7c0d407: Add bounded WebKit coverage while explicitly recording unresolved assertion failures for follow-up triage.)
  • Native modal bridge fixture keeps the original intent (fea4668: Validate native browser occlusion while modal overlays are active.)
  • Modal opening focus keeps the original intent (da2bcd6: Correct browser-selected media focus while preserving user pointer and keyboard choices.)
  • Mobile goal keyboard and pointer contracts keeps the original intent (b375744: Keep mobile goal controls accessible above expanded objective text.)
  • Effort appearance keeps the original intent (5681fc8: Distinguish the highest effort settings and preserve preview and cancellation behavior.)
  • Tooltip preview timer synchronization keeps the original intent (083b498: Keep tooltip and rich-preview ownership coordinated when links move between providers.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

  • Pinned introduced change: The introduced diff repairs fixtures, deletes the expected-failure registry and setup, removes their reporter and selector, and preserves the existing WebKit suite selection. (ui/vitest.config.ts:117, 08dce52ae494)
  • Previous blocker resolved: The reviewed head retains controlUiSolidPlugin and TSX discovery. GitHub reports mergeable=true and mergeable_state=blocked, rather than a conflict. (ui/vitest.config.ts:38, 08dce52ae494)
  • Real native-bridge boundary: The fixture replaces a late module mock with the webkit.messageHandlers.openclawBrowser.postMessage boundary that hasNativeBrowserBridge actually reads; native occlusion assertions remain. (ui/src/components/modal-dialog.test.ts:99, 08dce52ae494)
  • Lifecycle synchronization: previewForAnchor schedules hover activation after updateComplete, matching the added fixture wait; the effort picker activates its overlay from the details toggle handler, matching the new toggle completion wait. (ui/src/components/tooltip.ts:331, 08dce52ae494)
  • Original exception intent: The merged foundation at chore(ui): validate overlay and focus contracts in WebKit #168269 explicitly described the twelve exceptions as follow-up triage items, so removing them after fixture repair follows its stated intent. (ui/test/webkit-expected-failures.ts, 7c0d4070a293)
  • Validation evidence and inspection limit: The body reports final-head WebKit 293/293 and targeted Chromium 23/23. The linked Testbox workflow is cancelled, consistent with the reported lease shutdown, and its raw logs redirect to a blocked storage host; those test results were not independently verified. (08dce52ae494)

Likely related people:

  • Peter Steinberger: Raw commit 7c0d407 adds ui/vitest.config.ts:117 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 7c0d4070a293; files: ui/vitest.config.ts)
  • Vincent Koc: Raw commit 5681fc8 adds ui/src/pages/chat/components/chat-effort-picker.browser.test.ts:72 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 5681fc8927cc; files: ui/src/pages/chat/components/chat-effort-picker.browser.test.ts)
  • RoboClaw: Raw commit da2bcd6 adds ui/src/components/modal-dialog.test.ts:196 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: da2bcd699bc1; files: ui/src/components/modal-dialog.test.ts)

PR surface

Source -39, Tests -153, Docs 0, Other -2. Total -194 across 11 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 3 42 -39
Tests 7 83 236 -153
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 0 2 -2
Total 11 87 281 -194

Labels

Label changes:

No label changes.

Label justifications:

  • P3: This improves internal browser-test reliability without changing production UI behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • 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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (1 earlier review cycle)
  • reviewed 2026-10-10T10:27:09.136Z sha a573039 :: needs changes before merge. :: none

Reviewed October 10, 2026, 6:50 AM ET / 10:50 UTC (Revision 2).

@steipete

Copy link
Copy Markdown
Contributor Author

Investigated the remaining CI failure for 08dce52ae4948af41691dd52421dbda00c17f9bd: check-test-types-core-4 reports TS2345 at src/gateway/control-ui-public-session-refresh.test.ts:51. The unchecked regex capture introduced on main by 06c6e83f4351fe9b94c3c53ae658a04097e437de has type string | undefined and is passed to runInNewContext.

The actual CI checkout was merge 18049009fede330a0855c6a4643979b46ed154e0, with baseline a5aef583ab446d0573c372f43541eacd48fb2285 and this PR head as its ordered parents. The test, renderer, core type configuration, package inputs, and workflow are byte-identical between that baseline and the tested merge. This UI-only PR does not cause the failure. All three UI shards (including WebKit 293/293), UI E2E, performance, lint, and security passed.

This completes the requested failure attribution. Landing uses the approved, documented inherited-failure path; no CI rerun was requested.

@steipete
steipete merged commit 325d7f3 into main Oct 10, 2026
106 of 109 checks passed
@steipete
steipete deleted the solid2/p1-08b branch October 10, 2026 11:17
@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
…claw#168385)

* test(ui): resolve WebKit overlay and composer failures

Classify the twelve expected failures as fixture issues: exercise opening focus after content is usable, seed the actual native bridge, read adopted stylesheets and animation longhands, wait for the effort popup, and establish native keyboard traversal independently of Safari pointer focus. Remove the expected-failure registry and its CI wiring. No product or visual behavior changes.

* test(ui): establish browser frame focus before traversal

* test(ui): route native traversal through the browser keyboard helper

* test(ui): separate native keyboard and pointer action contracts

* test(ui): use explicit CSS rule list copies in style assertions

* test(ui): arm tooltip hover before advancing the fake clock
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: ⏳ 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.

1 participant