Repository navigation
fix(ui): wait for cron model picker dismissal in e2e - #140974
Conversation
|
🦞👀 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. |
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).
48482e0 to
d2e6d8f
Compare
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 3:49 AM ET / 07:49 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherThe 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +3. Total +3 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
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).
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/newexists andfixture/oldis gone before the failure. Cron readsmodels.listdirectly 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 forgetByRole('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:2d58961f33f7bf42984a27afed2b5c9567e8cffd9a38caec9c81e73This 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 baseaa3ee347b8a(both cases pass each time). Independent Codex review is clean through P2. Production delta: 0; test delta: +3 lines.Commands:
Separate composer validation finding
The required full
ui/src/e2erun hit an unrelated failure inchat-composer-redesign.e2e.test.ts:243: "keeps mobile picker panels above an attachment-expanded composer" measured a picker width of332.09999084472656, below the required368. 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.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 main86a3c7267be. Pre/post-rebase patches compare byte-identically.node scripts/check-changed.mjspassed, followed bypnpm build(21m 50.2s) andpnpm 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 140974passed without a head change, using hosted evidence and no separately allocated Testbox. ClawSweeper reported no actionable findings.