Repository navigation
fix(local-ai): resolve physical CUDA and setup log paths - #1670
Conversation
|
🦞👀 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: needs changes before merge. Reviewed October 7, 2026, 3:37 AM ET / 07:37 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR compares physical CUDA runtime paths, resolves existing setup logs through Windows handles, and preserves separate mapping for native Gateway paths that do not yet exist. Merge readiness⛔ Needs changes before merge - 1 item remains The fix remains useful, and the previous prospective-path regression is resolved. No blocking code defect was found, but the repository-required native validation remains explicitly blocked. Priority: P2 Review scores
Verification
How this fits togetherLocal AI setup checks the CUDA library loaded by the managed inference process against its installed runtime. Setup diagnostics also translate Companion-visible log paths for Explorer, while native Gateway setup needs prospective paths before creating files. flowchart TD
A[Installation receipt] --> C[Resolve existing physical paths]
B[Loaded CUDA library] --> C
C --> D[Check runtime containment]
D --> E[GPU verification result]
F[Setup log path] --> C
C --> G[Explorer log target]
H[Prospective Gateway paths] --> I[Preserve package mapping]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep physical-path resolution shared while maintaining distinct owners for existing logs and prospective Gateway data paths. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the mismatch when a logical MSIX receipt path and physical process-module path name the same runtime. Packaged NVIDIA reproduction was not executed during this read-only review. Is this the best way to solve the issue? Yes, resolving existing objects before comparison is narrower than guessing redirected locations or weakening containment, and the separate mapper preserves prospective setup behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5a8830e6bc4c. LabelsLabel changes:
Label 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 (1 earlier review cycle)
|
Summary
Fix the Get Started failure
verify-local-ai-gpu-load: llama-server loaded CUDA from outside the managed runtime directoryand the setup failure page's nonexistent log link.LogFileLauncher's package-identity-basedLocalCachepath guess with resolution of the actual existing log file/directory. Package identity does not establish where a write landed.NativeGatewayDataPathMapper, independently of existing-log resolution. Cover missing targets and existing-profile mappings.OpenClaw.Shared.IO.WindowsExistingPathResolver, retaining the Local AI launch wrapper and its behavior. Receipt paths remain logical. External CUDA paths and resolution failures still fail closed.At investigation start, checked main
5a8830e6and Pedro's Local AI PRs; no matching fix was present. This PR is now merged at3f91a30c801f8937a767f8198b320884d09c1933.Required proof pools
windows-wsl-dgx-blackwell: Local AI GPU-load verification path changed.windows-winui-interactive: setup failure log-link target changed.Validation
git diff --check: passed.3f91a30c801f8937a767f8198b320884d09c1933:./build.ps1: passed (Shared, CLI, WinNode CLI, SetupEngine, WinUI ARM64).dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: 4,260 passed, 36 skipped, 0 failed.dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: 3,996 passed, 0 skipped, 0 failed.OPENCLAW_REPO_ROOTset. Skips are opt-in or unavailable native/GPU dependencies, not silently passed proofs.pre-openclaw-windows-app-e2e-2026-09-30snapshot first. Initial build and Shared passed; Tray exposed absent system ARM64 VC++ DLLs (ONNX loader error 126). Installed Microsoft's ARM64 VC++ 14.51.36247.0 through official WinGet hash, Authenticode publisher, and restricted SYSTEM staging checks. The failing ONNX test passed, then all three required commands were rerun and passed. The successful rerun used the corrected guest, not a second clean-snapshot restore.openclaw-windows-validation-20261007-014338.log; focused log:local-ai-1670-focused.log. Retained locally under the task proof directory.cbx_aad66ed3ed29(swift-hermit), missing .NET/Windows SDK/WebView2 and WinGet. Build run, prerequisite run. Lease released. Parallels supersedes that local closeout blocker.cmd.exe Argumentspattern. No additional review round claimed.Real behavior proof
550b31c4(37 ms) and local Parallels at merged3f91a30c(52 ms). PR-head CI and required native closeout are green.5ba6a33aby restoring its exact legacy mapping under the native setup owner; added missing state/config/workspace and existing-profile coverage plus a source boundary guard.