Skip to content

fix(setup): ignore COM embedding argument - #1625

Merged
RomneyDa merged 1 commit into
mainfrom
openclaw/fix-msix-installation-error-and-release-alpha
Oct 3, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
openclaw/fix-msix-installation-error-and-release-alpha

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 3, 2026

Copy link
Copy Markdown
Member

Summary

  • consume the Windows COM activation sentinel -Embedding before setup CLI parsing
  • preserve strict rejection for all other unknown arguments
  • add case-insensitive regression coverage matching Windows argument handling

This 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 -Embedding sentinel on an interactive Windows desktop.

Validation

  • ./build.ps1: passed on Windows 11 ARM64 at ffa6ca9dafff7b73474ca062260e06f6827d7c37
  • dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restore: passed, 4,222 passed, 36 opt-in integration tests skipped, 0 failed
  • dotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore: passed, 3,893 passed, 0 skipped, 0 failed
  • dotnet test tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restore --filter FullyQualifiedName~SetupWindowArgumentProjectionTests: passed, 32 passed, 0 failed
  • Rubber-duck/autoreview of the frozen two-file diff: no actionable findings, 0.98 confidence

Parallels 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+.arm64 14.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:

  1. Launched OpenClaw.Tray.WinUI.exe -Embedding with isolated tray data.
  2. Process stayed running as OpenClaw.Tray.WinUI.exe.
  3. The foreground window title was OpenClaw Setup with the normal setup UI visible.
  4. No unrecognized setup argument dialog appeared.

Copied live process evidence:

Id              : 7680
ProcessName     : OpenClaw.Tray.WinUI
MainWindowTitle : OpenClaw Setup

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.

@clawsweeper

clawsweeper Bot commented Oct 3, 2026 •

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@RomneyDa RomneyDa added the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 3, 2026
@clawsweeper clawsweeper Bot added P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 3, 2026
@clawsweeper

clawsweeper Bot commented Oct 3, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed October 3, 2026, 2:19 PM ET / 18:19 UTC.

ClawSweeper review

What this changes

Filter 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
Reviewed head: ffa6ca9dafff7b73474ca062260e06f6827d7c37

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with relevant native runtime evidence and reported full validation; no blocking correctness or security finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.
Evidence reviewed 6 items Pinned introduced change: The pinned delta adds only -Embedding to the existing case-insensitive host flag set and adds two regression cases. Production growth is one line; test growth is thirteen lines.
Current main still needs the fix: The fetched main projection filters -ToastActivated and restart flags but does not filter -Embedding. Unrecognized tokens are forwarded unchanged, so the central behavior is not already implemented.
Production caller and rejection boundary: WindowManager supplies projected startup arguments to SetupWindow. SetupWindow invokes the strict parser and displays a configuration error on failure; the parser rejects single-dash positional tokens. The patch leaves these owners and validation rules intact.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Production and test growth production +1, tests +13; 0 removed The small production addition directly addresses a host activation token, with two case-variant regression cases.

Technical review

Best 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.

Labels

Label changes:

  • add P0: The reported COM startup path can block first-run setup with a fatal argument error and no in-product recovery.
  • add proof: sufficient: Contributor real behavior proof is sufficient. Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.

Label justifications:

  • P0: The reported COM startup path can block first-run setup with a fatal argument error and no in-product recovery.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. Current-head Windows 11 ARM64 proof exercises the production tray executable with -Embedding and reports normal setup with copied live window diagnostics. This directly covers the changed argument projection; Store-signed activation remains explicitly unverified. No stored-data contract changes.

Evidence

What I checked:

  • Pinned introduced change: The pinned delta adds only -Embedding to the existing case-insensitive host flag set and adds two regression cases. Production growth is one line; test growth is thirteen lines. (src/OpenClaw.Tray.WinUI/Services/SetupWindowArgumentProjection.cs:8, ffa6ca9dafff)
  • Current main still needs the fix: The fetched main projection filters -ToastActivated and restart flags but does not filter -Embedding. Unrecognized tokens are forwarded unchanged, so the central behavior is not already implemented. (src/OpenClaw.Tray.WinUI/Services/SetupWindowArgumentProjection.cs:8, f9903fd81f90)
  • Production caller and rejection boundary: WindowManager supplies projected startup arguments to SetupWindow. SetupWindow invokes the strict parser and displays a configuration error on failure; the parser rejects single-dash positional tokens. The patch leaves these owners and validation rules intact. (src/OpenClaw.Tray.WinUI/Services/WindowManager.cs:879, ffa6ca9dafff)
  • Related merged fix is complementary: GitHub confirms fix(setup): ignore packaged toast activation argument #1604 (fix(setup): ignore packaged toast activation argument) merged as 407bc77. Its committed patch adds -ToastActivated, not -Embedding, so it does not supersede this PR. (src/OpenClaw.Tray.WinUI/Services/SetupWindowArgumentProjection.cs:9, 407bc7728826)
  • Current-head real behavior and validation: The captured PR body reports an isolated Windows 11 ARM64 launch of OpenClaw.Tray.WinUI.exe -Embedding at the pinned head. Copied live output identifies process 7680 and the OpenClaw Setup window; the observed normal setup UI had no unrecognized-argument error. The body reports a successful full build, 4,222 Shared tests, 3,893 Tray tests, and 32 focused projection tests. Store-signed activation itself is explicitly unverified. These are contributor-supplied results; this read-only review did not execute builds, tests, or bundled review helpers. (ffa6ca9dafff)
  • Feature-history routing: File history identifies Dallin Romney's prior merged toast fix and Barbara Kudiess's onboarding work. Parser history identifies Caleb Eden's strict configuration validation change. Some deeper local blame/history and release-blob reads failed because historical objects could not be retrieved; current source and the pinned diff were successfully inspected. (src/OpenClaw.SetupEngine/SetupArgumentParser.cs:18, a286e43d43ea)

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Barbara Kudiess: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Caleb Eden: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@RomneyDa
RomneyDa merged commit 7127c16 into main Oct 3, 2026
30 of 31 checks passed
@RomneyDa
RomneyDa deleted the openclaw/fix-msix-installation-error-and-release-alpha branch October 3, 2026 18:34
@RomneyDa RomneyDa removed the status: 🚢 actively landing A maintainer or agent is actively driving this item through implementation, validation, or merge. label Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant