Repository navigation
Description
Inno-to-Store MSIX migration
Problem
Users may install the Store MSIX while the Inno version of OpenClaw Companion is still installed. The packages share settings, credentials, identity, ports, and the managed WSL gateway, so they cannot safely run as separate production copies.
In this issue, Inno means the current .exe-installed, non-MSIX version of OpenClaw Companion.
The current Inno uninstall path may also remove the managed WSL gateway and its contained Node.js runtime.
What migration preserves
Migration preserves everything needed for the current Windows user to continue using OpenClaw in MSIX:
- Application settings and Local AI configuration
- Credentials, identity, and approvals
- Startup preference
- Saved gateway connection and management information
- The existing managed WSL gateway and its contained Node.js runtime
The WSL gateway remains in place and is adopted by MSIX rather than copied or recreated. Application binaries and Windows-installed Node.js are not migrated or removed.
Proposed direction
Use a user-directed handoff with an automatic migration after confirmation:
- Inno shows an Install Store version and migrate action that explains that opening the Store version will migrate the user's OpenClaw setup.
- When selected, Inno creates a same-user-protected migration-intent record before opening the Store listing.
- On launch, MSIX validates the intent and starts migration automatically. If no valid intent exists, MSIX asks the user to Migrate or choose Not now.
- After valid intent or confirmation, MSIX requests Inno to exit, verifies that it stopped, and automatically imports and validates the protected migration state.
- MSIX adopts the existing WSL gateway rather than replacing it.
- After migration succeeds, both apps keep normal production features inactive and direct the user to uninstall Inno through Windows Settings.
- The Inno uninstaller preserves the migrated state and gateway.
- MSIX verifies that Inno is gone, applies the migrated startup preference, and starts normally.
The migration-intent record remains available for safe retries and is cleaned up after migration finalization. If migration fails, Inno remains installed and the user can retry without losing recoverable state. Only one production Companion may be active during the handoff.
Implementation plan
Incomplete migration behavior must remain disabled until the full prepare, import, validation, uninstall guidance, and recovery path has been validated.
Phase 1: Inno migration foundation
- Define and version the migration-state contract.
- Create a same-user-protected migration-intent record before Inno opens the Store listing.
- Implement the Inno-side operation required to expose or export the migration state.
- Protect sensitive data so only the same Windows user can use it.
- Define a completed-migration marker that is recorded only after MSIX successfully imports and validates the state.
- Store the state and marker outside paths removed by Inno uninstall.
- With a valid marker, prevent normal Inno operation and preserve the state and gateway during uninstall.
- Without a valid marker, keep the existing uninstall behavior.
Phase 2: MSIX migration path, disabled
- Detect a supported Inno installation and stop it gracefully before migration.
- Import and validate the protected state while Inno remains installed.
- Adopt the existing managed WSL gateway without creating a replacement.
- Preserve, but do not enable, the MSIX startup preference until Inno is removed.
- Retain recoverable state after failure and record the completion marker only after successful validation.
- Clean up temporary migration data without removing the marker needed by Inno uninstall.
Validate this complete path while it remains disabled for users.
Phase 3: Migration UI and rollout
- Add the Inno Store-install action and the MSIX migration experience.
- Start migration automatically after validating Inno-recorded intent; otherwise require confirmation in MSIX.
- Add Windows Settings uninstall guidance after successful migration.
- Handle normal launch, auto-start, and
openclaw:activation consistently. - Enable migration only for supported Inno versions and matching architectures.
Migration UI states
The MSIX UI must cover:
- Migration available: If no valid Inno-recorded intent exists, explain that Inno was detected and offer Migrate to Store version and Not now actions.
- Migration in progress: Show a spinner and status message. Do not show a progress bar unless the migration operation provides meaningful live progress.
- Migration failed: Explain that Inno remains available and offer a Retry action.
- Migration complete: Explain that the setup was migrated successfully and provide an Open Installed apps action so the user can uninstall Inno.
- Inno removed: Dismiss the migration UI and enable normal MSIX operation.
Suggested completion copy:
Your OpenClaw setup was migrated successfully
To finish switching to the Store version, uninstall the previous Inno app.
Open Installed apps
Open implementation questions
- Can MSIX directly access the existing Inno settings and credentials, or must Inno export them to a protected migration file first?
- How will existing users receive the minimum migration-capable Inno release?
- How will MSIX adopt ownership of the existing WSL gateway without recreating it or losing the ability to manage and remove it?
Release validation
Validate signed x64 and ARM64 packages:
- Inno opens the correct Store listing and explains the migration.
- Valid Inno-recorded intent starts migration automatically in MSIX.
- Without valid intent, MSIX requires confirmation; Not now leaves Inno unchanged and MSIX inactive.
- MSIX migrates only after valid intent or confirmation and while Inno is not running.
- Migration preserves user state, the managed WSL gateway, and its contained Node.js.
- After migration succeeds, neither app returns to normal operation until Inno is removed.
- After Inno removal, MSIX applies the startup preference and starts with the migrated state.
- Failed, cancelled, or interrupted migration can be retried without losing recoverable state.
- Unsupported versions and architectures are blocked with clear guidance.
- Remote-gateway configurations do not require local WSL or Node.js.
- Auto-start and
openclaw:activation work after migration. - Windows Node.js remains untouched.
Support is limited to x64-to-x64 and ARM64-to-ARM64 migration.
Out of scope
- Running Inno and MSIX simultaneously
- MSIX-to-Inno migration
- Automatic Inno update or uninstall
- Backup, restore, or rollback
- Runtime-type migration
- Cross-user or cross-architecture migration
- Automatic removal of Windows Node.js
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Sep 8, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed September 17, 2026, 5:20 PM ET / 21:20 UTC.
Summary
The migration remains necessary. Current main provides MSIX packaging and startup support, but explicitly leaves the validated handoff and migration-aware uninstall preservation unimplemented. The revised discussion meaningfully narrows preservation to successful migration rather than changing every uninstall.
Reproducibility: not applicable. as a new migration capability. Source confirms the existing destructive silent-uninstall path and missing handoff, but no Windows migration or destructive reproduction was executed.
Root-cause cluster
Relationship:
canonicalCanonical: #1374
Summary: This issue owns migration; packaging and Store distribution are related dependencies with explicitly separate scope.
Members:
adjacent_distinct: feat: add Microsoft Store MSIX packaging #1328 - Merged packaging and startup support explicitly leave migration unresolved.adjacent_distinct: chore(ci): build MSIX artifacts and publish Store alpha assets #1403 - Merged CI submission-asset work explicitly excludes migration.adjacent_distinct: Enable Microsoft Store distribution (lift the MSIX publish pause) #1375 - The open distribution decision excludes this migration lifecycle.Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.
Ways to help us reproduce this
Maintainer decision needed
Why: This chooses permanent uninstall and recovery semantics across two packages; existing packaging approval does not resolve that product and security boundary.
Next step
Obtain product and security approval before splitting the cross-installer lifecycle into staged PRs; this broad, security-sensitive feature is outside automatic repair intake.
Security
Needs attention: Credential and approval migration requires an explicit protection and authorization design before implementation.
Review details
Best possible solution:
Provide a staged migration wizard with protected, validated state transfer, conditional uninstall preservation, retry recovery, and startup activation only after safe Inno removal.
Do we have a high-confidence way to reproduce the issue?
Not applicable as a new migration capability. Source confirms the existing destructive silent-uninstall path and missing handoff, but no Windows migration or destructive reproduction was executed.
Is this the best way to solve the issue?
Unclear until the lifecycle contract is approved. Validating state before removal is a sound direction, but marker authorization, retry behavior, minimum versions, and mutex release must be specified.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 33839971e315.
Label changes
Label justifications:
P0: The migration intersects a source-confirmed destructive uninstall path that can remove the existing managed gateway and its data.impact:data-loss: Preservation must prevent gateway unregister and generated-state deletion during the package transition.impact:security: The proposed handoff transfers credentials, device identities, and approvals through persistent migration records.Evidence reviewed
Security concerns:
The proposed intent and completion records control credential import and destructive-uninstall preservation; their validation, tamper resistance, retry lifetime, and cleanup semantics remain design questions, not established implementation defects.
Confidence: 0.94
What I checked:
DEVELOPMENT.md:383, 33839971e315)installer.iss:204, 33839971e315)scripts/Uninstall-LocalGateway.ps1:676, 33839971e315)src/OpenClaw.Tray.WinUI/App.xaml.cs:541, 33839971e315)docs/RELEASING.md:194, 33839971e315)Likely related people:
How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.docs: link MSIX coexistence gaps to the migration issue
docs: correct Inno autostart and mutex coexistence details
[-]Inno to Store MSIX: migration and coexistence (shared identity, no arbitration)[/-][+]Inno and Store MSIX coexistence: split client state, shared gateway[/+]10 remaining items
natalie-aguinaldo commentedon Sep 17, 2026
Good points. Thanks @MythiliMur! I updated the issue to make the migration scenario MSIX-driven. The main change from the backup/restore sequence you described is that we complete and validate migration while the Inno (non-MSIX) app is still installed. I propose we instruct the user to uninstall Inno after migration succeeds, to keep the working installation available if the Inno to MSIX migration fails.
[-]Inno and Store MSIX coexistence: split client state, shared gateway[/-][+]Migrate from the Inno (.exe) app to the Store MSIX[/+]fix(migration): honor Not now and never trap a migrated user
fix(migration): block startup while an unsupported source is installed
fix(migration): honor Not now and never trap a migrated user
fix(migration): block startup while an unsupported source is installed
fix(migration): honor Not now and never trap a migrated user
fix(migration): block startup while an unsupported source is installed
feat(migration): ship the Inno-to-Store migration (#1519)