Repository navigation
fix(setup): ignore packaged toast activation argument - #1604
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 2, 2026, 8:04 AM ET / 12:04 UTC (Revision 3). ClawSweeper reviewWhat this changesThe PR removes Windows’ packaged toast activation argument before setup parses startup arguments and adds manifest-bound, case-insensitive regression coverage. Merge readiness⛔ Needs changes before merge - 1 item remains The fix remains necessary on main, and no introduced correctness defect was found. The documented proof-pool blockers address the earlier request for explicit blocker reporting; required full Windows validation remains unverified. Priority: P0 Review scores
Verification
How this fits togetherWindows can start the packaged Companion through its toast activator. The tray filters process arguments before passing setup options to the hosted onboarding window’s strict parser. flowchart LR
A[Windows toast activation] --> B[Tray startup arguments]
B --> C[Host argument filter]
C --> D[Strict setup parser]
D --> E[Setup window]
D --> F[Argument error page]
Before merge
Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep tray-owned activation tokens out of setup parsing while preserving strict rejection of unknown setup options. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the failure path: packaged toast cold-start supplies -ToastActivated, an incomplete profile opens hosted setup, and main’s parser rejects the unfiltered token. Windows runtime reproduction was not performed. Is this the best way to solve the issue? Yes. Consuming the manifest-owned token in the existing tray argument filter is a narrow repair that preserves setup’s strict parser and avoids a competing startup path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9ab23fcd2d46. 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
History |
|
@clawsweeper re-review |
|
🦞🧹 Reason: re-review requires an open issue or PR. |
Summary
-ToastActivatedsentinel before tray startup arguments reach the setup parserRoot cause and introduction
The regression was introduced on 2026-09-11 by #1328 (
feat: add Microsoft Store MSIX packaging), merge commitbd9ce43b4d9c63fa90196a6a33b1c1be409850b2.That PR added
Arguments="-ToastActivated"to the packaged COM toast activator insrc/OpenClaw.Tray.WinUI/Package.appxmanifest, but did not add that host-owned sentinel toSetupWindowArgumentProjection. On a first-run or incomplete install, the tray opened hosted setup and forwarded the token intoSetupWindowCommandLine, whose strict parser correctly rejected the single-dash positional token. The result was the fatalInvalid setup arguments: Unexpected argument '-ToastActivated'.screen.The affected
v2026.9.5-alpha.84release points to commitd090a8110fa3f8b9a4c2e09a3366570b7fb027f4, which contains that mismatch.This remained latent through successful Store/MSIX use because it requires two conditions at once: Windows must cold-start the packaged COM toast activator (ordinary package launch does not supply
-ToastActivated), and the profile must still require hosted setup. Configured profiles skipSetupWindow, while ordinary first launches have no toast sentinel. Existing tests asserted the manifest registration and setup projection independently, but had no cross-boundary case proving that the manifest-owned activation token is consumed before strict setup parsing.Ownership and invariant
SetupWindowArgumentProjectionconsumes the packaged tray-host activation sentinel.Required proof pools
windows-clean-installer-upgrade: the reported regression occurs on first launch of an installed MSIX.windows-winui-interactive: current-head setup must visibly open without the fatal argument error.Validation
dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~SetupWindowArgumentProjectionTests- passed, 30/30 at headcf83bb4d..agents/skills/autoreview/scripts/autoreview --mode local --stream-engine-output- clean after the manifest-bound test update, no accepted/actionable findings; correctness confidence 0.95.Tray, setup, and integration tests,UI, functional, and accessibility tests,Setup and connect E2E, security, fast validation, proof-pool contracts, andCI Gateare green../build.ps1, Shared tests, and Tray tests: Not verified locally. Parallels could not boot because the host disk needs 9,973 MB more free space. Azure Crabbox then rejected spot capacity because the subscription has a 3-core low-priority quota and rejected every attempted on-demand Windows SKU ineastus, including the quota-compatibleStandard_D2ads_v6andStandard_B2ms, for capacity.Real behavior proof
Project_RemovesPackagedToastActivationArgumentreads the actualcom:ExeServer/@Argumentsvalue fromPackage.appxmanifest, projectsOpenClaw.Tray.WinUI.exe <manifest-argument> --config=custom.json, and verifies that only the valid setup argument remains. This closes the cross-boundary coverage gap that allowed feat: add Microsoft Store MSIX packaging #1328 to ship.Review notes
Rubber-duck/autoreview found no actionable defects. The fix remains at the tray-to-setup argument ownership boundary rather than weakening
SetupWindowCommandLinevalidation.