Repository navigation
fix(setup): gate Local AI on WSL readiness - #1203
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 5:11 AM ET / 09:11 UTC. ClawSweeper reviewWhat this changesThe PR checks WSL readiness before local gateway capability choices, offers a fresh retry for blocked environments, and keeps Local AI availability messages limited to Local AI-specific failures. Merge readinessKeep open for normal maintainer review. Current main does not contain this distinct onboarding gate, the introduced implementation preserves the merged recoverable-WSL path, and collaborator-authored items are not eligible for automated closure. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe onboarding Welcome page starts local gateway setup and now inspects WSL before users reach capability and Local AI choices. Ready or installable WSL continues into the setup pipeline, while non-recoverable states remain at a retryable readiness dialog. flowchart LR
A[User selects local setup] --> B[Welcome page]
B --> C[WSL readiness inspection]
C -->|Ready or installable| D[Capabilities and Local AI choices]
C -->|Blocked| E[Retryable readiness dialog]
D --> F[Setup pipeline]
F --> G[WSL platform recovery or gateway provisioning]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one WSL classifier, route installable states to the existing recovery pipeline, and retain the early retryable gate only for states that cannot safely proceed. Do we have a high-confidence way to reproduce the issue? Yes. The source gives a deterministic local-setup path, and focused tests cover both the blocking virtualization case and the non-blocking installable path without requiring destructive WSL changes. Is this the best way to solve the issue? Yes. Reusing the existing classifier and downstream recovery behavior keeps readiness decisions in one place rather than adding a parallel Local AI-specific WSL policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 309299b8f17b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles) |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: d327db5c-ee84-43f8-a425-060407f117c1
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 374d0354-6ac4-4e56-b3c5-1bfdff93a2fc
dcf0e3a to
1a2fa7f
Compare
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 374d0354-6ac4-4e56-b3c5-1bfdff93a2fc
Adversarial release reviewA dual-model Opus + Codex review examined the WSL readiness gate, same-window retry behavior, and integration with #1235 and #1202. Reviewed SHA: Review result: SHIP AFTER FIXES. The runtime blocker was resolved, but the review required deterministic proof that Finding addressed: Commit Recommendation: READY TO MERGE with 98% merge confidence. Merge immediately after #1202. The requested Hanselman skill was unavailable in the review runtime, so the installed equivalent adversarial workflow ran the same Opus + Codex review. |
Preserve the merged one-shot WSL platform recovery while retaining the Local AI readiness gate and its single classification owner. Co-authored-by: Copilot App <[email protected]>
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(setup): gate Local AI on WSL readiness This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |

Summary
mainat4c078f9ee5f9308744b2180a41bad361ceb0371d, which includes prerequisite PR fix(setup): recover uninitialized WSL automatically #1202WslViabilityInspectoras the single classifier andWslViabilityProbeas the single UI cache and refresh ownerAdapted from the ordering intent in joelagnel#4 for the post-#1178 setup architecture.
Validation
Current head:
63de5640b74f1247f799352474f31b745187dacc.\build.ps1passed. Shared, CLI, WinNode CLI, SetupEngine, and WinUI built successfully. 46 Markdown files validated.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restorepassed: 3,819 passed, 32 skipped, 0 failed.dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restorepassed: 1,025 passed, 0 failed.netsh.execaptured dynamic TCP port ranges. The isolated job rerun passed.git diff --checkpassed.Full local Tray validation is blocked by a known host testhost hang. The exact full Tray command was stopped after 24 minutes without a test result. Focused changed-path Tray tests pass, and hosted CI passed the full test job.
Real behavior proof
Current-head computer-use proof on Windows x64 used an isolated Debug build:
Automated current-tree proof covers states that are unsafe to force on the validation host:
PreflightWsl_FailsTerminalWhenVirtualizationDisabledInFirmwareandPreflightWsl_VirtualizationFailureBlocksWhenLocalAiIsDisabledprove disabled virtualization blocks both Local AI and non-Local-AI local setup with actionable platform guidancePreflightWsl_UninitializedPlatformIsInstallable,EnsureWslPlatform_InitializesPlatformAndReinspectsReadiness, andEnsureWslPlatform_RequiresRestartWhenInitializationIsStillPendingprove optional-component recovery and reboot guidanceEnsureWslPlatform_PropagatesElevationCancellationWithoutReinspectionandEnsureWslPlatform_ElevationCancellationIsNotRetriedByPipelineprove cancellation remains one-shotEnsureWslPlatform_LeavesReadyWslUnchangedproves ready WSL does not invoke the installerWslViabilityProbe_RefreshesCompletedInspectionWithoutRecreatingOwnerandWslViabilityProbe_RefreshSharesInFlightInspectionThenStartsOneNewInspectionprove deterministic refresh and in-flight sharingExistingConfigDetector_TreatsUninitializedWslAsNoDistroand focused Welcome contracts preserve existing gateway paths and prevent duplicate WSL ownershipLive disabled-virtualization and optional-component mutation proof is not verified. Changing firmware virtualization or Windows optional components is unsafe on this validation host and can require a reboot.
Reviews
Rubber-duck review found no blocking or non-blocking issues.
Structured autoreview reported one proposed finding that the blocking dialog omitted remediation. Rejected after source verification:
WslViabilityResult.Descriptionalready concatenatesSummaryandRemediation, and the dialog displaysDescription. No actionable autoreview finding remains.