Skip to content

fix(ui): wait for cron model picker dismissal in e2e - #140974

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

steipete merged 1 commit into
mainfrom
steipete/fix-ui-e2e-cron-model-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 that blocks unrelated PRs in checks-ui-e2e: the automation catalog-refresh case times out waiting for the refreshed model option after reopening its picker.

Related: #139876, #140860. Observed on #140677, #140654, #140742, #140887, and #140645.

Why This Change Was Made

The catalog refresh already succeeds: the test confirms that fixture/new exists and fixture/old is gone before the failure. Cron reads models.list directly and does not use the shared subscription helper extracted in #140860.

Escape starts Web Awesome's asynchronous close animation. Reopening before it finishes lets the previous close hide the newly opened listbox. The scenario now waits for the listbox to become hidden after each Escape. This is the owning test's missing interaction boundary; every existing catalog, visibility, error-recovery, draft-preservation, and no-write assertion remains intact. No production code, dependency patch, mock, timeout, retry, skip, or baseline changes.

User Impact

No product behavior change. The browser regression test still proves live catalog suggestions and draft preservation, with a completed dismissal before reopening the picker.

Evidence

Original failing CI job, head 50f77ae9c17a2e49f0cce91622fdf71a85188045: TimeoutError: locator.waitFor: Timeout 30000ms exceeded, waiting for getByRole('option', { name: 'fixture/new', exact: true }) at line 67. The retained screenshot shows an expanded picker chevron and hidden popup; both prepared-only catalog requests completed and no page errors were recorded.

Unmodified revision checks, running the exact cron e2e file headlessly with CI=1 OPENCLAW_UI_E2E_SKIP_REAL_GATEWAY=1:

Revision Result
Main 2d58961f33f 4/5; run 4 reproduces the same line-67 visibility timeout
Parent of #140860, 7bf42984a27 5/5
#140860, afed2b5c956 1/1
#140883, 7e8cffd9a38 1/1
#140633, caec9c81e73 1/1

This is intermittent on main, not a deterministic failure introduced at one of those suspect commits. The local harness uses its unchanged 10-second visibility timeout for CI=1; GitHub Actions uses its unchanged 30-second timeout. The original test was introduced in #139876; the select transition implementation predates all suspect consolidations.

The unmodified CI-equivalent shard (--shard 4/12) passed 129/129 tests across 33 files, including this case. The repaired exact file passes 5/5 runs on refreshed base aa3ee347b8a (both cases pass each time). Independent Codex review is clean through P2. Production delta: 0; test delta: +3 lines.

Commands:

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/cron-agent-ownership.e2e.test.ts
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 --shard 4/12

Separate composer validation finding

The required full ui/src/e2e run hit an unrelated failure in chat-composer-redesign.e2e.test.ts:243: "keeps mobile picker panels above an attachment-expanded composer" measured a picker width of 332.09999084472656, below the required 368. The full run was interrupted after this failure to honor the campaign stop rule.

One focused reproduction of the unchanged composer file failed again: 8 passed, 1 failed, picker width 361.73216247558594 < 368. The cron change only adds waits in its own isolated test file; it changes neither the composer nor the shared harness.

CI=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e
CI=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

The composer failure is being repaired separately in #140997. The earlier local full-suite failure remains recorded and is not claimed green. No budget or baseline was edited.

This uses synthetic local browser/Gateway fixtures; no external-provider live claim or Testbox lease.

Completed landing proof

The unchanged patch is on head d2e6d8f1869920dfbb31bddc56cb6f678d1c9913, rebased onto main 86a3c7267be. Pre/post-rebase patches compare byte-identically. node scripts/check-changed.mjs passed, followed by pnpm build (21m 50.2s) and pnpm ui:check-performance. Startup JavaScript is 347,973 B gzip in 8 requests, below the 350,953 B / 18-request limits; startup CSS is 43,989 B gzip. Baselines are unchanged.

Exact-head CI run 34096502837 is green. Native review artifacts validate; OPENCLAW_TESTBOX=1 scripts/pr prepare-run 140974 passed without a head change, using hosted evidence and no separately allocated Testbox. ClawSweeper reported no actionable findings.

@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
Join the completed listbox hide before reopening after catalog publication. Preserve every existing catalog and draft assertion.

Proof: exact cron e2e file passes 5/5; independent review clean through P2. Full UI proof blocked by unchanged chat-composer-redesign width assertion (361.73 < 368 in isolated reproduction).
@steipete
steipete force-pushed the steipete/fix-ui-e2e-cron-model-picker-0907 branch from 48482e0 to d2e6d8f Compare September 7, 2026 07:38
@steipete
steipete marked this pull request as ready for review September 7, 2026 07:38
@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: needs maintainer review before merge. Reviewed September 7, 2026, 3:49 AM ET / 07:49 UTC.

ClawSweeper review

What this changes

The Automations browser test waits for the model picker to become hidden after Escape before continuing catalog-refresh checks.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped test repair: current main lacks the dismissal waits, and the related merged catalog fix does not supersede them. No actionable patch defect was found; the maintainer-authored PR also remains protected from automatic closure.

Priority: P2
Reviewed head: d2e6d8f1869920dfbb31bddc56cb6f678d1c9913

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused test synchronization repair preserves all behavioral assertions and has relevant reported browser validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored test-only PR is exempt from the external-contributor proof gate; its captured evidence reports five passing Chromium runs through the existing synthetic-Gateway catalog-refresh scenario.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored test-only PR is exempt from the external-contributor proof gate; its captured evidence reports five passing Chromium runs through the existing synthetic-Gateway catalog-refresh scenario.
Evidence reviewed 6 items Verified introduced change: The pinned base-to-head diff adds two hidden-state waits and one explanatory comment. Existing catalog, visibility, recovery, draft, and no-write assertions remain unchanged.
Current-main necessity: Fetched main still proceeds immediately after both Escape presses. The requested synchronization is absent; no merged replacement for this test repair is established by the supplied related-item context.
Production boundary: The cron page directly requests models.list with preparedOnly enabled. Its view renders the shared model picker, which delegates to the wa-select renderer; this is a browser-interaction repair and has no affirmative Codex dependency signal.
Findings None None.
Security None None.

How this fits together

The Control UI’s Automations page reads model suggestions from the Gateway and displays them in a dropdown. Its browser test supplies synthetic Gateway responses and checks refreshed suggestions, error recovery, and preservation of an unsaved draft.

flowchart LR
  A[Synthetic Gateway catalog] --> B[Automations page]
  B --> C[Model picker]
  C --> D[Escape dismissal]
  D --> E[Wait until hidden]
  E --> F[Publish refreshed catalog]
  F --> C
  C --> G[Check suggestions and draft]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

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

Review metrics

None.

Technical review

Best possible solution:

Keep synchronization at the browser test’s dismissal boundary while retaining the existing catalog and draft assertions.

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

No deterministic reviewer-verified reproduction was established. The PR supplies the exact browser scenario and an intermittent baseline failure, but this read-only review did not execute it.

Is this the best way to solve the issue?

Yes: waiting for observable dismissal is a focused synchronization repair that preserves the test’s assertions and existing timeout policy; exact dependency animation ordering was not independently verified.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P2: This is a bounded repair for an intermittently failing browser test with documented disruption across unrelated PR validation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The maintainer-authored test-only PR is exempt from the external-contributor proof gate; its captured evidence reports five passing Chromium runs through the existing synthetic-Gateway catalog-refresh scenario.

Label justifications:

  • P2: This is a bounded repair for an intermittently failing browser test with documented disruption across unrelated PR validation.
  • 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 maintainer-authored test-only PR is exempt from the external-contributor proof gate; its captured evidence reports five passing Chromium runs through the existing synthetic-Gateway catalog-refresh scenario.

Evidence

What I checked:

  • Verified introduced change: The pinned base-to-head diff adds two hidden-state waits and one explanatory comment. Existing catalog, visibility, recovery, draft, and no-write assertions remain unchanged. (ui/src/e2e/cron-agent-ownership.e2e.test.ts:62, d2e6d8f18699)
  • Current-main necessity: Fetched main still proceeds immediately after both Escape presses. The requested synchronization is absent; no merged replacement for this test repair is established by the supplied related-item context. (ui/src/e2e/cron-agent-ownership.e2e.test.ts:60, fcced6f196c6)
  • Production boundary: The cron page directly requests models.list with preparedOnly enabled. Its view renders the shared model picker, which delegates to the wa-select renderer; this is a browser-interaction repair and has no affirmative Codex dependency signal. (ui/src/pages/cron/cron-page.ts:294, d2e6d8f18699)
  • Captured validation and related failures: The supplied PR body, sourceRevision 6f0fe3118323a9eaac2ac7bfbccffe65cf45d00f06c7fa45093e16d399ad8d36c7fa45093e16d399ad8d36, reports an intermittent baseline visibility timeout and five passing repaired-file runs using Chromium with synthetic Gateway responses. It separately records the unchanged composer-width failure. Related discussion at refactor(channels): share terminal approval interpretation #140677 and refactor(channels): share approval reaction settlement #140645 reports the same cron visibility timeout. These are supplied execution reports, not reviewer-run tests.
  • Feature-history routing: Main history associates this test with the merged catalog-refresh work at fix(ui): refresh automation model suggestions on catalog changes #139876 by obviyus and earlier automation-ownership work by Peter Steinberger. Exact source-line introduction could not be verified because parent blob retrieval failed, so routing pointers do not claim introduction. (ui/src/e2e/cron-agent-ownership.e2e.test.ts, 8c03d61c62ca)
  • Dependency and release inspection limits: The exact Web Awesome dependency is established by ui/package.json and the select registration imports. Its installed source was unavailable, and remote retrieval failed, so the animation-order explanation remains supported by the captured investigation rather than independently inspected dependency code. Reading v2026.9.2 also failed on an unavailable Git blob; no release inclusion claim is made. (ui/src/components/web-awesome-select.ts:3, d2e6d8f18699)

Likely related people:

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

@steipete
steipete merged commit 240b8b1 into main Sep 7, 2026
137 of 140 checks passed
@steipete
steipete deleted the steipete/fix-ui-e2e-cron-model-picker-0907 branch September 7, 2026 08:08
@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
Join the completed listbox hide before reopening after catalog publication. Preserve every existing catalog and draft assertion.

Proof: exact cron e2e file passes 5/5; independent review clean through P2. Full UI proof blocked by unchanged chat-composer-redesign width assertion (361.73 < 368 in isolated reproduction).
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