Repository navigation
Add non-destructive Local AI recovery - #1357
shanselman wants to merge 9 commits into
Conversation
Route retry through an owner-bound recovery pipeline, preserve existing WSL gateways, and fall back to provisioning only when managed gateway absence is proven. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 8, 2026, 11:53 PM ET / September 9, 2026, 03:53 UTC (Revision 11). ClawSweeper reviewWhat this changesRoutes Local AI retry through a guarded recovery flow that preserves the existing WSL gateway and coordinates provider changes with saved endpoint receipts. Merge readiness⛔ Blocked before merge - 4 items remain This PR remains necessary: current main and the latest release still route Retry into full onboarding. The earlier rollback findings are addressed, and no new blocking code defect was found. Native recovery validation remains incomplete. Priority: P0 Review scores
Verification
How this fits togetherThe Windows companion runs Local AI on Windows and connects it to a gateway inside WSL. Recovery starts from Local AI settings, checks the existing installation, and repairs inference and gateway routing. flowchart TD
A[Local AI retry] --> B[Check gateway ownership]
B -->|Installation absent| C[Normal setup]
B -->|Ownership unclear| D[Connection settings]
B -->|Managed installation verified| E[Repair and verify Local AI]
E --> F[Update provider and endpoint receipt]
F --> G[Restart existing gateway]
Decision needed
Why: The implementation has substantial automated coverage, but its author explicitly reports that hardware capacity and firewall permissions prevented the real recovery transaction; custom proof capacity is maintainer-scheduled. Before merge
Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep recovery non-destructive, preserve gateway and provider state, and establish native upgrade proof with an actionable in-product recovery route for blocked installations. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main routes Local AI Retry into onboarding, whose documented local-install path replaces the existing app-owned WSL gateway. No runtime reproduction was executed in this read-only review. Is this the best way to solve the issue? Yes, the dedicated recovery pipeline is a focused way to avoid destructive provisioning while reusing existing setup owners; native evidence is still needed to establish the complete recovery outcome. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against eef8dcd63d58. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (10 earlier review cycles; latest 8 shown)
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper please re-review current head 9dd9b23. The legacy managed-distro resolver path is now normalized in both construction and revalidation, with direct regression coverage. |
|
🦞👀 I queued a lightweight read-only assist pass. It will post a separate answer comment and will not edit the durable ClawSweeper review comment or trigger close, merge, repair, label, or branch changes. Request: please re-review current head 9dd9b23. The legacy managed-distro resolver path is now normalized in both construction and revalidation, with direct regression coverage. |
|
ClawSweeper assist: Evidence:
Suggested next action: Comment Source: #1357 (comment) |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Current head d31fec3 is code-review clean. ClawSweeper reports no actionable findings; local build and required Shared, Tray, and SetupEngine suites pass. This draft is now paused on the declared native proof pools (Windows WinUI, existing WSL gateway recovery, and NVIDIA inference). Hosted gateway E2E remains blocked by the recurring external CLI installer failure, not this diff. |
|
Superseded by #1384 (fix(local-ai): add non-destructive recovery), the current-main transplant. The replacement preserves this reviewed recovery design and history without force-pushing the stale contributor branch. |
Problem
Supersedes #1342 (Add recovery flow for local AI setup) and fixes #1307 while preserving @karkarl's dedicated recovery direction.
Local AI Retry setup or download currently routes into full onboarding. The default setup pipeline can unregister and recreate the existing app-owned WSL gateway, then leave Local AI without a usable retry path.
Fix
Required proof pools
windows-wsl-dgx-blackwell: not complete. The current host exposes an RTX 4080 SUPER in both Windows and WSL, but its 16 GiB VRAM is below the approximately 22.2 GiB minimum required by the smallest current new-install catalog recipe.windows-wsl-gateway-e2e: automated current-head Setup and connect E2E passed in workflow run 34182468367. A real existing-gateway Local AI recovery transaction remains blocked by the native proof constraints below.windows-winui-interactive: not complete. On this host the real hardware probe correctly marks current Local AI installation unavailable, so the enabled recovery review cannot be captured without a catalog-capable GPU.Validation
Current head:
aec64355..\build.ps1: passeddotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,943 passed, 32 skippeddotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,868 passeddotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: 1,119 passed34182468367: Core and CLI, Tray/setup/integration, UI/functional/accessibility, Setup and connect E2E, network recovery E2E, revocation recovery E2E, proof contracts, and CI Gate passedReal behavior proof
Automated current-head proof establishes:
Additional current-host proof:
b10655CUDA 13.3 x64 llama-server archives matched their catalog SHA-256 digests127.0.0.1Not verified / blocked:
networkingMode=Mirroredthrough an approvedwsl --shutdown; the active Hyper-V firewall policy defaults inbound WSL traffic to Block and has no TCP allowance for the Local AI portAccess is denied); no rule or llama-server process was left behindOwnership notes
WindowManager.ShowLocalAiSetupAsyncchooses provision/recovery/blocked routing;BuildLocalAiRecoveryStepsowns the owner-bound non-destructive pipelineApp.xaml.csremains a one-line command forwarder; setup-window orchestration remains inWindowManagerSecurity impact
No new credentials or permissions. Recovery is fail-closed on ambiguous ownership and binds all WSL/gateway changes to one revalidated registry owner, distro, loopback endpoint, and retained managed-provider receipt.