Skip to content

test(ui): repair readiness and empty-group browser checks - #179052

Merged
steipete merged 2 commits into
mainfrom
solid2/hf-ui-e2e-red
Oct 21, 2026
Merged

steipete merged 2 commits into
mainfrom
solid2/hf-ui-e2e-red

Conversation

@steipete

@steipete steipete commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Scheduled Control UI browser checks fail on mobile loading states, interactions issued before mobile layout or an HTML preview has settled, and empty-group fixtures that still assume the Active filter shows empty groups. This addresses the failures in scheduled main run 39544978413.

User Impact

This is a test-only repair. The existing mobile sharing, keyboard navigation, HTML sandbox, persistence, and download assertions remain intact, with their original timeout budgets.

Why This Change Was Made

The mobile session-menu tests still searched for visible Loading text after #178939 introduced skeletons with an accessible status name. Query that existing name. The dock test sent Home while the hidden mobile sheet's 280 ms grid transition was still resizing the transcript; wait for the existing geometry-settlement helper before each keyboard sequence. The HTML publication test now waits for the preview loader to retire after the inner document's load acknowledgment before clicking its scripted button, matching the existing HTML preview tests.

The group-default tests now select Status → All through the existing sidebar controls before opening their empty fixture group. This follows the sibling tests updated by #178980, which intentionally hides empty groups under the default Active filter. All permission, save, retry, and session-start assertions remain intact.

No new helper, retry, production state, dependency, or startup import is introduced. Simplification pass: reuse existing readiness and filter controls. The four files total 1,888 → 1,900 LOC (+14/−2); production LOC and Solid lifecycle-pattern counts are unchanged.

During preparation, #178964 independently landed the identical mobile loading-selector correction (e5a09cf9e5a). The remaining effective change against current main is +12/−0 in the dock, HTML, and group-default tests (1,405 → 1,417 LOC).

Evidence

Proof Result
Mobile session-menu baseline: “keeps light/dark mobile session actions and sharing in the shared sheet” Both exact scheduled failures reproduced locally
Complete mobile-chat-session-menu.e2e.test.ts after repair 5/5 passed, 35.13 s invocation, 19.38 s tests
Complete chat-scroll-dock.e2e.test.ts after repair 8/8 passed, 94.53 s invocation, 67.29 s tests
chat-html-publication.real-gateway.e2e.test.ts after repair 1/1 passed, 126.28 s invocation including compilation; real Gateway with synthetic inference
Existing composer scenario from run 39539608388 10/10 repetitions passed, 102.85 s invocation; existing hover-clear repair e9d35ef7af6 retained unchanged
Group-default baseline at fbc99b8c03f: exact seven CI failures Reproduced; complete repaired file 11/11 passed
Unchanged solo-widget scenario Complete merge-base file passed; 10/10 diagnostic repetitions passed with aligned owner state and an open menu; no speculative change retained
pnpm tsgo:ui, targeted lint, formatting, git diff --check Passed, including the group-default follow-up
Independent review with complete affected tests and readiness owners No actionable P0–P2 findings
Final full CI 39553371999, head 642bfeebdb67 Passed: 3/3 UI unit shards, 9/9 UI E2E shards, 2/2 real-Gateway shards, and CI gate; no failed jobs

The dock and HTML failures did not reproduce locally on the baseline. Ten diagnostic dock repetitions did capture Home arriving while transcript height was changing (340 → 661 px), with focus correctly on the transcript. Their scheduled failures are retained as the failure evidence; local passing replays alone are not claimed as proof of causality.

The composer failure preceded e9d35ef7af6, which clears hover and verifies tooltip dismissal before Escape. Its complete existing scenario passed ten repetitions without further changes. Checked open author PRs, including #179021 and #179029, for overlapping fixes.

The runtime build needed for real-Gateway proof measured 329,452 B startup JS gzip and one startup CSS request. It reports an existing violation of the tighter 325,166 B build enforcement limit; this patch has no runtime changes. No appearance changes require screenshots. ci:full is requested for every UI shard. No remote testing lease was used.

Full-CI follow-up

Initial full CI 39549212497 passed all originally failing shards and both real-Gateway shards. It exposed the seven group-default setup failures repaired here, plus the unchanged solo-widget case below. The exact same eight names fail in the completed UI jobs of scheduled main run 39550194897 at 54b5607e558451bc7fd44d9cd276f7e2991d4676; this attribution is based on names, not shard labels.

The solo-widget failure is a missing second board.update after Research → Remove. It did not reproduce in the exact merge-base run or ten instrumented repetitions. All ten clicks observed an open menu, matching widget/tab/revision identity, mutation permission, and an idle widget cell. No extra wait or production change is justified by that evidence. Temporary diagnostics were removed. Its cause remains unresolved; matching main evidence establishes that it predates this PR.

Exact failing names from the initial PR run and scheduled main

session-management.group-defaults.e2e.test.ts:

  • saves current-checkout group defaults for an agent workspace without a commit
  • starts a session from a group with its saved folder and worktree defaults
  • blocks saving a worktree default until repository inspection succeeds (/home/peter/client-work)
  • blocks saving a worktree default until repository inspection succeeds ()
  • shows the admin requirement when probing an outside-workspace folder is denied
  • keeps rejected group defaults editable and allows retry
  • offers retry when authoritative group defaults are unavailable

solo-widget-chrome.e2e.test.ts:

  • retains page controls in split view and restores multi-widget controls without reloading

Merged through the native workflow as 02ca7889a6f93ba0595d16fb1cfd901632928b12, verified on origin/main. No inherited-failure/admin exception was needed for the final head. The actual landed diff is three test files, 1,405 → 1,417 LOC (+12/−0). Native closeout completed; no remote testing leases were used.

Use the skeleton accessible name in mobile session-menu checks, wait for the transcript viewport after sheet dismissal, and await the HTML preview load acknowledgment before its scripted interaction. Preserve existing keyboard actions, assertions, and timeout budgets.
@steipete steipete added the ci:full Keep ordinary native-locale CI selection on the next PR run. label Oct 21, 2026
@clawsweeper

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T05:25:03.607344Z 5616c49 PR opened
ℹ️ 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 Oct 21, 2026
@clawsweeper

clawsweeper Bot commented Oct 21, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR updates browser tests to recognize accessible loading skeletons and wait for mobile layout and HTML preview readiness.

Example: The HTML publication browser check opens implementation-plan.html and clicks Count.

  • Before: The scheduled check clicked before script readiness and observed 0 instead of 1.
  • After: The check waits for the preview loader to disappear before clicking and retains the expected count of 1.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is minimal and preserves coverage; passing harness runs support it, while dock and HTML causality remains inferred from failure traces and readiness contracts.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored test-only repair is outside the ordinary contributor proof gate; browser-suite results support the waits, while inspected screenshots show earlier loading-state changes rather than this synchronization repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Scheduled browser checks report failures when interactions precede layout or document readiness.
Reason: The maintainer-authored direction preserves behavioral coverage using existing readiness contracts without production machinery.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: the remaining synchronization changes are focused and preserve coverage, with no actionable patch defects found; the required CI gate remains red.

Priority: P3
Reviewed head: 5616c49f0e5160a36e14c9bd32f6354033e74086

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Dock and HTML failures were recorded in scheduled CI, but local baseline-to-fix causality was not established and is explicitly not claimed.
Agent review details

How this fits together

Control UI browser tests drive mobile session controls and HTML attachments through mocked Gateway responses or an isolated real Gateway, then assert rendered behavior.

flowchart LR
  A[Browser checks] --> B[Control UI]
  B --> C[Mobile sheet layout]
  B --> D[HTML preview host]
  C --> E[Geometry settlement]
  D --> F[Document load acknowledgment]
  E --> G[Existing assertions]
  F --> G
Loading

Technical review

Best possible solution:

Retain the focused readiness waits and existing assertions, with the remaining required-check failures handled through their owning suites.

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

Scheduled CI records the exact dock and HTML failures, and source establishes the missing readiness boundaries; this review ran no target code.

Is this the best way to solve the issue?

The smallest supported repair reuses existing geometry settlement and preview acknowledgment owners while retaining keyboard, sandbox, persistence, and download assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vyctor H. Brzezowski: Raw commit 1894bb9 adds ui/src/e2e/chat-scroll-dock.e2e.test.ts:306 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 1894bb9b0a53; files: ui/src/e2e/chat-scroll-dock.e2e.test.ts)
  • Josh Avant: Raw commit 0bed68a adds ui/src/e2e/chat-html-publication.real-gateway.e2e.test.ts:255 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 0bed68a60091; files: ui/src/e2e/chat-html-publication.real-gateway.e2e.test.ts)
  • Peter Steinberger: Raw commit d74b279 adds ui/src/e2e/chat-scroll-dock.e2e.test.ts:313 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d74b279c7183; files: ui/src/e2e/chat-scroll-dock.e2e.test.ts)

PR surface

Tests +7. Total +7 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 3 9 2 +7
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 9 2 +7

Labels

Label changes:

  • add P3: This is a focused browser-test reliability repair with no shipped runtime or configuration changes.
  • 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 a focused browser-test reliability repair with no shipped runtime or configuration changes.
  • 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 October 21, 2026, 1:50 AM ET / 05:50 UTC.

@steipete steipete changed the title fix(ui): stabilize mobile and HTML publication browser checks test(ui): repair readiness and empty-group browser checks Oct 21, 2026
@steipete
steipete merged commit 02ca788 into main Oct 21, 2026
86 of 88 checks passed
@steipete
steipete deleted the solid2/hf-ui-e2e-red branch October 21, 2026 06:21
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Oct 21, 2026
…ticket (#179058)

A warm-restored dashboard attaches its sandbox iframe before hello (#178658) and shows the frame as soon as the app paints (#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request.

Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule.

Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by #179052); exact-head CI green.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…79052)

* test(ui): wait for settled mobile and HTML preview states

Use the skeleton accessible name in mobile session-menu checks, wait for the transcript viewport after sheet dismissal, and await the HTML preview load acknowledgment before its scripted interaction. Preserve existing keyboard actions, assertions, and timeout budgets.

* test(ui): show empty groups before editing defaults
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 22, 2026
…ticket (openclaw#179058)

A warm-restored dashboard attaches its sandbox iframe before hello (openclaw#178658) and shows the frame as soon as the app paints (openclaw#178740), but the board widget's sandbox host stayed inactive until the gateway was available, so the app HTML fetch and document delivery waited for hello. A restored, unexpired view ticket already authorizes that HTTP read: while the first connection is still connecting (no hello yet), activate document loading when the restored ticket has TTL remaining. Bridge actions stay gated on the connected socket; after hello, gateway availability governs as before; the server still validates the ticket on every request.

Evidence (AWS c7a.4xlarge, 11 pairs per theme, filmstrip-measured first visible chart pixels): light 1,000.6 -> 917.4 ms (-94.8 paired, 9/11), dark 1,014.1 -> 909.2 ms (-95.0 paired, 10/11); 0 flashes; hello, FCP, LoAF, chat catch-up and chat route within the no-regression rule.

Runtime +13 LOC. Focused/native tests, HTTP/account-scope checks, full UI 846 files (inherited failures repaired on main by openclaw#179052); exact-head CI green.
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 ci:full Keep ordinary native-locale CI selection on the next PR run. 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