Repository navigation
fix(local-ai): launch with physical MSIX paths - #1610
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: blocked before merge. Reviewed October 2, 2026, 12:52 PM ET / 16:52 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR resolves Local AI launch and recovery paths to physical Windows locations while preserving logical installation receipts. Merge readiness⛔ Blocked before merge - 3 items remain The change remains useful: pinned main still launches with logical paths and probes recovery using the receipt path. No actionable correctness defect was found, but the previously requested packaged compatibility proof and required Windows validation remain unresolved. Priority: P2 Review scores
Verification
How this fits togetherCompanion starts and monitors a managed llama-server process using installed runtime and model receipts. Its launch preset and readiness probes must identify the same files that the native process sees behind MSIX filesystem virtualization. flowchart TD
A[Installation receipts] --> B[Validate runtime and models]
B --> C[Resolve physical paths]
C --> D[Write launch preset]
D --> E[Start native AI server]
E --> F[Verify model readiness]
C --> G[Probe recovery endpoint]
F --> H[Publish managed AI endpoint]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep physical path translation at native launch and recovery boundaries, with logical receipts preserved and packaged installation compatibility verified. Do we have a high-confidence way to reproduce the issue? Unclear: source establishes the logical/native path mismatch mechanism, but the submitted evidence does not reproduce the failure or demonstrate recovery in a packaged MSIX installation. Is this the best way to solve the issue? Yes: resolving existing handles at the child-process boundary is a focused approach that preserves receipt ownership; packaged compatibility still needs verification. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 65300da42b5a. LabelsLabel changes: No label 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
History |
8ec1b90 to
de1053d
Compare
Reuse the native child-process path resolver before checking the original endpoint during rollback. Preserve logical receipts and fail closed with the existing warning on IO or access errors. Cover physical identity, unhealthy endpoints, resolution failures, absent endpoints, and cancellation. Co-authored-by: Copilot App <[email protected]>
Summary
The packaged Companion can validate files through its logical MSIX filesystem view while
llama-server.exereceives a different native child-process view. That allowed the launcher to start without finding adjacentllama-server-impl.dll. This uses the physical path returned for the already-open file or directory handle, matching the cross-package path contract already used by native Gateway launches.Required proof pools
windows-clean-installer-upgrade: packaged MSIX filesystem virtualization and an existing Local AI installation are part of the failing boundary.Validation
dotnet test tests/OpenClaw.Connection.Tests/OpenClaw.Connection.Tests.csproj --filter 'FullyQualifiedName~LocalAiPortLifecycleTests' --no-restore: 109 passed, 0 failedm7i.4xlarge, leasecbx_a6ff0e4de59e, Windows normal mode, lease released after proof./build.ps1, Shared tests and Tray tests: Not verified / blocked. Parallels needs 81.5 GB more host disk; the Crabbox stock image lacks the Windows SDK andwinget, soscripts/setup-dev.ps1cannot provision the full build prerequisitesReal behavior proof
--models-presetpathGetFinalPathNameByHandleW, so the child receives the on-disk path behind MSIX redirectionReview