Repository navigation
Done
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Description
Summary
winget uninstall removes the local WSL gateway without asking. The distro and everything inside it are gone, with no prompt and no way to keep them. The README tells users they will be asked.
This needs a product decision, because DEVELOPMENT.md documents the silent behavior on purpose: "A silent uninstall (/SILENT, /VERYSILENT) always removes the gateway."
Why I think the default should change
installer.issalready says why the dialog defaults to No: removing the WSL gateway "is destructive and unrecoverable", and someone uninstalling in order to reinstall "must not lose their gateway by pressing Enter". A silent uninstall skips that protection and picks the destructive answer.- A silent uninstall is what package managers do by default. Companion is on winget as
OpenClaw.OpenClawCompanion, and winget uses the entry'sQuietUninstallString(unins000.exe /SILENT) unless the user passes--interactive. - Someone running
winget uninstallto reinstall, or a fleet script removing the app, did not ask to delete a gateway and its workspace. - feat(migration): gate Inno-to-Store migration preview and preserve the gateway on uninstall #1461 (
feat(migration): gate Inno-to-Store migration preview and preserve the gateway on uninstall) already moved one silent case toward preserving, but only where a Store app is registered.
Reproduce
Unsigned Dev installers built from main a4dd026, Windows 11 x64 build 26200. I registered a throwaway OpenClawGateway-Dev distro with wsl --import, read QuietUninstallString from the entry, and ran exactly that command.
QuietUninstallString: "<app>\unins000.exe" /SILENT
distro registered before: True
still in Installed apps: False; distro registered after: False
Options
- Keep the gateway on a silent uninstall, and let an unattended caller ask for removal with
/RemoveLocalGateway=yes. This is my recommendation. Nothing is lost by default, and the removal stays available to scripts. Scripts that rely on today's behavior would need the new switch. - Keep today's behavior and correct the docs. Add the warning to the README and the winget description. This changes no code, but the data loss stays.
I built option 1 and ran it on the same setup:
QuietUninstallString: "<app>\unins000.exe" /SILENT
still in Installed apps: False; distro registered after: True
log: Silent uninstall: preserving the OpenClawGateway-Dev WSL distro and generated state. Pass /RemoveLocalGateway=yes to remove them.
unins000.exe /VERYSILENT /RemoveLocalGateway=yes
distro registered after: False; install folder left: False
log: Silent uninstall: /RemoveLocalGateway=yes requested local gateway cleanup.
log: Local gateway cleanup completed successfully.
Not verified
- I did not run the
wingetcommand itself. The Dev entry does not appear inwinget liston my machine, and running it on the real package would remove my installed Companion. The steps above run the same registered command winget reads.winget uninstallon a throwaway machine would confirm the last link. - Signed artifacts, and a distro with a real Gateway inside it.
Which option do you want? Option 1 is ready as a PR once it is agreed.
Reacted by clawsweeper
Metadata
Metadata
Assignees
Labels
P0Emergency: data loss, security bypass, crash loop, or unusable core runtime.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.impact:data-lossThis issue is about lost, corrupted, or silently dropped user/session/config data.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.
Type
Fields
Priority
None yet
Projects
- StatusShow more project fieldsBacklog
Activity
clawsweeper commentedon Oct 31, 2026
Codex review: this still needs some work.
Summary
Current main still removes the eligible WSL gateway during silent uninstall, and the reporter’s open fix PR awaits a decision about reversing this documented default.
Reproducibility: Current source establishes silent selection through WSL unregister, corroborating the reporter’s Dev-installer output; this read-only review ran no uninstall, builds, or tests.
Root-cause cluster
Relationship:
canonicalCanonical: #1955
Summary: This issue tracks the silent-uninstall policy, with one open PR implementing its preservation option.
Members:
fixed_by_candidate: fix: keep the local WSL gateway when winget uninstalls Companion #2324 - The open PR explicitly closes this issue and replaces automatic silent removal with explicit opt-in.adjacent_distinct: feat(migration): gate Inno-to-Store migration preview and preserve the gateway on uninstall #1461 - Migration safeguards preserve Store-owned or uncertain state while leaving ordinary silent cleanup enabled.adjacent_distinct: [Bug]: Store uninstall leaves managed Gateways behind and reinstall does not refresh them #1712 - The Store lifecycle report asks for owned-gateway cleanup and refresh, rather than preservation during silent Inno uninstall.These related items are listed for context. Any action on an item requires its own checks.
Maintainer decision needed
Next step
Decide the silent-uninstall default through #2324 (fix: keep the local WSL gateway when winget uninstalls Companion), then validate the chosen installer behavior.
Review details
Best possible solution:
Preserve gateway data by default, retain migration safeguards, and require explicit consent for unattended deletion.
Do we have a high-confidence way to reproduce the issue?
Current source establishes silent selection through WSL unregister, corroborating the reporter’s Dev-installer output; this read-only review ran no uninstall, builds, or tests.
Is this the best way to solve the issue?
Gating the existing cleanup owner is a focused solution to the safety concern, but preservation and a new removal switch change documented policy and require an owner decision.
AGENTS.md: found and applied where relevant.
Remaining risk / open question:
Codex review notes: model internal, reasoning medium; reviewed against 0d9aba1e3cac.
Label changes
Label changes:
clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:fix-shape-clear: Current issue advisory state no longer selects this label.clawsweeper:needs-maintainer-review: Current issue advisory state no longer selects this label.Label justifications:
P0: The normal silent uninstall path can irreversibly delete the registered gateway distro and all workspace data inside it without separate deletion consent.impact:data-loss: The cleanup helper invokes WSL --unregister, deleting the distro rather than merely removing Companion.Evidence reviewed
What I checked:
installer.iss:848, 0d9aba1e3cac)scripts/Uninstall-LocalGateway.ps1:884, 0d9aba1e3cac)tests/OpenClaw.Tray.Tests/InstallerIssAssertionTests.cs:98, 0d9aba1e3cac)installer.iss:850, 8af4b70360a9)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 explainto ask for more context, or@clawsweeper stopto stop active automation.Reviewed November 30, 2026, 11:30 PM ET / December 1, 2026, 04:30 UTC.
github-actions commentedon Nov 15, 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 Dec 1, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updated OpenClaw Windows details or it will be closed.