Skip to content

test(ui): wait for the mobile Panels header - #181237

Merged
steipete merged 1 commit into
mainfrom
fix/ci-mobile-panels-398855
Oct 23, 2026
Merged

steipete merged 1 commit into
mainfrom
fix/ci-mobile-panels-398855

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes a scheduled Control UI E2E timeout when the mobile Panels fixture samples the layout before the mobile header has rendered.

User Impact

No user-visible behavior changes. The mobile layout tests wait for their actual entry point before opening Panels.

Why This Change Was Made

openChatPanels chooses its desktop or mobile path from the currently visible header. The mobile fixture could call it before the header existed and then time out looking for the desktop-only button. Wait for the visible mobile header in the same active pane before calling the helper. Existing geometry, accessibility, focus, and recovery assertions remain intact; no sleeps or timeout changes.

Evidence

Scheduled run 39885503944, job 120192944564: ui/src/e2e/mobile-chat-session-menu.e2e.test.ts — Control UI session management mocked Gateway E2E > keeps the light mobile Panels sheet bounded and its actions reachable.

All five mobile session-menu cases passed in the native production-bundle E2E lane. The same bounded invocation also passed the unchanged active-progress case. Node runtime matched CI; the optional filesystem transform cache was disabled after local cache publication stalled. Default-tsrs UI typecheck, scoped type-aware lint, formatting, whitespace checks, and independent P0–P2 review passed.

@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.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@steipete
steipete marked this pull request as ready for review October 23, 2026 02:49
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 23, 2026
@chatgpt-codex-connector

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 🔄 Running since 2026-10-23T02:49:55.876642Z ac91891 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.

@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 23, 2026
@clawsweeper

clawsweeper Bot commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR waits for the active pane’s mobile header before opening Panels in the mobile E2E fixture.

Example: The 390×844 mobile Panels scenario starts before the session header appears.

  • Before: The helper can select the desktop path and wait for a button unavailable in the mobile layout.
  • After: The fixture waits for the visible mobile header before the helper selects its navigation path.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The small repair is source-verifiable and supported by browser-test results and passing CI; evidence is limited to the test harness rather than a controlled timing reproduction.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored, test-only PR changes fixture synchronization; the body reports production-bundle browser scenarios passing, and separate user-facing runtime proof is not required.
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 mobile Panels coverage can fail during fixture startup before exercising the intended UI.
Reason: The repair restores meaningful browser coverage while preserving the intended mobile navigation and every existing assertion.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, correct fixture repair that remains necessary on current main; no actionable findings were identified.

Priority: P3
Reviewed head: ac91891b13619b9279076567657c7dc0f53c342f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: A controlled base-fail/head-pass reproduction with delayed header rendering is not supplied; the reported browser rerun and source inspection support this test-only repair.
Agent review details

How this fits together

The browser E2E fixture opens a synthetic session in the production UI bundle and uses the shared navigation helper to reach the mobile Panels sheet.

flowchart LR
  A[Mobile browser fixture] --> B[Active pane locator]
  B --> C[Wait for mobile header]
  C --> D[Shared Panels helper]
  D --> E[Mobile Panels assertions]
Loading

Technical review

Best possible solution:

Retain the explicit mobile-header readiness wait while preserving the shared navigation helper and existing assertions.

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

Source establishes the failure path: an absent mobile header makes the immediate visibility check choose the desktop branch; the body links a matching scheduled E2E failure, but this read-only review ran no tests.

Is this the best way to solve the issue?

The wait is the smallest complete fix for this mobile-specific fixture because it establishes the expected layout before the existing helper samples it, without sleeps, timeout increases, or weaker assertions.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests +5. Total +5 across 1 file. Added test files: 0.

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

Labels

Label changes:

  • add P3: This is a narrow E2E fixture reliability repair with no production behavior change.
  • 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 narrow E2E fixture reliability repair with no production behavior change.
  • 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 22, 2026, 11:06 PM ET / October 23, 2026, 03:06 UTC.

@steipete
steipete merged commit 11d6904 into main Oct 23, 2026
148 of 149 checks passed
@steipete
steipete deleted the fix/ci-mobile-panels-398855 branch October 23, 2026 03:33
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 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