Repository navigation
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 maintainer review before merge. Reviewed September 8, 2026, 6:08 PM ET / 22:08 UTC (Revision 9). ClawSweeper reviewWhat this changesAdds uninstall guidance to the README and setup guide, plus an agent procedure for safely removing a development installation. Merge readiness✅ Ready for maintainer review The documentation remains useful and is not implemented on main. The updated body resolves the previous review’s scope and validation-history blocker, and no actionable patch defects remain. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw Companion supports uninstall through Windows Settings and a headless development command. These instructions explain gateway preservation choices, destructive cleanup, and the artifacts users should expect afterward. flowchart TD
A[Uninstall request] --> B[Windows Settings]
A --> C[Development CLI]
B --> D{Remove local gateway?}
D -->|No| E[Preserve gateway state]
D -->|Yes| F[Gateway and artifact cleanup]
C --> G[Check dev identity and preview]
G -->|User confirms| F
Before mergeNone. Agent review detailsSecurityNone. Review metricsNone. Technical reviewBest possible solution: Keep the uninstall instructions aligned with the existing installer and SetupEngine, including explicit destructive consent and accurate preservation expectations. Do we have a high-confidence way to reproduce the issue? Not applicable: the current patch documents existing behavior, and its commands and cleanup claims were checked against the production implementation. Is this the best way to solve the issue? Yes. Extending the existing setup guide and documenting the existing development CLI is a focused solution without creating a competing implementation. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9bfc871f6d1. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
- README: the Windows installer uninstall prompts Yes/No for removing the local WSL gateway (installer.iss:177 EnsureLocalGatewayCleanupChoice); choosing No preserves it. Previous wording implied it always happens. - uninstall skill: TrayArtifactCleanup (src/OpenClaw.SetupEngine/ TrayArtifactCleanup.cs) resets/removes selected files in place and does not delete the AppData roots, so asserting Test-Path on %APPDATA%\OpenClawTray[-Dev] / %LOCALAPPDATA%\OpenClawTray[-Dev] can report a successful uninstall as failed. Check the specific artifacts the cleanup actually removes (Logs dir, run.marker) instead. Addresses ClawSweeper review findings on PR openclaw#1275. Co-Authored-By: Claude Sonnet 5 <[email protected]>
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
- README: the Windows installer uninstall prompts Yes/No for removing the local WSL gateway (installer.iss:177 EnsureLocalGatewayCleanupChoice); choosing No preserves it. Previous wording implied it always happens. - uninstall skill: TrayArtifactCleanup (src/OpenClaw.SetupEngine/ TrayArtifactCleanup.cs) resets/removes selected files in place and does not delete the AppData roots, so asserting Test-Path on %APPDATA%\OpenClawTray[-Dev] / %LOCALAPPDATA%\OpenClawTray[-Dev] can report a successful uninstall as failed. Check the specific artifacts the cleanup actually removes (Logs dir, run.marker) instead. Addresses ClawSweeper review findings on PR openclaw#1275. Co-Authored-By: Claude Sonnet 5 <[email protected]>
7ba5512 to
c4cf1cd
Compare
|
Adversarial consensus verdict: block until the dev-identity and process-scope findings are fixed. Two independent reviews used the same complete PR diff and implementation evidence. HIGH consensus
LOW consensus
Disputed assessment: I do not treat the ARM64 item as established. Validation scope: complete diff for head |
- README: the Windows installer uninstall prompts Yes/No for removing the local WSL gateway (installer.iss:177 EnsureLocalGatewayCleanupChoice); choosing No preserves it. Previous wording implied it always happens. - uninstall skill: TrayArtifactCleanup (src/OpenClaw.SetupEngine/ TrayArtifactCleanup.cs) resets/removes selected files in place and does not delete the AppData roots, so asserting Test-Path on %APPDATA%\OpenClawTray[-Dev] / %LOCALAPPDATA%\OpenClawTray[-Dev] can report a successful uninstall as failed. Check the specific artifacts the cleanup actually removes (Logs dir, run.marker) instead. Addresses ClawSweeper review findings on PR openclaw#1275. Co-Authored-By: Claude Sonnet 5 <[email protected]>
c4cf1cd to
b1ad38b
Compare
|
Addressed the consensus review findings:
Not re-run live in this pass (no WSL dev distro available in this environment) — the original request for fresh real-behavior evidence is still open if it resurfaces. @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Review/Merge after 9/6, not needed for mvp |
|
CI failure assessment for Build and Test run https://github.com/openclaw/openclaw-windows-node/actions/runs/33655444632 (merge SHA ee3de40):
Neither failure is attributable to this PR's README/uninstall-skill changes. A CI rerun is appropriate; the E2E job needs runner/WSL provisioning investigation if it reproduces. |
|
Cherry-picked ab5c4b3 and added current-head destructive uninstall proof plus validation evidence to the PR body. @clawsweeper re-review |
|
Current-head real-behavior proof collected on PR head Dry run: Destructive run: Post-state (matches the skill's step-6 checklist):
Validation at
One pre-existing finding surfaced (documented in the PR body, not introduced by this PR): with @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Fixed the remaining P2 finding and pushed: The skill's step 6 no longer asserts
My current-head run (PR body + comment above) already showed the corrected behavior end to end: every artifact in the checklist was absent after the destructive run except the current run's own log/journal pair, exactly as the fixed postcondition now states. @clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
@karkarl Could you retrigger CI on this PR? Assessment of the current-head failure (run https://github.com/openclaw/openclaw-windows-node/actions/runs/33841455355, head This matches a repo-wide flake pattern in recent CI runs on other branches and main, each failing on a different one-off timing test: |
|
@clawsweeper review again, what's missing here to get maintainer review? |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
- README: add an Uninstall section (GUI path, AppData cleanup note, link to docs/SETUP.md#uninstalling). - .agents/skills/uninstall: new skill documenting the headless --uninstall --dry-run / --confirm-destructive CLI path on a dev build, including architecture matching, WSL distro checks, and verification steps. Co-Authored-By: Claude Sonnet 5 <[email protected]>
- README: the Windows installer uninstall prompts Yes/No for removing the local WSL gateway (installer.iss:177 EnsureLocalGatewayCleanupChoice); choosing No preserves it. Previous wording implied it always happens. - uninstall skill: TrayArtifactCleanup (src/OpenClaw.SetupEngine/ TrayArtifactCleanup.cs) resets/removes selected files in place and does not delete the AppData roots, so asserting Test-Path on %APPDATA%\OpenClawTray[-Dev] / %LOCALAPPDATA%\OpenClawTray[-Dev] can report a successful uninstall as failed. Check the specific artifacts the cleanup actually removes (Logs dir, run.marker) instead. Addresses ClawSweeper review findings on PR openclaw#1275. Co-Authored-By: Claude Sonnet 5 <[email protected]>
- Require -DevBuild and verify app-identity.txt before running the headless uninstall skill; .\build.ps1 alone defaults to release identity, which would touch the real gateway/AppData state instead of the -Dev copies. - Kill only the resolved dev-build PID, not by process name, matching this repo's kill-by-PID-only convention. - Use RuntimeInformation.OSArchitecture for ARM64 detection instead of a WMI/CIM query, matching existing repo convention. - Fix a stale step cross-reference, drop an em dash per AGENTS.md, and broaden the skill's postcondition checklist and description beyond just WSL/Logs. - Narrow the README/SETUP.md claim that device identity files are never removed automatically: choosing Yes to remove the local gateway does delete that gateway's identity directory and can clear root device tokens. - Add the missing headless-CLI pointer and Yes/No gateway-cleanup wording to docs/SETUP.md#uninstalling so it matches what the README promises there. Co-Authored-By: Claude Sonnet 5 <[email protected]>
The default headless uninstall cannot remove the roaming Logs directory: Setup Engine opens its log and journal under Logs\Setup and only disposes them at process exit, after TrayArtifactCleanup has already tried. Assert that Logs\Setup retains only the current run's files instead of requiring the directory to be absent, matching the observed current-head behavior.
33b29b4 to
a2699df
Compare
|
Rebased onto current Important change from the rebase: the runtime fix this PR carried ( The PR body is updated accordingly: the previously requested absent-distro production rerun proof applies to code now owned by #1348, not to any file in this PR's diff. The destructive-uninstall evidence collected at @clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Superseded by #1383 (docs: document safe uninstall and dev cleanup), which preserves this documentation on current main and adds final safety corrections for redirected data paths and the actual external-gateway root-token condition. Thank you for the original documentation and proof work. |
Preserves #1275's uninstall documentation on current main with fail-closed path-override and credential-preservation corrections.
Summary
.agents/skills/uninstall/SKILL.md).Rebase update (2026-09-08): PR is now docs-only
The runtime fix previously included in this PR (cherry-pick
ab5c4b3c, "Fix uninstall when dev WSL distro is absent") was merged tomainase29bc418(#1348,fix(setup): let uninstall recover from absent WSL distro), including its follow-up hardening (IsWslUnavailableResult,RunAsyncAllowingInheritedPipeHandleEscape, and the additional regression tests). During the rebase onto currentmain, that commit was dropped as fully superseded; its guard, its regression testWindowsNodeContext_Rollback_SkipsLegacyCleanupWhenDistroIsAbsent, and its extension tests are all present onmainverbatim. No C# changes remain in this PR.Consequently, the previously requested absent-distro rerun proof applies to code now owned by #1348 on
main, not to any file in this PR. The destructive-uninstall evidence below was collected against that runtime code while it lived on this branch and remains valid as validation history for the merged fix.Required proof pools
nonewith reason: this PR changes only Markdown documentation (README.md, docs/SETUP.md, .agents/skills/uninstall/SKILL.md). It registers no code paths, commands, or MCP tools;scripts/validate-docs.ps1proof-pool validation passes with the declared pools.Validation
Tested heads: destructive-uninstall proof at
ab5c4b3c(then-head, runtime fix included); docs validation re-run ata2699df7(current head after rebase)../build.ps1 -DevBuildatab5c4b3c: passed.dotnet test tests/OpenClaw.Shared.Tests: 3872 passed, 32 skipped, 0 failed.dotnet test tests/OpenClaw.SetupEngine.Tests: 1027 passed, 0 failed (includes the missing-distro regression tests, since merged tomainvia fix(setup): let uninstall recover from absent WSL distro #1348).dotnet test tests/OpenClaw.Tray.Tests: 2812 passed, 0 failed../scripts/validate-docs.ps1ata2699df7: passed; 47 Markdown files checked, proof-pool validation 7 named pools.Real Behavior Proof (validation history for the runtime fix now on main via #1348)
Environment: native Windows x64 dev build (
app-identity.txt=dev), headab5c4b3c. Pre-state:OpenClawGateway-DevWSL2 distro present and running,%LOCALAPPDATA%\OpenClawTray-Devcontainedrun.marker,setup-state.json,setup-managed-distro.json,windows-node-context.json,LocalAI\,wsl\,wsl-keepalive\;%APPDATA%\OpenClawTray-Devcontained one gateway record (c293944b4e224c08) with itsdevice-key-ed25519.jsonidentity file.OpenClaw.Tray.WinUI.exe --uninstall --dry-runexited0, listed all 37 rollback steps, ended withUNINSTALL COMPLETE.--uninstall --confirm-destructiveexited1:1 rollback(s) failed: configure-local-ai-gateway(pre-existing Local AI manifest validation issue, below). All other rollbacks succeeded, includingwsl --unregister OpenClawGateway-Devexit 0, tray-artifact cleanup (Deleted run.marker,Removed autostart scheduled task,Reset onboarding settings), exit code1.wsl -l -vshowsOpenClawGateway-Devabsent;run.marker,setup-state.json,setup-managed-distro.json,windows-node-context.json,LocalAI\,wsl\,wsl-keepalive\,Logs\,exec-approvals.json, gateway identity dir anddevice-key-ed25519.jsonall absent;gateways.jsonhas 0 gateways;settings.jsonhasGatewayUrlremoved,EnableNodeMode=false,AutoStart=false; autostart Run-key value and scheduled task absent.main:WindowsNodeContext_Rollback_SkipsLegacyCleanupWhenDistroIsAbsent,..._SkipsLegacyCleanupWhenWslHasNoDistributions,..._SkipsLegacyCleanupWhenWslExeCannotStart,..._FailsWhenDistroInspectionIsAmbiguous,..._FailsWhenDistroInspectionTimesOut(SetupEngine.Tests, 1027 passed atab5c4b3c).Known issue found during proof (pre-existing, tracked separately)
With
LocalAi.Enabled=falsein the bundleddefault-config.json, a fresh-process uninstall whose machine still has a Local AI gateway provider configured fails theconfigure-local-ai-gatewayrollback when a manifest exists but cannot be validated, so uninstall reports exit1even though every artifact is cleaned. Tracked separately; not introduced by this PR.