Repository navigation
docs: document safe uninstall and dev cleanup - #1383
Merged
Merged
Conversation
- 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 #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.
Refuse destructive dev uninstall instructions when data-path overrides are active and document the actual external-gateway condition for preserving root device tokens. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4f97b3a3-def7-4f33-b7d5-ece171b4fd0b
|
🦞👀 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. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: docs: document safe uninstall and dev cleanup This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
8 of 16 tasks
5 of 16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Current-main replacement for #1275 (docs: add uninstall info to README and uninstall skill), preserving Pedro Larroy's uninstall documentation and dev-cleanup procedure with final safety corrections.
docs/SETUP.md;.agents/skills/uninstall/SKILL.mdfor safely exercising the existing headless dev uninstall path;-DevBuildidentity and matching architecture;OpenClawTray-Devdirectories;Required proof pools
none: documentation and agent instructions only; no runtime code or registration changes.Validation
.\scripts\validate-docs.ps1: passed, 48 Markdown files checkedgit diff --check: passedReview disposition
The current-main review found and fixed two real documentation defects from the original branch:
OPENCLAW_TRAY_DATA_DIR,OPENCLAW_TRAY_LOCALAPPDATA_DIR,OPENCLAW_TRAY_LOCAL_DATA_DIR, orOPENCLAW_STATE_DIRcould redirect a destructive dev uninstall away from the documented paths;A finding that
exec-approvals.jsonsurvives uninstall was rejected as outdated: currentTrayArtifactCleanupexplicitly deletes active and legacy approvals files from roaming/local state.Real behavior proof
The original contributor proof exercised the real native Windows dev uninstall path and documented distro removal and cleanup results. The runtime absent-distro fix is already merged separately through #1348 (fix(setup): let uninstall recover from absent WSL distro); this PR is documentation-only.
Supersedes #1275 (docs: add uninstall info to README and uninstall skill).