Repository navigation
Description
Summary
An existing Windows Companion installation was stranded when switching to the Microsoft Store app. The Store app refused migration with generic previous-installation validation guidance; recovering a working app required inspecting registry/binary versions, manually uninstalling the old Companion without removing gateway data, independently repairing the Store gateway, and relaunching the Companion.
This is an observed legacy-upgrade/recovery case related to #1374 (closed), not a request to weaken migration identity checks. I did not find an existing issue covering this exact failure state.
Environment
- Windows 11 Pro Insider Preview, build 26340.9577, x64.
- Store Companion:
OpenClawFoundation.OpenClaw_2026.9.511.0_x64__rfcbke2p71se2. - Store Gateway:
OpenClawFoundation.OpenClawGateway_2026.9.406.0_x64__rfcbke2p71se2, launcher commitf2f4930d858fb2030a81a97e1c47518de2f533d6, OpenClaw payload 2026.9.4. - Existing per-user Inno install under
%LOCALAPPDATA%\OpenClawTray: uninstall registration still reported 0.6.12 / Scott Hanselman, while the installed Companion executable reported 2026.9.4. - Existing saved connection targeted the local gateway at
ws://localhost:18789.
Observed sequence / reproduction conditions
This describes the actual machine state, not a fresh-VM reproduction; the earlier update sequence that produced the stale registration has not been established.
- Have the legacy Inno registration and newer executable described above, plus an existing native Store gateway/session.
- Install/open the Store Companion while the Inno installation remains present.
- The Store app blocks normal startup and cannot complete the migration. Its user-facing explanation refers to inability to validate the prior installation's path/user/architecture; the diagnostic rejection was the production publisher/application identity mismatch.
- The user cannot get back to a connected Store Companion through a straightforward guided recovery path.
Confirmed migration trigger
The legacy publisher is legitimate historical metadata: v0.6.12 installer.iss used Scott Hanselman.
The current detector at 7fc3f605, lines 78–85 requires the exact current display-name format and publisher OpenClaw Foundation, otherwise returning:
The Inno registration does not identify the production publisher and application.
It also requires the executable and registered versions to match. These source links explain the rejection conditions; they are not a claim that current main is identical to the shipped package. The missing piece is a supported, clearly explained recovery path for this historical install state, not blindly accepting registry values.
Separate gateway failure found during recovery
Nothing was listening on the saved local port. clawctl status --json reported an existing running isolated session and configured sign-in recovery, but gateway readiness was unknown:
the isolated-session helper has not been staged for this package version. Run `clawctl setup` again
This was independently repaired with clawctl setup --json (without --fresh or --force), followed by clawctl gateway-service start --json. Setup reused the existing session and installed the bundled Node 24.21.0 runtime. The missing helper explains the immediate readiness failure; the precise package-update transition that left it missing is not yet proven. This may warrant a separately owned follow-up.
Recovery and verified outcome
- Used the existing interactive Inno uninstaller with
/NORESTART, preserving the gateway/generated state. No registry identity spoofing, fabricated migration receipts, security-policy changes, reboot, or gateway reset. - This preservation choice matters: the historical uninstaller asks whether to remove the local WSL gateway/generated state; silent uninstall instead opts into that cleanup. A generic “just uninstall it silently” workaround is not equivalent to safe migration.
- Verified the legacy executable/uninstaller and registration were gone, then launched the Store app. Startup admission became
NotRequired. - Verified fresh operator
hello-ok, successful node registration, two established loopback connections,/healthzreporting live, and the native Companion UI showing Connected with existing chat history. - The device-key file remained byte-identical, and the active gateway ID/endpoint were retained. Settings/registry files were rewritten during app startup/reconnect; the legacy install-local
exec-policy.jsonwas removed by uninstall. This is not a claim that every original file was preserved byte-for-byte. - Packaged Companion startup was enabled. No new model-inference test was sent.
Expected behavior / acceptance criteria
- Explain the actual rejected condition (historical publisher, stale registered version, missing migration payload, etc.), rather than presenting only broad path/user/architecture guidance.
- Provide a supported repair/update-to-migratable-version path for legitimate older installations while retaining same-user, identity and architecture validation.
- Make the preserve-data uninstall handoff explicit, observe its actual completion/cancellation, and resume Store startup afterward.
- Preflight the saved local gateway and offer the existing non-destructive helper/setup repair when required; do not leave users debugging a second independent failure after migration.
- Add upgrade/recovery coverage for historical Inno metadata with newer app files, cancellation/retry, preserved identities/settings, and an existing Store gateway missing its current-version helper.
Assisted-recovery UX note (not an established Windows defect)
During remote assistance, uninstaller launches produced a consent.exe process, but the user repeatedly reported no visible administrator prompt. The assistant incorrectly treated process existence as proof that the prompt was visible and repeated the instruction. The cause of the visibility problem was not established; the user ultimately completed the uninstall. Recovery tooling should distinguish “elevation requested” from “prompt visible” and provide a concrete manual-launch fallback instead of an acknowledgment loop.
Only redacted diagnostic facts are included here; no credentials, device IDs, private session contents, or user-specific filesystem paths are attached.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 2, 2026
Codex review: this still needs some work. Reviewed October 1, 2026, 10:22 PM ET / October 2, 2026, 02:22 UTC.
Summary
Keep open: current main still routes legitimate historical publisher metadata to a blocking, generic unsupported-installation screen. The merged migration work does not resolve this recovery case, and this member-authored issue requires explicit maintainer handling.
Reproducibility: yes. for the admission and guidance defect: a present executable with historical publisher metadata reaches UnsupportedInstallation and the generic blocking screen. No current-main runtime reproduction was executed; the earlier update sequence and missing-helper transition remain unknown.
Maintainer decision needed
Why: The old uninstaller can remove Gateway state, and current identity checks intentionally reject this installation; source inspection cannot authorize a new recovery trust contract.
Next step
Select the safe historical-install recovery contract, then split focused diagnostic guidance from Gateway package investigation; member authorship and preservation-sensitive scope exclude automatic repair intake.
Review details
Best possible solution:
Add a guided Repair action that explains the rejection, leads to a verified migration-capable update or preserve-data handoff, observes cancellation and completion, and resumes startup without weakening validation.
Do we have a high-confidence way to reproduce the issue?
Yes for the admission and guidance defect: a present executable with historical publisher metadata reaches UnsupportedInstallation and the generic blocking screen. No current-main runtime reproduction was executed; the earlier update sequence and missing-helper transition remain unknown.
Is this the best way to solve the issue?
Unclear until the preservation contract is selected. Reason-specific guidance and a verified update path are narrower and safer than accepting stale registry identity or recommending silent uninstall.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 7fc3f605e223.
Label changes
Label changes:
P0: Store startup was blocked and recovery required registry/binary inspection, manual uninstall, and separate Gateway commands.impact:ux-release-blocker: The unsupported-installation screen provides no guided route through this legacy upgrade state.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state selects this label.clawsweeper:needs-product-decision: Current issue advisory state selects this label.Label justifications:
P0: Store startup was blocked and recovery required registry/binary inspection, manual uninstall, and separate Gateway commands.impact:ux-release-blocker: The unsupported-installation screen provides no guided route through this legacy upgrade state.Evidence reviewed
What I checked:
src/OpenClaw.Connection/Migration/InnoInstallationDetector.cs:78, 7fc3f605e223)src/OpenClaw.Connection/Migration/StoreMigrationStartupCoordinator.cs:108, 7fc3f605e223)src/OpenClaw.Tray.WinUI/Strings/en-us/Resources.resw:7709, 7fc3f605e223)installer.iss:3, 4166e0fd63f8)tests/OpenClaw.Connection.Tests/InnoInstallationDetectorTests.cs:490, 7fc3f605e223)src/OpenClaw.Connection/Migration/InnoInstallationDetector.cs:82, 244f684ef291)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.Speculorum9 commentedon Oct 8, 2026
Possibly related root cause: #1676 documents a sequence that leaves the Inno uninstall registration stale: in-app (Updatum) updates replace the program files without touching the
_is1key, so the registered version stays at the last Setup-installed version while the executable moves on. (A Setup reinstall does update the key correctly.) That may be how this machine ended up with "0.6.12" registered while the executable was 2026.9.4.Edited: removed an incorrect claim about Setup reinstalls; see the correction in #1676.
catnipluss commentedon Oct 17, 2026
Follow-up to #1592: verified non-default orphan registration still opens Unsupported migration UI
The detector currently recognizes an orphan registration only after accepting the canonical per-user install location. A valid same-user registration for a custom location returns Unsupported before the definitely-absent executable/uninstaller branch. The preliminary tray-executable presence probe already ran, so this is not a claim that the detector never checks for an executable.
Synthetic example (fictional paths, not a machine transcript):
InstallLocation = E:\Apps\ExampleLegacy
DisplayVersion = 2026.9.4
Publisher = OpenClaw Foundation
DisplayName = OpenClaw Companion version 2026.9.4
UninstallString = "E:\Apps\ExampleLegacy\unins000.exe"
Both E:\Apps\ExampleLegacy\OpenClaw.Tray.WinUI.exe and unins000.exe are definitely absent. No HKLM registration, conflicting HKCU view, default-location payload, or pending migration record is present.
Current code path:
Read registration -> probe tray payload -> validate version/publisher -> reject non-default location -> UnsupportedInstallation.
AllowsNormalStartup is false, so the migration dialog opens. With no completion receipt and no source payload, BlocksStartup is false, so dismissing the dialog allows startup. This report distinguishes recurring misleading UI from a hard lockout.
Expected:
A positively verified orphan should become OrphanedRegistration and, with no pending migration records, NotRequired. This must not permit migrating from, or invoking an uninstaller in, arbitrary custom locations.
Proposed patch:
Keep machine-wide/conflicting-view and identity/version checks. For a non-default local fixed-drive location, require an unambiguous path, the exact quoted unins000.exe command without arguments, and positive absence of both registered payload files and default-location payload files. Retain denied/unreadable/reparse-path handling and existing receipt/intent admission semantics. Do not delete registry or profile state.
Validation status, deliberately limited:
Base commit: 2a33672.
Patch applies cleanly; git diff --check and reverse-application checks pass.
Six regression cases were added to the existing InnoInstallationDetectorTests fixture. They use temporary filesystem data and the existing source seam; they have NOT executed in the actual repository because the available build host lacks .NET SDK 10.0.400 and the Windows SDK.
A separate .NET 8 fake-source harness passed 29 cases with the patch and failed four with the unmodified detector, including the custom-orphan regression. This is supplemental policy evidence, not full-repository, filesystem-reparse, UI, or MSIX proof. The full build and Shared/Tray/Connection test commands were attempted; actual repository tests executed: zero. No production package was replaced.
Related work:
#1592 is the closest existing recovery issue. #1676 concerns stale uninstall metadata after in-app updates; it does not prove which component created any particular package-private orphan record. #1675 addresses native setup drafts and correction-release versions, not this early non-default-path return.
Remaining proof before merge:
Run the full required build, Shared and Tray tests, focused migration tests, and baseline-failing/post-fix-passing native regression cases. On an authorized disposable Windows VM, validate two cold starts with a real production-identity migration package; preserve live-source, denied-probe, conflicting-view and completion-receipt protections. Dev identity alone cannot exercise this gate. No package install or certificate operation was performed for this proposal.
This submission contains only synthetic reproduction data, source analysis and the proposed code/tests. It contains no machine logs, screenshots, accounts, private paths, pairing identifiers, keys or tokens.
github-actions commentedon Nov 1, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.
github-actions commentedon Nov 9, 2026
Closing due to inactivity.
If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.