Skip to content

fix(tests): keep the released Dashboard route proof on a desktop viewport - #2372

Merged
bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess/flake-dashboard-viewport
Nov 25, 2026
Merged

bkudiess merged 1 commit into
openclaw:mainfrom
bkudiess:bkudiess/flake-dashboard-viewport

Conversation

@bkudiess

@bkudiess bkudiess commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: d40eacfd6f6cd9b6aa05e155e96fb20493891264

Dimension Assessment Rationale
Change confidence 9.6/10 ↑ This head's first CI attempt (run 45573570445) passed ReleasedGateway_SearchDenialAndDashboardRoutes against Gateway 2026.11.10, which failed 3 of 3 times before; all checks are green.
↑ Real 2026.11.10 Control UI: the exact probe returns skills=true at 1280x900 and false at the default 756x488.
↑ Native Edge smoke RED shows 756x488, GREEN shows 1280x900; build.ps1, Shared, Tray and timing ratchet pass; two-model review found no MEDIUM+ issue.
↓ Only one CI pass on this head so far; phone-layout Dashboard coverage is out of scope.
Diagnosis confidence 9.8/10 ↑ Upstream openclaw/openclaw 37c4caaf575 (#190409) is in v2026.11.10 and absent from v2026.11.8 and v2026.11.9.
↑ It clip-hides .content-header .page-title under the phone floating header, and the real 2026.11.10 UI reports h1 Skills [hidden] at 756x488.
Evidence fit 9.8/10 ↑ The repro reproduces CI's exact timeout state: appLoaded, hasContent, skills=false, title "Skills — OpenClaw".
↑ The CI failure screenshot is 756x488 and shows the title in the floating header.
↑ Green main used Gateway 2026.11.8, red used 2026.11.10; 2026.11.8 passes at both viewports.

What Problem This Solves

Main CI is red on every run. The Setup and connect E2E job installs the latest released Gateway, and 2026.11.10 moved the page title into a floating header when the window is phone-sized. Our Dashboard route proof runs headless Edge at its default 756x488 viewport, so it never sees a visible "Skills" heading and times out, even though the Skills page renders and is authenticated.

User Impact

No user-visible change. Developers get a green Setup and connect E2E lane again, and the Dashboard route proof checks the desktop Dashboard consistently, whatever the released Control UI's phone layout does.

Why This Change Was Made

The proof is meant to show the authenticated desktop Dashboard, but it used whatever viewport headless Edge picked. The owned browser now pins its page to 1280x900 through CDP before any navigation, the native Edge smoke asserts that size, and the route probe reports the viewport so a lost override would be obvious in a failure log. The route assertions are unchanged.

Why now: the only main commit between green and red (#2371) touched the chat composer. The real change was the npm latest Gateway moving from 2026.11.8 to 2026.11.10, which includes upstream openclaw/openclaw#190409 ("float the phone page header"). That change matches (max-width: 932px) and (max-height: 500px) and (orientation: landscape) (and mobile nav at 900px or narrower) and visually hides the in-page heading.

Evidence

Real Control UI repro on a clean host (Crabbox RTX 2, ARM64, isolated state in C:\oc\gw1110 and C:\oc\gw118), using the test's exact DOM probe with token auth on a loopback Gateway:

Gateway Default viewport (756x488) Pinned viewport (1280x900)
2026.11.8 (last green) ✅ h1 Skills visible, skills=true ✅ skills=true
2026.11.10 (red) ❌ h1 Skills hidden, skills=false (CI's exact state) ✅ skills=true

Native Edge smoke OwnedEdgePageSupportsEvaluationAndScreenshotWithoutAGateway on the same host:

  • RED, with the override disabled: Expected: "1280x900", Actual: "756x488".
  • GREEN, with the fix: passed; startup stageMs=...,network:545,viewport:551 (the new stage costs about 6 ms).

CI failures this fixes: main 3981f63 run 45558413148 (job 139016130642), and #2370 run 45563238668 attempts 1 and 2 (jobs 139031875277 and 139045182775). Last green: main 17cadf7 run 45500480373 (job 138822291865, Gateway 2026.11.8).

Local validation on head d40eacfd:

  • ./build.ps1: passed.
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj: 5972 passed, 0 failed, 29 skipped.
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj: 6948 passed, 0 failed.
  • dotnet test tests/OpenClaw.E2ETests --filter FullyQualifiedName~OpenClaw.E2ETests.Setup.SetupAndConnectTests (no E2E opt-in): 56 passed, 22 opt-in skips.
  • scripts/validate-test-timing-patterns.ps1 and git diff --check: passed.

Review: two-model adversarial review (claude-opus-5.5 and gpt-6-astra) found no MEDIUM or higher issue. The adopted low-severity suggestion was reporting the viewport in the route probe state.

Not verified: the full ReleasedGateway_SearchDenialAndDashboardRoutes WSL E2E on this head before this PR's CI; it needs the WSL runner. The local Edge smoke can't run on the authoring machine because managed Edge never publishes the about:blank page target, so it ran on Crabbox. Phone-layout coverage of the Dashboard is intentionally out of scope.

Required proof pools

  • windows-wsl-gateway-e2e: covered by this PR's Setup and connect E2E (WSL Latest) job, which runs the released Gateway route proof.

Released Gateway 2026.11.10 includes openclaw/openclaw#190409, which hides
the in-page route heading under the phone floating header. Headless Edge's
default 756x488 viewport matches that layout, so the Skills route proof never
saw a visible Skills heading and main timed out deterministically.

Pin the owned CDP page to 1280x900 before navigation, assert it in the native
Edge smoke, and report the viewport in the route probe state.

Co-authored-by: Copilot App <[email protected]>
@clawsweeper

clawsweeper Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🦞👀
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.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. 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-repro Preliminary submission classification; full source review pending. labels Nov 25, 2026
@clawsweeper

clawsweeper Bot commented Nov 25, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR pins the Dashboard proof browser to 1280×900, checks the applied viewport, and includes its dimensions in route diagnostics.

Example: The released Gateway 2026.11.10 Skills route is checked by headless Edge.

  • Before: The reported 756×488 viewport selects the phone layout, whose hidden body heading causes skills=false.
  • After: The 1280×900 viewport selects the desktop layout while preserving the existing visible-heading and authentication assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused patch is correct on inspection and supported by reported native-browser results; complete hosted route validation is still pending.
Proof confidence 🦐 gold shrimp (3/6) This test-only change needs no separate shipped-entry-point proof; the author reports a real released-Control-UI comparison and native Edge RED/GREEN smoke, while the full current-head WSL route lane remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: Developers encounter a false Dashboard route failure when the released Control UI selects its phone layout.
Reason: The maintainer-authored direction repairs an unstable test precondition without changing product behavior or weakening route acceptance.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it makes a focused, useful repair to the Dashboard test harness, and current main lacks the viewport override; no introduced defect was found.

Reviewed head: d40eacfd6f6cd9b6aa05e155e96fb20493891264

Before merge

None.

Findings

None.

Agent review details

How this fits together

The setup/connect E2E suite uses an isolated Edge process and page-level CDP connection to navigate the released WSL Gateway and verify authenticated Dashboard rendering.

flowchart LR
  A[Setup connect E2E] --> B[Owned Edge helper]
  B --> C[Page CDP connection]
  C --> D[Desktop viewport]
  D --> E[Released Gateway Dashboard]
  E --> F[Authentication and route assertions]
Loading

Technical review

Best possible solution:

Keep viewport selection in the existing browser helper and retain the current authentication, visibility, and route assertions.

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

The visible-heading predicate and upstream phone-layout CSS establish the failure path, supported by the author's explicit viewport and Gateway-version comparison; this review did not execute a reproduction.

Is this the best way to solve the issue?

Setting the intended desktop viewport before navigation is the smallest complete repair and preserves the independently checked rendering and authentication contract.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Barbara Kudiess: Raw commit 4ea07e8 adds tests/OpenClaw.E2ETests/Setup/GatewaySearchBrowserProof.cs:68 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 4ea07e858b81; files: tests/OpenClaw.E2ETests/Setup/GatewaySearchBrowserProof.cs)
  • Karen: Raw commit d6f8a88 adds tests/OpenClaw.E2ETests/Setup/GatewaySearchBrowserProof.cs:66 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d6f8a885361c; files: tests/OpenClaw.E2ETests/Setup/GatewaySearchBrowserProof.cs)

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change scope Production +0/-0; test code +14/-1 The small increase configures the existing browser boundary, checks its result, and improves failure diagnostics without adding another owner.

Labels

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

  • 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 November 25, 2026, 3:20 AM ET / 08:20 UTC.

@bkudiess
bkudiess merged commit e4bedeb into openclaw:main Nov 25, 2026
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant