Repository navigation
feat: guide Windows onboarding from setup to native AI tasks - #1531
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review blockedAutomated review did not run, so no review verdict was produced. Reason: The input-safety check rejected material in this revision. No detected value, path, or scanner output is reproduced here. Automatic review is on hold, including after source changes. Request a fresh re-review after resolving the failure; maintainers can also release the hold through an intentional scanner-policy update. Next step: If this is a genuine credential, remove and rotate it. If it is an intentional test fixture, a maintainer must review and qualify it. |
382a9bd to
e93f756
Compare
|
Maintainer review at exact head
Validation at this head:
Current-head isolated WinUI proof showed the Welcome and Gateway-choice screens rendering correctly. On this host, native Gateway admission failed closed with the visible Windows Update guidance because Not merged: |
|
@karkarl, Scott identified your BaseContainer-capable machine for the remaining host-specific proof on this PR. At exact head Please recheck the current SHA, then run |
Exact-head Windows MXC/AppContainer proof: passedI ran the requested The canonical MXC run passed all 18 tests on the first attempt: 18 passed, 0 failed, 0 skipped. No Commands and results.\build.ps1
dotnet build .\src\OpenClaw.Tray.WinUI\OpenClaw.Tray.WinUI.csproj -c Debug -r win-x64
dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore
dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore
dotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restore
dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore
.\scripts\validate-mxc-e2e.ps1 -NoBuild -RuntimeIdentifier win-x64 -ResultsDirectory <isolated-artifact-directory>
The unit-suite skips were existing opt-ins/hardware conditions: 33 integration opt-outs, no NVIDIA GPU, and two distinct-volume-cache cases. They are not MXC skips. For transparency, the initial Shared run had 127 failures caused by my harness's global Actual runtime proofHost execution was native Windows x64 with WSL 2.7.8.0 and a disposable Gateway 2026.9.6. The executor was All seven real Gateway/MXC cases passed, in addition to 11 port-support cases:
Sanitized excerpts from the run: Isolation, cleanup, and evidence identity
Scope: this closes the requested MXC/AppContainer proof gap for |
0ae54e1 to
a0ad5bb
Compare
Hanselman dual-model reviewReviewed a0ad5bb against 5abfabb. The PR still points to this head at publication. Review only: no source changes were made. Claude Opus 5.5 ( Both models agree: HIGH consensusNo identical defect was independently flagged by both models. Both raised startup concerns, but with different root causes, so those findings are not counted as consensus. Single-model findings: LOW consensus
Fix confidence is the coordinator's assessment of the proposed repair, not a probability that the bug exists or a substitute for runtime proof. LOW consensus means one independent reviewer identified the issue, not low severity. Findings1. Expected restart rejects temporarily missing handshake state (HIGH). GatewayAiSetupController.cs:153-160 calls Suggested repair: validate stable ownership during downtime, then validate the fresh authenticated route after reconnect. Test a real disconnected interval with cleared handshake fields, including same-authority and changed-authority reconnections. 2. Native onboarding applies a startup choice it never displays (HIGH). CapabilitiesPage.xaml.cs:35-39 hides the startup selector for Native setup, but SetupWindow.xaml.cs:768-777 persists and applies the default enabled preference. Users cannot opt out through that route, and registration denial can block completion. Existing rendering coverage sets the preference programmatically on the Existing route rather than exercising a Native user's choice. Suggested repair: expose the choice or preserve the existing preference without applying an unoffered default. Cover Native selection of 3. Startup registration failure lacks a usable fallback (HIGH, conditional). WindowsStartupTaskRegistration.cs:28-48 classifies every completed nonzero exit as The conditional source path is verified; the reviewer's broader claim that normal installations always fail was not established. Controlled non-elevated Windows reproduction is needed before choosing a repair. Distinguish confirmed rejection from uncertain operations; do not broadly reinterpret timeouts as rejection or silently mark startup as applied. 4. The committed Gateway is not carried into AI setup (MEDIUM). SetupWindow.xaml.cs:683-689 omits Suggested repair: carry and validate the committed gateway/endpoint binding before admitting AI requests. Test A-to-B switching before AI initialization and assert that no setup RPC reaches B. 5. Settlement errors obscure the original result (LOW).
Reconciliation and rejected hypotheses
ValidationA fresh local ARM64 build of the reviewed head succeeded with
Real behavior proof and remaining gatesThe current-head ARM64 app was launched with Not verified / blocked: these findings have not been reproduced end-to-end. Isolated mode suppresses startup registration, so this launch cannot establish findings 2-3's Windows-registration effects. No startup task, Run-key, actual Gateway installation, or real Gateway/MXC proof was intentionally exercised for this review. The PR's |
Add native gateway and AI onboarding, verified Chat/Channels/Skills completion, isolated startup behavior, and ownership-safe persistence and recovery. Remove superseded onboarding paths and include focused regression coverage. Co-authored-by: Copilot App <[email protected]>
Handle the CLR-projected file-not-found exception from Task Scheduler without suppressing other failures. Cover the real read-only missing-task query. Co-authored-by: Copilot App <[email protected]>
Preserve vendor artwork bytes, isolate every UI test data root, and separate native proof from framework coverage. Drain artwork requests before transport disposal, restore provider focus without viewport drift, and await actual model flyout transitions. Bind framework card actions to exact XAML declarations. Co-authored-by: Copilot App <[email protected]>
Preserve the native route's startup behavior, disambiguate localization keys, and retain cleanup and contract coverage across the merged flows. Co-authored-by: Copilot App <[email protected]>
Assert the combined accessibility and native-onboarding exclusion in the Tray UI step so fast-validation enforces the current workflow. Co-authored-by: Copilot App <[email protected]>
Preserve durable native connection commits across setup closure, keep temporary cleanup from changing commit outcomes, and recover unchanged invalid persistence baselines without weakening cross-writer checks. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 5cb00a66-bbdf-46ef-a6d5-cf0d53426a4b
Preserve native runtime ownership through focused AI setup, exact verification, and shared destination selection. Retain guarded compatibility recovery and add DPI-aware setup window minimum sizing for #1546. Co-authored-by: Copilot App <[email protected]>
Preserve current WinGet cancellation text and all Chat and migration resource keys across the six locales. Co-authored-by: Copilot App <[email protected]>
…ecks Retain strict presenter, HWND, and full-visibility assertions. Add compact capability viewports and measure initial sizing against Windows maximum tracking dimensions. Co-authored-by: Copilot App <[email protected]>
Account for responsive cards increasing the scroll extent after BringIntoView. Preserve strict visibility checks and add a deterministic regression for the stale end offset. Co-authored-by: Copilot App <[email protected]>
Surface rejected stale settings writes without weakening CAS, distinguish busy and unavailable handoffs, retain working explicit retries, and keep conflict notifications nonblocking. Co-authored-by: Copilot App <[email protected]>
Keep setup-owned isolated service attribution through focused restart, align console delegation contracts, and retain incoming native Gateway copy and regression coverage. Co-authored-by: Copilot App <[email protected]>
…ings Preserve authority during expected reconnects, expose native startup choice, classify confirmed registration rejection, pin committed gateway bindings, and retain pipeline settlement diagnostics and Local AI recovery contracts. Co-authored-by: Copilot App <[email protected]>
Protect incomplete, faulted, cancelled, shared and explicitly refreshed probe behavior after the main rebase, and record the existing cache owner. Co-authored-by: Copilot App <[email protected]>
a0ad5bb to
5c3014e
Compare



What Problem This Solves
Windows onboarding needs one coherent experience from Gateway installation and PC access choices to a verified AI and a useful first task. Native Windows and WSL share the redesigned provider/model setup and completion pages, while installation and runtime ownership remain platform-specific.
User Impact
Current revision
Published head:
5c3014e4dcd35ada1db2a38dcb17a6b3c5c52bc9. Tree:81c955be0c2e823ddfd463bd23d43d27a819d290. Base:04a880fe9488dbbd68ef786c1ebdc03c240c26c6. All 13 feature commits were retained in the rebase, followed by cache regression coverage and ownership documentation. Both final scoped integration reviewers are clean. No merge was performed.The current rebase preserves main's scoped pairing, legacy web-chat/MCP proxy protections, ElevenLabs redirect protection and incomplete-CUDA re-probe behavior. The existing isolated-Gateway runtime/provenance, registry/settings CAS, handoff recovery and minimum-size guards remain intact.
Review-comment fixes
Addresses the five findings in karkarl's review:
/HRESULT; classify completed0x80070005as rejection. Generic failures and timeouts remain Unknown. Run-key fallback still requires strict task absence; existing definite pre-launch failure handling remains.Regression coverage includes an actual product-client loopback disconnect with cleared handshake fields, same-authority reconnect, changed-authority rejection, mounted Native startup choices with fake OS callbacks, zero-RPC Gateway-switch rejection, and combined pipeline/settlement failure cases. Actual OS startup registration was not exercised.
Change Type
Scope
winnodefeatureRequired proof pools
windows-winui-interactive: changed onboarding, startup choice, authorization, recovery, native input/compositor and sizing. Mounted tests do not fulfill the complete interactive pool.windows-wsl-gateway-e2e: complete real product setup, pairing, recovery and verified completion on the current tree.windows-wsl-mxc: strict real Gateway-to-node containment. Previous-head proof does not fulfill this pool for the current revision.Validation
Pushed at the user's explicit request without waiting for the remaining validation. No additional validation run will be started by this session under that instruction. The following are already-completed receipts on this exact head, not new runs initiated after the request:
.\build.ps1dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.Connection.Tests\OpenClaw.Connection.Tests.csproj --no-restoredotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restoreBefore full closeout, the identical effective tree also passed focused Setup 769 / 1 existing skip, Tray 165, full winnode CLI 129, and mounted UI 56, plus product compilation. Focused cases overlap full suites and must not be added as unique counts.
Both independent Opus/GPT reviews accepted the five fixes and the bounded rebase integration. The full suite exposed two outdated source-contract assertions and a Local AI exception-type compatibility regression; these were corrected without weakening the intended behavior. Their initial failures and subsequent focused results are retained. No unrelated chat/MCP timing issue was changed or waived.
Artifacts are retained locally under
artifacts\pr-comment-fixes-20260930\andartifacts\rebase-review-comment-20260930\, including exact commands, TRX/logs, source/profile manifests, range-diff and preservation audits. These paths are not public download links. Runs used separate DATA/APPDATA/LOCALAPPDATA roots, private scratch directories and the exact worktree root.Hosted checks may start automatically after push. No current-head hosted CI result is claimed here. The earlier green CI on
a0ad5bb1is prior-head evidence only.Real behavior proof
Current proof includes owned loopback protocol fixtures and mounted production WinUI with synthetic package/runtime/startup callbacks. It is not actual WinGet/MSIX deployment, isolated-agent startup, provider sign-in, Task Scheduler registration, Run-key mutation or native input/compositor proof.
The setup command's
/HRESULTsupport was verified against Microsoft's command reference and read-only local help. Numeric classification and fallback gates have controlled tests. Actual non-elevated access denial and real fallback registration remain unverified.Earlier maintainer-head MXC proof records 18/18 with zero skips on
97af6652. Later hosted setup/connect lanes skipped seven MXC-sensitive cases. Neither constitutes strict current-head MXC proof.Not verified / blocked: current-head live startup-registration effects, actual native isolated Gateway/provider installation, complete real WSL/MXC routes, current screenshots/live notification pixels, full native-input/compositor proof, physical monitor transitions and ARM64/Linux runtime execution. Passing source reviews and automated fixtures are not a blanket merge-readiness claim.
Security Impact
Compatibility and Migration
Existing connection/settings and explicit classic compatibility fallback remain available. Shared UI does not combine platform runtime ownership. Main's migration/restart and Local AI behavior remain integrated. No new required user environment variable or manual onboarding migration is introduced.
Review Conversations
The fixes are published; no reply has yet been posted to the review comment, no thread was resolved, and no merge was performed.