Repository navigation
fix(setup): ignore COM embedding argument - #1625
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 3, 2026, 2:19 PM ET / 18:19 UTC. ClawSweeper reviewWhat this changesFilter Windows’ case-insensitive COM embedding argument before opening setup, with regression coverage that preserves valid setup options. Merge readiness✅ Ready for maintainer review This PR remains necessary: current main handles toast activation but still rejects the COM embedding sentinel. The focused patch preserves strict setup validation, has relevant Windows runtime proof, and introduces no actionable defect. Priority: P0 Review scores
Verification
How this fits togetherThe tray app projects its startup arguments before passing them to the hosted setup window. Windows activation tokens belong to the tray host, while setup validates configuration options and reports malformed input. flowchart LR
A[Windows activation] --> B[Tray startup arguments]
B --> C[Host argument filter]
C --> D[Strict setup parser]
D --> E[Normal setup window]
D --> F[Configuration error]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep Windows activation filtering at the tray-to-setup boundary while retaining strict rejection of malformed setup input. Do we have a high-confidence way to reproduce the issue? Yes, from source: main forwards -Embedding through the hosted setup projection, and the strict parser rejects it. This review did not execute a failing current-main launch. Is this the best way to solve the issue? Yes. Extending the existing host-token filter is the narrow repair and avoids weakening setup validation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9903fd81f90. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Summary
-Embeddingbefore setup CLI parsingThis extends the packaged-activation boundary introduced in #1604. Microsoft Store COM startup can supply
-Embedding; without filtering it, first launch reaches the strict setup parser and shows an unrecognized-argument error.Required proof pools
windows-11-arm64: exact-head native ARM64 build, tests, and launch were exercised in the prepared Parallels Windows 11 guest.windows-winui-interactive: current-head setup window was launched with the injected-Embeddingsentinel on an interactive Windows desktop.Validation
./build.ps1: passed on Windows 11 ARM64 atffa6ca9dafff7b73474ca062260e06f6827d7c37dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed, 4,222 passed, 36 opt-in integration tests skipped, 0 faileddotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: passed, 3,893 passed, 0 skipped, 0 faileddotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~SetupWindowArgumentProjectionTests: passed, 32 passed, 0 failedParallels note: the prepared ARM64 snapshot was missing the system VC++ runtime required by the existing native speech load probe. Installed Microsoft's signed
Microsoft.VCRedist.2015+.arm6414.51.36247.0 through the controller's manifest-hash, Authenticode, ACL-restricted staging path, proved the previously failing load probe 1/1, then reran the full required sequence above.Real behavior proof
Current-head interactive proof in the prepared Parallels Windows 11 ARM64 guest:
OpenClaw.Tray.WinUI.exe -Embeddingwith isolated tray data.OpenClaw.Tray.WinUI.exe.OpenClaw Setupwith the normal setup UI visible.Copied live process evidence:
Not verified / blocked: Microsoft Store-signed package activation itself cannot be reproduced from an unpublished PR head. The current-head proof injects the exact Windows-owned COM sentinel at the executable boundary covered by this change.