Repository navigation
fix(local-ai): stage VC runtime beside llama server - #1596
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 maintainer review before merge. Reviewed October 2, 2026, 2:36 AM ET / 06:36 UTC (Revision 4). ClawSweeper reviewWhat this changesPackage Visual C++ runtime DLLs and stage them beside the downloaded Local AI server during installation and repair, with a Windows system-runtime fallback for unpackaged builds. Merge readiness✅ Ready for maintainer review The prior ARM64 fallback and MSIX fixture findings are resolved. No remaining actionable defect was found, and this distinct Companion fix is still needed on main. Priority: P2 Review scores
Verification
How this fits togetherThe Windows Companion downloads and manages a native llama-server for Local AI. SetupEngine stages its dependencies and checks the executable before the installation is reused or started. flowchart TD
A[Packaged runtime DLLs] --> D[Select complete runtime source]
B[App directory DLLs] --> D
C[Windows system DLLs] --> D
D --> E[Stage beside Local AI server]
F[New or existing installation] --> E
E --> G[Check files and native version]
G --> H[Accept or report installation failure]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep dependency staging within SetupEngine, preserve passive inspection and existing receipts, and retain architecture-correct unpackaged fallback. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the missing app-local dependency path for downloaded llama-server outside the MSIX package graph; the supplied Windows proof exercises native loading after staging. This reviewer did not execute a failing main build. Is this the best way to solve the issue? Yes, reusing existing architecture-specific runtime packaging and adding a focused staging owner addresses the dependency boundary without changing receipts or introducing another installer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 85f66247850e. 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)
|
|
@clawsweeper re-review Current-head Windows validation and ARM64 MSIX plus native llama-server proof are now in the PR body. The existing-install reconciliation evidence and proof-pool declaration are also updated. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review The unpackaged ARM64 finding is fixed at |
|
🦞👀 Re-review progress:
|
Summary
This is the Companion SetupEngine counterpart to openclaw/openclaw#163093. The Gateway fix does not cover the llama-server downloaded and launched by the Windows Companion.
Required proof pools
windows-11-arm64: completed on isolated Windows 11 ARM64 at heada8666a1c. Built the Store MSIX, inspected its nested runtime payload, and launched the pinned ARM64 llama-server with those packaged DLLs staged app-local.windows-clean-installer-upgrade: not selected. This does not change app install, upgrade, repair, or uninstall behavior. Existing Local AI component repair is covered by the current-head reconciliation test below, including receipt preservation.Validation
Isolated Windows 11 ARM64, head
a8666a1c:./build.ps1: passedOpenClaw.Shared.Tests: 4,221 passed, 36 skipped, 0 failedOpenClaw.Tray.Tests: 3,862 passed, 0 failedSystem32runtime through the production constructorgit diff --check: passedThe first Tray run exposed a missing Microsoft ARM64 VC++ redistributable in the VM through the pre-existing ONNX load test. After installing that prerequisite, the failed test passed and every subsequent full required validation run was green.
Real behavior proof
Current-head Windows 11 ARM64 proof:
OpenClaw-arm64.msixwithBuild-StoreMsix.ps1froma8666a1c.tools/local-ai-vc-runtime/msvcp140.dlltools/local-ai-vc-runtime/vcruntime140.dlltools/local-ai-vc-runtime/vcruntime140_1.dllllama-server.exe --versionsuccessfully. It exited 0 and reported:The ARM VM has no CUDA device, so llama emitted its expected CUDA initialization diagnostic before returning the version.
Existing-install repair is covered by
Reconciler_StagesVcRuntimeForExistingInstall_WithoutMutatingReceipt: it exercises the production staging owner against an existing managed runtime, verifies all three files are copied before inspection, and verifies the receipt is unchanged.ReadOnlyInspection_DoesNotStageVcRuntimeseparately protects the passive inspection boundary.The unpackaged ARM64 compatibility path is covered twice: an injected architecture-matched system directory test verifies source selection, and a Windows-only test invokes the production constructor against
Environment.SystemDirectoryand byte-compares all three staged DLLs.