fix(setup): recover uninitialized WSL automatically - #1202
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7fa07d03-b4a0-4474-b9f2-2300ddb1b3e1
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 21, 2026, 7:41 PM ET / 23:41 UTC. ClawSweeper reviewWhat this changesThe PR recognizes uninitialized WSL optional-component errors during setup and existing-install inspection, then invokes the existing elevated installer and rechecks readiness. Merge readinessKeep open for normal collaborator and maintainer review. The narrow change routes recognized uninitialized-WSL diagnostics into the existing recovery step, preserves fail-closed handling for unknown failures, and has focused coverage for ready, recovery, reboot, and cancellation paths; no blocking defect was found. Priority: P0 Review scores
Verification
How this fits togetherThe Windows onboarding pipeline checks WSL before it downloads Local AI or creates OpenClaw's managed WSL gateway. Its viability result determines whether setup proceeds, stops with diagnostics, or runs the existing elevated WSL-platform recovery step. flowchart TD
A[User starts local setup] --> B[Inspect existing WSL gateway]
B --> C[Check WSL version and status]
C --> D{Platform ready?}
D -->|Yes| E[Continue setup]
D -->|Known uninitialized state| F[Elevated WSL platform install]
F --> G[Reinspect WSL readiness]
G -->|Ready| E
G -->|Restart required| H[Show reboot recovery]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused recovery after the pending checks finish, retaining the known-signature allowlist, post-install reinspection, and terminal reboot guidance. Do we have a high-confidence way to reproduce the issue? Yes, at source level: a nonzero Is this the best way to solve the issue? Yes. Reusing the existing elevated installer and viability seam is narrower and safer than adding a parallel setup path, while preserving terminal handling for unknown diagnostics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ccd64bbb7d68. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
wsl.exe --install --no-distributionrecovery step instead of stopping at the Welcome page with a manualwsl --list --quietinstructionValidation
./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 --no-restore: PASS, 3,812 passed, 32 skipped, 0 faileddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: PASS, 2,703 passed, 0 faileddotnet test ./tests/OpenClaw.SetupEngine.Tests/OpenClaw.SetupEngine.Tests.csproj --no-restore: PASS, 956 passed, 0 failedgit diff --check: PASSReal behavior proof
a9ad12ccScope
This change is limited to missing or uninitialized WSL recovery. It does not change Local AI qualification or hardware-virtualization readiness behavior.