Repository navigation
fix(setup): recover uninitialized WSL automatically - #1202
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 7fa07d03-b4a0-4474-b9f2-2300ddb1b3e1
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs real behavior proof before merge. Reviewed August 28, 2026, 3:37 AM ET / 07:37 UTC. ClawSweeper reviewWhat this changesThis PR recognizes uninitialized WSL optional-component failures, invokes the existing elevated WSL installer once, reinspects readiness, and gives reboot guidance when initialization is pending. Merge readinessKeep open for human approval. The current main base lacks this exact optional-component recovery, while the PR adds it with narrow classifier, reinspection, and non-retry coverage; no introduced correctness or security defect was found. The collaborator-authored PR should not be auto-closed, and exact-head CI is still running. Priority: P0 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherThe setup engine checks Windows WSL before creating OpenClaw’s app-owned gateway distro. Its result either continues setup, invokes the existing elevated recovery, requests a reboot, or stops safely with diagnostics. flowchart LR
A[Windows WSL status] --> B[WSL readiness inspection]
B --> C{Platform state}
C -->|Ready| D[Continue gateway setup]
C -->|Uninitialized| E[Elevated WSL installation]
E --> F[Readiness recheck]
F -->|Ready| D
F -->|Restart needed| G[Reboot guidance]
C -->|Blocked or unknown| H[Safe diagnostic failure]
Decision needed
Why: The branch is review-clean but collaborator-authored PRs require explicit maintainer judgment, and sequencing the adjacent onboarding change is a release-train choice. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Approve the focused recovery after the exact-head CI finishes, retaining the known-error-only classifier, one-shot elevation, post-install recheck, and terminal reboot path. Do we have a high-confidence way to reproduce the issue? Yes, from source: the pre-PR main path classifies the optional-component failure as a terminal inspection failure, while this head routes the same documented output through the existing recovery step. A live recreation was appropriately not attempted because it would change the Windows host and require a reboot. Is this the best way to solve the issue? Yes. The patch uses the existing elevated installer only for specific known WSL signals, preserves fail-closed handling for unknown failures and virtualization diagnostics, then confirms readiness before continuing. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1955282412bd. 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: 117b368d-db79-4380-bc7d-de26acc3f15b
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 117b368d-db79-4380-bc7d-de26acc3f15b
Adversarial release reviewA dual-model Opus + Codex review examined the WSL recovery change and its setup-pipeline behavior. Review result: The fixed implementation had no remaining code defect, but the review initially returned HOLD because the retry fix was local-only and the branch conflicted with Finding addressed: Current disposition: The fix is now pushed at Recommendation: READY TO MERGE with 98% merge confidence. Merge before #1203 because #1203 depends on this PR for optional-component WSL recovery. The requested Hanselman skill was unavailable in the review runtime, so the installed equivalent adversarial workflow ran the same Opus + Codex review. |
Co-authored-by: Copilot App <[email protected]>
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(setup): recover uninitialized WSL automatically 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. |
Gate fresh Local AI setup on authoritative WSL readiness while preserving the one-shot recovery and installed-runtime behavior landed in #1202.
Summary
wsl.exe --install --no-distributionrecovery step instead of stopping at the Welcome page with a manualwsl --list --quietinstructionorigin/mainwithout rebasingValidation
Current head:
48db001a4f32af7e73db5740b58d0ee98237df80.\build.ps1: PASS. Shared, CLI, WinNode CLI, SetupEngine, and WinUI built successfully; 46 Markdown files validateddotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj: PASS, 3,819 passed, 32 skipped, 0 faileddotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: PASS, 1,020 passed, 0 failedgit diff --check origin/main...HEAD: PASSpython .agents\skills\autoreview\scripts\autoreview --mode branch --base origin/main --engine codex --model gpt-5.6-sol --thinking high --stream-engine-output: PASS, clean with no accepted or actionable findings, 0.91 confidenceIPGlobalProperties.GetActiveTcpListeners()call remained active until the 5-minute blame timeout. The isolated named test reproduces the same host-level hang.testjob, win-x64 and win-arm64 builds, setup-connect E2E, network-recovery E2E, revocation-recovery E2E, CodeQL, Socket Security, and repository hygiene are green. The first setup-connect attempt hit a transient hosted-runner WSL post-install registration timeout; rerunning the failed job passed without code changes.Real behavior proof
wsl.exe --version,wsl.exe --status, andwsl.exe --list --quietall exited 0. The host reports WSL 2.9.9.0 with WSL2 as the default..\run-app-local.ps1 -NoBuild -Isolated -AllowNonMainlaunched successfully. Computer-use exercised Security notice -> Install a local gateway (WSL) -> replacement confirmation -> Set up the WSL gateway, and the app reportedLocal AI availableon the healthy WSL host.Scope
This change is limited to missing or uninitialized WSL recovery. It does not change Local AI qualification or hardware-virtualization readiness behavior. PR #1202 should land before #1203 because #1203 depends on this recovery path.