Skip to content

test(ui): await progress dismissal before mobile resize - #181272

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-session-progress-live-placement-flake-20260919
Oct 23, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-session-progress-live-placement-flake-20260919

Conversation

@steipete

@steipete steipete commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the intermittent session-progress-live-placement failure on scheduled main CI: after keyboard dismissal and an immediate mobile resize, the task-progress pill sometimes remained visible.

User Impact

Test-only stabilization; no production behavior or appearance changes. The test still verifies keyboard dismissal, the hidden mobile pill, preservation of the saved card, peer-tab isolation, and no shared progressCard.put write.

Why This Change Was Made

Enter can be queued while the menu navigation runtime loads. Immediately resizing closes the desktop menu, whose lifecycle intentionally retires pending keyboard input. Wait for the selected menu item to become hidden before changing the viewport, so the test observes completion of the action it just requested.

The fix adds no retries, sleeps, timeout increases, or production code. Production LOC delta: 0; test LOC delta: +3 (4 added, 1 removed).

Evidence

  • Scheduled main run: https://github.com/openclaw/openclaw/actions/runs/39885503944, checks-ui-e2e (6/9). Failed logs fetched once. The failing assertion expected zero progress pills after keyboard dismissal and mobile resize.
  • Reproduced on main 89ab73c2fd2e in the first local full-file run: 6 passed, 1 failed with the same remaining-pill assertion; 63.42 seconds wall time.
  • Initial repaired proof: active and note-only dismissal both passed three executions (--repeats=2); 46.77 seconds wall time including E2E setup.
  • Full-file stability proof: all 7 scenarios passed 30 consecutive executions each (210 successful executions, no failures), using node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-progress-live-placement.e2e.test.ts --maxWorkers=1 --repeats=29. Total wall time: 880.93 seconds; test time: 830.22 seconds. The original failure reproduced on the first baseline attempt, so further failing baseline repetitions were unnecessary.
  • Rebased-head confirmation: all 7 scenarios passed again on ba46fb7cd87544be2cb977afd8b68ed6af8060ff; 51.54 seconds wall time, 27.65 seconds test time.
  • Changed-file oxfmt and oxlint passed. Targeted UI E2E tsrs typecheck passed (test/tsconfig/tsconfig.core.test.ui-e2e.json).
  • Independent Codex autoreview: scoped-clean through P2, no actionable findings.

All browser proof uses the repository's headless Chromium harness and synthetic Gateway fixtures. No live Gateway, user browser, or remote test lease was used. Before pushing, rebased onto main cc16d8d65533; the intervening UI changes only affect text selection, with no change to the menu or progress-card owners. PR CI passed on the exact rebased head: run 39895269610, with 29 passing checks and no failing or pending checks at merge. The selected UI E2E job took 1 minute 59 seconds. Independent local autoreview and GitHub Codex review both reported no findings. Squash-merged as 1dc9afc5f9bf540d188295e8a29d6b9c28f1a861.

@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review October 23, 2026 03:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 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-23T03:32:03.312337Z ba46fb7 Draft marked ready
ℹ️ 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant