Skip to content

chore(ci): run mock Gateway UI scenarios in pull requests - #1905

Merged
karkarl merged 8 commits into
openclaw:mainfrom
karkarl:karkarl-mock-gateway-ui-ci
Oct 29, 2026
Merged

karkarl merged 8 commits into
openclaw:mainfrom
karkarl:karkarl-mock-gateway-ui-ci

Conversation

@karkarl

@karkarl karkarl commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Related: #1899. Originally independent of #1898 (chore: update Windows App SDK to 2.6.4). Current head merges landed main (814e732e) to resolve overlapping fixture-test additions. SDK 2.6.4 is now inherited from main, with no separate SDK or Reactor dependency change in this PR.

What Problem This Solves

Pull-request CI skips real-app mock-Gateway scenarios, and their screenshots currently require downloading and extracting the complete diagnostic ZIP.

Coverage enabled by default in PR CI

New default CI execution, not 73 newly authored tests. Previously, ordinary PR CI did not enable the opt-in real-app mock-Gateway scenarios, so those UI tests skipped rather than exercising Companion. This PR adds a dedicated required lane, strict pass/no-skip checks and screenshot collection. Most scenarios already existed for explicit local runs; supporting tests may already have run elsewhere in CI.

The real Windows app, production Gateway client and native UI run against a deterministic loopback WebSocket server on windows-latest, without an MXC-capable OS image, WSL Gateway or AI-provider account. Hosted run 40919838577, attempt 1 executed 39 UI cases plus 34 supporting app/profile/harness cases, all passing with zero skips. Counts include parameterized variants.

Native UI coverage Cases What is exercised
Empty conversation 1 Connected composer appears without leaking previous history.
History and session switching 3 Selected conversation, transcript and draft survive agent switching; delayed history cannot replace the current conversation; message 240 remains visible at narrow and wide sizes.
Historical voice messages 1 Fractional timestamps and stored voice-message content render without getting stuck on a loading placeholder.
Model selection 1 A configured model outside the manual-selection policy retains its label and reasoning information.
Pages and preferences 1 Populated pages preserve selection; preferences stay in the disposable profile.
Owner footer 1 Authenticated profile and live connection status appear in the footer.
Agent creation 1 Creation goes through the Gateway protocol and refreshes the selector without replacing the conversation or draft.
Explicit assistant selection 1 Adding a session requires choosing an assistant.
Session removal 2 Removal waits for acceptance; rejection preserves the selected conversation and draft; accepted removal clears the last mounted conversation.
Archived conversation 1 Restore works through Settings rather than the sidebar.
Composer /new 2 New-conversation Back/Forward navigation and delayed creation preserve newer navigation intent.
Streaming and approval 1 A streamed answer and Gateway approval appear through the real chat path.
Approval cards 1 Allow is gated correctly and the decision is resolved through the Gateway protocol. No command executes.
Interactive questions 1 A question preserves composer state and acknowledges the native answer.
Conversation fork 1 Forking an active session includes only completed history.
Context usage 1 Footer reconciles live usage, duplicate replay, delayed history and authoritative updates without regressing.
Cancellation and late events 5 Late finals from cancelled runs and deferred abort failures cannot terminate or corrupt a newer turn.
Background media and tools 1 Retransmitted media and retained tool outcomes do not overwrite a newer native turn.
Reconnect and queued message 1 A definitely-unsent queued message remains visibly failed after reconnect.
Shared-root dialogs 5 Navigation is deferred while a dialog is open, and invalid native bindings are rejected across destinations.
Disconnect during Settings dialogs 3 Pruning waits for the real dialog and respects the fallback or latest navigation intent.
Connection input validation 1 Invalid forwarding ports are rejected without changing the Gateway.
Setup warning recovery 1 Verified setup warning recovers, but changed authority is rejected.
Cron editor 2 Timezones are preserved or explicitly replaced correctly; new jobs, other jobs and schedule changes do not inherit stale timezone state.
Total native UI cases 39 Real-app behavior with synthetic Gateway data and events.

The 34 supporting cases are not additional UI journeys. They cover the real operator connection with node execution off; concurrent app/profile/MCP-token/preference isolation; safe synthetic settings and endpoint/port validation; explicit executable selection and rejection of missing/incompatible apps; child-environment isolation, setup handoff, owned cleanup, cancellation and timeout/error propagation.

Boundary: this closes the real-app rendering and Gateway-event handling gap. It does not replace real Gateway compatibility/pairing, AI-provider, WSL setup, MSIX installation, or MXC-backed system.run, sandboxing and actual command-execution proof. Ordinary UI, functional and accessibility suites remain separate from these 73 fixture-lane cases.

Updated CI Summary to include screenshots of UI test failures for easier inspection:
image

User Impact

User impact: no shipping application change. Contributors get required fixture-backed UI scenarios and a Mock Gateway screenshots index only for failed fixture tests. Failed-test captures link to individual browser-preview PNG artifacts, grouped by test/scenario. Successful PNGs stay inside test-results-ui\GatewayFixture, without preview entries or standalone artifacts. GitHub sign-in is required; the complete diagnostic ZIP remains available.

Why This Change Was Made

Reuse test-gateway-fixture.ps1 in the ordinary windows-latest UI job after installing the Windows App Runtime selected by Directory.Build.props and before DevBuild changes app identity. Run Category=GatewayFixture once with an explicit current Debug x64 app. Failed, skipped, missing-report and zero-test selections fail the step. Context usage and chat-run correlation are included.

Preserve main's placement catalogs, add agent workspace/recents metadata and a real-client catalog regression, and retain explicit read-only/unsupported-parameter rejection. Native keyboard/compositor galleries, Release proof, real Gateway, WSL and MXC remain separate.

Ordinary fixtures now answer empty question.list recovery without enabling interactive mutations. Before hosted UI launches, configure a session-only 1920x1080 desktop and verify enough actual work area for the unchanged 1300x950 proof. Local and self-hosted execution is refused. The interactive test waits for the mounted composer's draft and enabled Send state before delivering a question, retaining its original draft-preservation assertions.

Only prepare the publisher when the fixture step fails, then publish captures belonging to failed tests or interrupted runs with a failure capture. Passing tests stay archive-only, including in mixed failed suites and above the preview artifact budget. Publish eligible PNGs unarchived with the official Actions artifact SDK, using unique test/capture names and the returned artifact IDs. Retain partial navigation if an upload fails and do not suppress publication failures. The full test-results-ui ZIP is uploaded first. No Pages, public branches, third-party hosting or write permissions are introduced.

The latest strict hosted fixture run exposed a cron-editor synchronization gap: the schedule ComboBox reported "Cron" before FormCronExpr appeared in the UI Automation tree. Wait for that dependent field with the existing fixture deadline before editing it. The failure capture already shows the field rendered. No production code, timeout, saved-payload assertion or timezone expectation changes.

Evidence

Current head 7df72ae4 passes the full local build, 4,689 Shared tests (24 existing opt-in skips), 4,686 Tray tests and both focused native cron tests, with no focused failures/skips. All four isolated app runs and their testhost were absent after cleanup. The three-line repair preserves the existing deadline, selection check, unique saved expressions, timezone assertions and non-target-job comparisons.

Current-head CI passes: run 40919838577, attempt 1, head 7df72ae4, tested merge 6a9f28e86134fc1ec278a257204347517adecd27. All required jobs and CI Gate succeeded: 34/34 profile/app, 39/39 fixture UI (including both cron tests), 585 ordinary UI (7 existing opt-in skips), 19 Functional UI, 23 accessibility and 12 hardware-profile checks. All three WSL E2E shards, Core/CLI, Tray/setup/integration, x64 release smoke and MSIX/bundle jobs passed. Release/publication jobs remain intentionally skipped.

The successful run skipped both screenshot-publisher steps and created zero standalone PNG artifacts. Its verified complete UI archive contains all 100 fixture PNGs.

Failure-only publication is proved on GitHub: run 40913089050, attempt 1, head 76d89df8, tested merge 6767c477dacf6b8be4bde379c6fd008bd42b36c9. Its archive contains 93 PNGs, but only the failed cron test's two captures were published separately. The other 91 stayed archive-only. Both raw-artifact API digests match the downloaded PNG bytes. Replaying that actual mixed-result archive selects the same two captures and preserves all 93 originals.

That run passed all 34 profile/app checks, 38 fixture UI cases, 585 ordinary UI cases (7 opt-in skips) and 19 Functional UI cases. Its one fixture failure was CronEditor_NewJobOtherJobAndScheduleKindDoNotInheritPreservedZone: Missing cron control FormCronExpr immediately after selecting the Cron schedule. The downloaded failure screenshot then shows the expression field, supporting the UIA-readiness gap rather than a permanently missing form control. Accessibility and hardware-profile steps were skipped after this failure, not passed.

All three WSL E2E shards, Core/CLI, Tray/setup/integration, x64 release smoke and both MSIX architectures passed in that earlier run. Its cron fixture failure and red CI Gate are retained as the before-fix evidence; current-head hosted x64 acceptance is the subsequent successful run above.

Earlier run 40745776543 had four different failures. They passed in run 40913089050, but the intermittent failures and investigation remain recorded rather than declared fixed:

Failed test in run 40745776543 Finding
FullSetup_TrayEnsuresWslKeepAlive Failed after 202 ms with a sharing violation in E2ESetupFixture.WaitForTrayKeepAliveReadyAsync, line 877. Its File.ReadAllLinesAsync does not permit the existing log writer. A synthetic held-open writer reproduces Windows error 32; the existing repository FileShare.ReadWrite | FileShare.Delete reader pattern reads the same marker while that writer stays open. This confirms a reader-sharing defect without claiming a real-WSL rerun or fix.
KokoroDownloadOwnershipTests.PreviewCompletion_PreservesPendingDownloadAndTerminalState, success and storage-failure Child PowerShell processes exceeded the unchanged 45-second deadline. Both cases and all 9 family cases pass locally; exact child-stage cause remains unproven.
BuildPrerequisiteTests.CheckOnly_UsesTheAppLocalRuntimeResolver, 14.29.30139 / x64 / unsupported Child Windows PowerShell exceeded the unchanged 120-second deadline. All 4 cases pass locally; exact child-stage cause remains unproven. The landed ARM64 child-architecture correction is preserved.

Both subprocess owners already drain stdout/stderr concurrently, but their timeout paths lose the captured child output. Bounded follow-up should retain stage/output evidence without weakening deadlines. No download, WSL or process-lifetime repairs are imported into this CI-selection PR. No blanket retries, timeout increases, skips or suppression were added.

Historical head ba5b9e43, run 40745776543, passed 32/32 profile/app and 31/31 fixture UI with no fixture skips, 574 ordinary UI checks (7 opt-in skips), 19 Functional UI and 23 accessibility checks. Its old policy published 80 individual PNGs. The historical wide-history screenshot shows final message 240 and its end marker at 1300x950. Existing artifacts are not deleted by the new policy; authenticated browser image rendering remains unverified.

Failure history retained: initial run 40714457906 failed actual widths 900 then 1044. Run 40728085479 had 25 unexpected question.list assertions, that geometry failure and two visibility timeouts. Run 40741383242 proved the 1920x1080 desktop but its ordinary UI host hung at Windows App SDK bootstrap and the unchanged 300-second guard aborted it before fixture launch. Current source lets fixture proof execute despite earlier unrelated test failures, while requiring successful build/runtime/desktop prerequisites and retaining the red job. Current UI bootstrap and all fixture cases passed; the intermittent earlier hang is not declared fixed. Intermittent clipping remains unproven and related #1899 stays open.

Independent Copilot rubber-duck reviews of the original CI/catalog change and the screenshot publisher/tests/workflow/lockfile/docs found no P0-P3 issues. The canonical shared autoreview installation/helper was unavailable; verified reviewer model identity and helper-owned frozen-input/isolation status are not claimed. Subsequent upstream reconciliation was self-checked and revalidated: main's gateway:fixture ID, no duplicate catalog keys, existing invalid-parameter rows, and explicit FIXTURE_READ_ONLY placement-write rejection in both session-mutation modes.

Repair review rejected the proposed Server Core display cmdlet before publication; it was replaced with User32. Independent narrow review found no ABI/safety bugs in that replacement; actual hosted geometry is now proved. The final draft-readiness and fail-independent workflow changes were self-reviewed and revalidated, not attributed to the independent review.

The five-file failure-only follow-up was self-reviewed and simplified against its parent: 43 additions / 11 removals, with no new owner, configuration, dependency or product change. Existing workflow gating and per-test filtering protect different boundaries. No new independent review or canonical-helper result is claimed for this follow-up.

The subsequent cron synchronization repair is three lines in the existing test helper, self-reviewed against the real hosted failure and its screenshot. It uses the existing bounded readiness helper rather than sleeps, test retries or production hooks. No new independent review is claimed for this small test-only follow-up.

Change Type

  • Bug fix
  • Feature
  • Refactor
  • Docs or instructions
  • Tests or validation
  • Security hardening
  • Chore or infrastructure

Scope

  • Tray or WinUI UX
  • Windows node capability
  • Local MCP or winnode
  • Gateway, connection, or pairing
  • Setup or onboarding
  • Permissions, privacy, or security
  • Tests, CI, or docs

Required proof pools

  • none: CI selection, evidence publication, synthetic fixture metadata and test-only UIA readiness. No shipping UI, native dependency, real Gateway, installer, keyboard gallery or MXC contract change. The existing hosted UI lane remains the acceptance boundary.

Validation

Current tested source: cron-readiness follow-up 7df72ae4aee6e95163f0d99daf88d9763ac3ab3e, validated as the three-line patch on parent 76d89df8. Manually recorded patch SHA256 bbed9abea6894ecb634a295b4410a82b78f075277d23e4d05b16fef4637bd7b7 matched before and after validation. Publisher follow-up 76d89df8 was validated as the five-file patch on ba5b9e43, SHA256 2cbf94d0edb9f007a9864a4222c8f02e6ebf5e835e01c61301c5033102745408. Its hosted run tested merge 6767c477dacf6b8be4bde379c6fd008bd42b36c9. Required commands ran sequentially, with OPENCLAW_REPO_ROOT set to this worktree and OPENCLAW_TRAY_DATA_DIR set to disposable task-owned settings. No local shared-runtime installation or display-resolution change.

Current-head hosted run tested merge 6a9f28e86134fc1ec278a257204347517adecd27, parents 4e31031108c890a57eef06040f6ab016a6234841 and 7df72ae4aee6e95163f0d99daf88d9763ac3ab3e. Downloaded TRX counters and exact formerly failing cron cases were inspected, not inferred from job exit status alone.

Exact command Actual result
.\build.ps1 Passed, all five projects, native ARM64 Debug
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore --logger 'trx;LogFileName=shared.trx' --results-directory .\TestResults\CronReadinessCloseout 4,689 passed, 24 existing opt-in skips, 0 failed; 4,713 total
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --logger 'trx;LogFileName=tray.trx' --results-directory .\TestResults\CronReadinessCloseout 4,686 passed, 0 failed/skipped
dotnet build .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false --no-restore Passed, 0 warnings/errors
dotnet test .\tests\OpenClaw.Tray.UITests\OpenClaw.Tray.UITests.csproj -c Debug -r win-arm64 -p:Platform=ARM64 -p:DevBuild=false --no-build --no-restore --filter 'FullyQualifiedName~GatewayFixtureUiTests.CronEditor_' --blame-hang-timeout 300s --logger 'trx;LogFileName=cron-ui.trx' --results-directory .\TestResults\CronReadinessCloseout 2 passed, 0 failed/skipped in 39 seconds; four app profiles, saved schedule JSON and screenshots, exact process cleanup verified
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore --filter 'FullyQualifiedName~KokoroDownloadOwnershipTests|FullyQualifiedName~BuildPrerequisiteTests' --logger 'trx;LogFileName=subprocess-baseline.trx' --results-directory .\TestResults\FailureOnlyInvestigation 13 passed unchanged, 0 failed/skipped; local non-reproduction of the hosted deadlines, not a fix
node --test .github\scripts\gateway-fixture-report\report.test.mjs 8 passed, 0 failed/skipped; failure-only filtering, passing-capture preservation/budget exclusion, interrupted failures, upload error propagation/partial summary, malformed evidence and failed-image budget guard
.\scripts\test-ci-workflow-contract.ps1 Passed serially, including desktop ordering/failure, screenshot publication, ZIP retention and process guards
.\scripts\validate-docs.ps1 Passed, 68 Markdown files
.\scripts\validate-agent-skills.ps1 Passed, 15 skills / 24 Markdown files
.\scripts\test-agent-skills-validator.ps1 Passed, 27 fixtures plus repository skills
git diff --check Passed

Earlier unchanged application/fixture source, not relaunched for this publisher-only follow-up: .\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -ArtifactsDirectory '.\TestResults\FixtureRepairUiFinal' -Screenshots passed 32 profile/app + 31 native UI with no failures/skips (invocation 1d8d2a9c11404bc68ebc272b30cef843). dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-build --no-restore --filter FullyQualifiedName~GatewayFixtureProtocolTests --logger 'trx;LogFileName=protocol.trx' --results-directory .\TestResults\FixtureRepairCloseout --verbosity quiet passed 106 cases with no failures/skips. .\scripts\test-ci-desktop-resolution.ps1 passed the binding/ABI and local/self-hosted refusal checks without display mutation.

The first post-merge Shared run (6e90d495) had two placement regression failures: main now recognizes projects.add as a denied write rather than an unknown method. Corrected assertions require the explicit FIXTURE_READ_ONLY outcome and no unexpected RPCs. Focused reproduction went from 2 failed to 2 passed; all required commands were then rerun, with the final results above.

Repair history retained: question-discovery baseline 2 failed/13 passed became 106 protocol passes after the fixture fix. The first repaired local UI run passed 30/31, failing draft retention in the inherited interactive case; after adding the draft/Send acknowledgement precondition, focused 1/1 and full 31/31 passed. One workflow-contract attempt hit its existing two-second no-output child deadline while a build was busy; subsequent serial checks passed without changing that guard.

Historical initial-head (d64b35b2, SDK 2.5.1) evidence is not attributed to this head: full build passed; Shared 4,654 passed/24 skipped; Tray 4,566 passed/4 prerequisite-fixture failures. The prerequisite repair is now inherited from main and passed in this head's own full Tray run. The initial local strict command .\scripts\test-gateway-fixture.ps1 -AppPath '.\src\OpenClaw.Tray.WinUI\bin\Debug\net10.0-windows10.0.22621.0\win-arm64\OpenClaw.Tray.WinUI.exe' -ArtifactsDirectory '.\TestResults\FixtureCiDebug' -Screenshots passed 32 profile/app + 30 native UI, zero failures/skips. Original failures and the hosted geometry failure are retained, not skipped or retried into success.

Real Behavior Proof

  • Environment tested: native Windows ARM64 locally and GitHub-hosted Windows x64 windows-latest. Hosted matching runtime installer 2.6.4 succeeded; desktop receipt is 1920x1080 with a 1920x1032 work area.
  • PR head or commit tested: current head 7df72ae4aee6e95163f0d99daf88d9763ac3ab3e, hosted merge 6a9f28e86134fc1ec278a257204347517adecd27; local test-only patch built on parent 76d89df8. Earlier hosted failure-only publisher head 76d89df891aa55b82347048f207f7bfccb4ec08e, merge 6767c477dacf6b8be4bde379c6fd008bd42b36c9. SDK 2.6.4 is inherited from main; Reactor remains preview.12. Loaded runtime module version was not independently captured.
  • Exact steps or command run: required commands and focused cron test command above, with OPENCLAW_RUN_GATEWAY_FIXTURE_UI=1, explicit freshly built ARM64 Debug app, isolated fixture artifacts and screenshots enabled. Replay of actual all-success and mixed-result hosted archives checks selected captures and unchanged PNG hashes.
  • Evidence after fix: both real-app cron tests pass. Stored synthetic cron.add / cron.update schedules preserve absent timezone, unlisted Pacific/Auckland, explicit UTC and listed America/Chicago while verifying other jobs remain unchanged. Current new-job screenshot visibly shows the populated expression editor. Four app PIDs plus their fixture/testhost PID were absent after cleanup.
  • Observed result: on failed run 40913089050 the policy selected only the two captures from the one failed test, not the other 91 PNGs. Its complete UI archive is retained; both individual artifact digests match the downloaded PNGs. On successful current-head run 40919838577, 34 profile/app and 39 fixture UI pass with no skips, the publisher steps are skipped, zero individual PNGs are published and all 100 fixture PNGs remain in the archive.
  • Screenshot or artifact links verified? (Yes/No/N/A): Yes, artifact identity/name verified through GitHub and hosted ZIP/screenshots inspected. Authenticated browser image rendering remains unverified because the canvas is signed out.
  • Not verified or blocked: current-head required CI is green, not a merge action or a claim that earlier intermittent subprocess/log-sharing/bootstrap/clipping defects are fixed. Authenticated browser image rendering remains unverified. No new local Release, manual keyboard/compositor, real Gateway, WSL, MXC, provider, installer or SDK-upgrade proof is claimed. Related intermittent clipping is not established as fixed.

Security Impact

  • New permissions or capabilities? (Yes/No): No
  • Secrets or tokens handling changed? (Yes/No): No
  • New or changed network calls? (Yes/No): Yes, locked dependency installation and individual PNG uploads to the existing GitHub Actions artifact service.
  • Command or tool execution surface changed? (Yes/No): No
  • Data access scope changed? (Yes/No): No
  • If any answer is Yes, explain the risk and mitigation: Only PNGs from fixture-owned run directories are uploaded; no profile contents, token fields or raw logs are added to the summary. Existing artifact authentication/retention and read-only workflow permissions remain unchanged. Fork PRs use the runner-provided artifact runtime token. Dependencies are locked and installed with lifecycle scripts disabled.

Compatibility and Migration

  • Backward compatible? (Yes/No): Yes
  • Config or environment changes? (Yes/No): Yes, existing fixture opt-in is scoped to child test processes. Only disposable GitHub-hosted CI changes display resolution for its session; local/self-hosted use is refused.
  • Migration needed? (Yes/No): No
  • If yes, list the exact upgrade steps: No user action. The existing classifier and CI Gate own when the UI lane is required.

Review Conversations

  • I replied to or resolved every bot review conversation addressed by this PR.
  • I left unresolved only conversations that still need maintainer judgment.

Enable the strict fixture runner in the ordinary Windows UI lane and model placement discovery required by composer scenarios.

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

clawsweeper Bot commented Oct 28, 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.

@karkarl

karkarl commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

Local evidence from this separate CI candidate (d64b35b): full build passed; Shared 4654 passed, 24 skipped, zero failures; Tray 4566 passed with four baseline ARM64 prerequisite-fixture failures; strict mock-Gateway fixture 32 profile/app plus 30 native UI passed, zero failures/skips. Missing placement RPC is repaired; new placement regressions failed before the fix. Both ComposerNew cases and the unchanged wide-resize case passed. #1899 remains open because the intermittent resize mechanism is not proven fixed. The four ARM64 prerequisite-fixture failures are independently repaired in #1898 at 5ce60c4 (full Tray 4570/4570); that repair has not been imported here. This local fixture execution used SDK 2.5.1 and does not prove SDK 2.6.4 behavior or hosted x64 execution. No MXC, WSL, shared runtime installation, or live-provider Gateway was required for these fixture tests.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. 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. labels Oct 28, 2026
@clawsweeper

clawsweeper Bot commented Oct 28, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge.

What this changes

This PR runs strict mock-Gateway application scenarios in the existing Windows UI lane and supplies their missing placement catalogs.

Example: The fixture-backed composer opens a new conversation for agent main.

  • Before: Placement discovery encounters an unsupported projects.list request.
  • After: Discovery returns empty projects, workspace /fixture/workspace, and an available local environment.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Focused, source-supported implementation with no concrete defect found; independently inspectable runtime evidence remains limited and the linked issue is only partly addressed.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored CI/test change is outside the ordinary contributor proof gate; reported ARM64 application execution supports the scenario, but local receipts and screenshots were not uploaded and hosted x64 execution remains pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Maintenance · Worth it: Yes · Fix scope: Partial
User problem: Contributors receive no ordinary PR coverage of populated mock-Gateway application scenarios, and composer scenarios encounter missing fixture catalogs.
Reason: The collaborator-authored direction is authorized and adds useful acceptance coverage; Related wording correctly leaves the linked issue's visibility investigation open.

Merge readiness

✅ Ready for maintainer review

Keep open: this collaborator-authored draft provides useful CI coverage and a focused fixture repair absent from main; no actionable patch defect was found, and the author's explicit landing pause remains.

Priority: P2
Reviewed head: d64b35b2b1eb38dcf9061921de23c8e8883721a4

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Hosted Windows x64 execution of the new strict step is pending; the reported local ARM64 UI artifacts are not publicly inspectable.
Agent review details

How this fits together

The Windows UI workflow invokes the existing fixture runner, which launches isolated application scenarios against a synthetic loopback Gateway and produces test reports and diagnostic artifacts.

flowchart LR
  A[Selected Windows UI lane] --> B[Strict fixture runner]
  B --> C[Isolated Companion app]
  C --> D[Real Gateway client]
  D --> E[Synthetic Gateway catalogs]
  B --> F[Reports and screenshots]
Loading

Technical review

Best possible solution:

Use the existing strict runner and scenario catalogs for CI, while retaining the separate investigation of intermittent wide-window visibility.

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

Main's UI job lacks the fixture opt-in, so these application tests skip; source also confirms the missing placement RPCs, and the author reports the new regression failing before repair.

Is this the best way to solve the issue?

The patch is a focused use of existing owners: enable the strict runner, avoid duplicate selection, and add only the synthetic reads required by the real client.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Required desktop CI promotion changes intended behavior with a stated reason (3e74082: The original fixture PR deliberately kept desktop smoke opt-in and reserved required CI promotion for a separate reliability decision.)
  • UI filter and workflow guards keeps the original intent (3eed1f1: Specialized accessibility and onboarding proof had separate ownership; this patch preserves those exclusions and gives fixture scenarios their own strict step.)
  • Synthetic Gateway catalog and rejection behavior keeps the original intent (3e74082: The fixture models deterministic supported reads and explicitly rejects unsupported traffic; placement additions retain that boundary.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Scott Hanselman: Raw commit 3e74082 adds scripts/test-gateway-fixture.ps1:3 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 3e740827aeb1; files: scripts/test-gateway-fixture.ps1)
  • Karen: Raw commit 5ca1513 adds tests/OpenClaw.TestSupport/Gateway/GatewayScenario.cs:54 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 5ca151308f65; files: tests/OpenClaw.TestSupport/Gateway/GatewayScenario.cs)

Labels

Label changes:

  • add P2: Improves required application-test coverage and repairs a confirmed fixture mismatch without changing shipping application behavior.
  • 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:

  • P2: Improves required application-test coverage and repairs a confirmed fixture mismatch without changing shipping application behavior.
  • 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 28, 2026, 11:31 AM ET / 15:31 UTC.

@karkarl
karkarl marked this pull request as ready for review October 28, 2026 15:51
karkarl and others added 5 commits October 28, 2026 12:18
Preserve the newly landed placement catalog and its invalid-parameter cases; retain the real-client catalog regression and synthetic workspace metadata.

Co-authored-by: Copilot App <[email protected]>
Main now recognizes projects.add as a denied write. Assert the explicit FIXTURE_READ_ONLY outcome with session mutations both enabled and disabled, rather than expecting an unknown RPC.

Co-authored-by: Copilot App <[email protected]>
Answer ordinary question discovery without enabling mutations. Configure and verify the disposable hosted desktop before UI tests, and wait for draft acknowledgement before interactive question delivery.

Co-authored-by: Copilot App <[email protected]>
Require successful app build, runtime installation and desktop setup, but run fixture scenarios after earlier test failures. Preserve the earlier failure and always collect fixture screenshots when launch prerequisites passed.

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

karkarl commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator Author

Repair update: 9f47dbdc passed local full build, Shared 4,689 (24 existing skips), Tray 4,686, and strict mock Gateway 32 profile/app + 31 native UI with zero fixture failures/skips. Hosted run 40741383242 then verified the new 1920x1080 desktop and 1920x1032 work area, but the ordinary UI test host hung during Windows App SDK bootstrap and was aborted by the unchanged 300-second hang guard before fixture scenarios began. Functional UI 19/19 and the other required lanes passed. No bootstrap fix or cause is claimed.

New head ba5b9e436ff19fa20c0b5eb58db4d2e4599294a5 now executes fixture scenarios after unrelated earlier test failures, provided the build/runtime/desktop prerequisites succeeded and the job was not cancelled. Earlier failures still fail the job. The exact condition and prerequisite IDs are source-contract tested. Full build, Shared 4,689/24 skipped and Tray 4,686 passed again before pushing. This preserves fixture evidence and screenshot publication without suppressing a test or retrying bootstrap. Fresh hosted acceptance is pending. Related #1899 remains open.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednpm/​fast-xml-parser@​5.11.210010010092100
Addednpm/​@​actions/​artifact@​6.3.19810010093100

View full report

@socket-security

Copy link
Copy Markdown

Warning

Review the following alerts detected in dependencies.

According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.

Priority Alert  (click "▶" to expand/collapse) Action
Low priority
Deprecated by its maintainer: npm glob

Reason: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]

From: .github/scripts/gateway-fixture-report/package-lock.json → npm/@actions/[email protected] → npm/[email protected]

ℹ Read more on: This package | This alert | What is a deprecated package?

Next steps: Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at [email protected].

Suggestion: Research the state of the package and determine if there are non-deprecated versions that can be used, or if it should be replaced with a new, supported solution.

Mark the package as acceptable risk. To ignore this alert only in this pull request, reply with the comment @SocketSecurity ignore npm/[email protected]. You can also ignore all packages with @SocketSecurity ignore-all. To ignore an alert for all future pull requests, use Socket's Dashboard to change the triage state of this alert.

Warn

View full report

karkarl and others added 2 commits October 29, 2026 12:34
Keep passing captures inside test-results-ui, publish only failed or interrupted failure runs, and retain strict evidence and upload errors.

Co-authored-by: Copilot App <[email protected]>
A selected ComboBox value can precede its dependent control in the UI Automation tree. Await the mounted expression editor using the existing fixture deadline before editing it. Preserve all timezone and saved-payload assertions.

Co-authored-by: Copilot App <[email protected]>
@karkarl
karkarl merged commit 1912df7 into openclaw:main Oct 29, 2026
28 checks passed
larroy pushed a commit to larroy/openclaw-windows-node that referenced this pull request Oct 30, 2026
)

* chore(ci): run mock Gateway UI scenarios in pull requests

Enable the strict fixture runner in the ordinary Windows UI lane and model placement discovery required by composer scenarios.

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

* chore(ci): publish browsable mock Gateway screenshots

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

* test: preserve landed fixture placement write rejection

Main now recognizes projects.add as a denied write. Assert the explicit FIXTURE_READ_ONLY outcome with session mutations both enabled and disabled, rather than expecting an unknown RPC.

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

* fix(ci): support question recovery and full-width fixture proof

Answer ordinary question discovery without enabling mutations. Configure and verify the disposable hosted desktop before UI tests, and wait for draft acknowledgement before interactive question delivery.

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

* fix(ci): collect fixture proof after unrelated UI failures

Require successful app build, runtime installation and desktop setup, but run fixture scenarios after earlier test failures. Preserve the earlier failure and always collect fixture screenshots when launch prerequisites passed.

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

* fix(ci): preview screenshots only for failed Gateway fixtures

Keep passing captures inside test-results-ui, publish only failed or interrupted failure runs, and retain strict evidence and upload errors.

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

* fix(test): wait for the cron expression editor after selection

A selected ComboBox value can precede its dependent control in the UI Automation tree. Await the mounted expression editor using the existing fixture deadline before editing it. Preserve all timezone and saved-payload assertions.

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

---------

Co-authored-by: Copilot App <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. 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