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 real behavior proof before merge. Reviewed September 25, 2026, 7:38 PM ET / 23:38 UTC. ClawSweeper reviewWhat this changesNarrows Windows uninstall cleanup to named generated files and one WSL distro child, with path guards, documentation, and filesystem tests. Merge readiness⛔ Blocked before merge - 12 items remain Keep this PR open. Current main still deletes the selected install directory after successful gateway cleanup, so the repair remains useful. The replacement has unresolved deletion-safety defects and lacks signed-installer proof. Priority: P0 Review scores
Verification
How this fits togetherThe Inno uninstaller takes a user-selected install path and a choice to remove the local WSL Gateway. It calls a PowerShell helper to check Store migration ownership and unregister the distro before removing local files. flowchart TD
A[Uninstall choice] --> C[Inno uninstaller]
B[Selected install path] --> C
C --> D[Store ownership check]
D --> E[WSL gateway cleanup]
E --> F[Generated data cleanup]
F --> G[Removed or preserved files]
F --> H[Uninstall diagnostics]
Before merge
Findings
Agent review detailsSecurityNeeds attention: The new child-only PowerShell entrypoint reaches destructive WSL data removal without the Store migration ownership admission used by normal cleanup. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep distro-child deletion inside migration-protected cleanup, preserve files whose ownership is uncertain, retain warnings in a durable uninstall log, and verify fresh and upgrade uninstall with signed Windows artifacts. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source gives a clear path: complete gateway cleanup with a custom install folder containing an unrelated sentinel, then observe the whole-folder deletion. This read-only review did not execute it. Is this the best way to solve the issue? No. Narrowing deletion is appropriate, but the child-only mode needs ownership admission and generic named directories need content-level preservation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5a59535216ee. LabelsLabel changes: No label changes. Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
CI failure audit for exact head
Classification: baseline/runner failures, not branch-caused. No uninstall-scope code change was made. #1521 remains draft with |
|
This pull request has been automatically marked as stale due to inactivity. |
Signed-off-by: Sebastien Tardif <[email protected]>
Recursive deletion of the wsl directory could remove a sibling distro VHD. Uninstall now deletes the configured child only and leaves an uncertain path in the log. Signed-off-by: Sebastien Tardif <[email protected]>
Bind primary filesystem deletion to the generated local-data root, preserve uncertain custom roots with durable warnings, and reject redirected ancestors. Exercise the real PowerShell first-phase AST with modeled transport and owned filesystem fixtures. Co-authored-by: Copilot App <[email protected]> Copilot-Session: fa19a99c-5eea-4942-a104-a82d6fb6c12a
Reject redirected app and WSL roots even when their target lacks the configured distro child. Preserve the missing-directory no-op and cover empty junction targets through the actual first-phase PowerShell path. Co-authored-by: Copilot App <[email protected]> Copilot-Session: fa19a99c-5eea-4942-a104-a82d6fb6c12a
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Retire matching distro ownership markers, preserve redirected and uncertain data, and cover generated-root cleanup with isolated regressions. Co-authored-by: Copilot App <[email protected]> Copilot-Session: b33eb2e2-2f67-45ed-bd90-e8777586f21c
5e5bd4b to
dd386ab
Compare
|
Hi @karkarl, I'm a GitHub Copilot triage bot helping with repository housekeeping, not Scott. This uninstall data-preservation fix still looks important, and I see the documented signed-upgrade/native-WSL proof blockers. Do you plan to continue it against current main, or is there a newer PR carrying the work? If it has been replaced or you're no longer pursuing this draft, you're welcome to close it and link the follow-up so the safety issue stays tracked. If it's waiting on proof, a short note about the next owner or dependency is enough. No rush or automatic closure. |
PR cleanup reviewReviewed head: Thanks for consolidating cleanup into the admitted primary path. At dd386ab the separate child-only entrypoint and its temporary-log problem are gone, and exact-head CI Gate is green. This is not superseded: main still recursively deletes {app}; the later #1954 and #1481 fixes address different cleanup problems. I would keep this draft open for a current-main refresh and the documented signed-installer/native-WSL proof. One preservation case still needs resolution: DeleteGeneratedChild recursively removes all ordinary content under names such as Logs or canvas, even when a descendant is unrelated. Please cover an unrelated sentinel inside an allowlisted directory, not only beside it, and preserve the newer PowerShell/native-record/token fixes during integration. No merge readiness is implied by this source-level pass. Action in this cleanup pass: leaving this PR open. No branch changes or runtime-proof waiver. The findings above come from source, discussion and recorded-CI review; Windows validation was not rerun in this pass. |
|
This pull request has been automatically marked as stale due to inactivity. |
This maintainer-owned replacement keeps the original contributor branch unchanged. Rebased onto
248e95c60a39c8e67783697a8b74cc41fe6806ad; all six existing patches replayed unchanged, followed by review fixes indd386abec2fc98ba1e5cc10277ec503b215e68d6.What Problem This Solves
Fixes: uninstall can delete unrelated files when the installation folder also contains user data.
User Impact
Uninstall removes only known generated children and the confirmed configured distro, preserving custom installation folders, uncertain siblings, redirected paths, and wrong-type entries. Local AI data, its original
.wslconfigbackup, and metadata for preserved gateways/distros deliberately remain. Missing WSL preserves distro directories and ownership markers rather than guessing registration state.Still draft / HOLD: signed installer-upgrade and native-WSL end-to-end proof remain unavailable. Redirected generated roots fail closed; cleanup may report failure instead of continuing through an unverified path.
Why This Change Was Made
The Inno allowlist replaces whole-root recursive deletion and verifies expected file/directory types and ancestor paths. Distro cleanup now has one owner, the existing migration/WSL-admitted primary PowerShell path. The redundant destructive post-uninstall mode was removed. Successful cleanup retires only an ordinary ownership marker whose schema, distro name, and install path match the removed target. Descendant reparse points preserve the entire distro subtree.
Evidence
Hanselman review used Claude Opus 5.5 (
claude-opus-5.5, high, default context) and GPT-6 Astra (gpt-6-astra, high, long_context) independently through Copilot read-only review agents. The requested rubber-duck agent type was unavailable. Initial review pinnedfc5cb38eagainst248e95c6; both reviewers then checked only the fix delta. No unresolved P0-P2 findings remain.Blanket deletion of LocalAI, chat metadata, or multi-distro context was disputed and withdrawn after verifying backup/ownership requirements. Preservation is documented and guarded by tests.
Structured autoreview was attempted with
python <installed-autoreview> --mode local --base 248e95c60a39c8e67783697a8b74cc41fe6806ad --engine codex --model gpt-6-astra --thinking high --max-priority P3 --stream-engine-output(external output/status paths and review context supplied). Blocked: HTTP 401 Unauthorized before findings, statusreviewer_unavailable, no report produced. The two independent Copilot final-delta reviews provide the documented fallback, not helper-isolation or machine-status attestation.Change Type
Scope
winnodeRequired proof pools
windows-clean-installer-upgrade: clean/default/custom install and uninstall preservation using exact signed artifacts. Not verified / blocked: no approved signed-artifact pool run was available. Local compiled-function fixtures are not whole-installer proof.Validation
All runs set
OPENCLAW_REPO_ROOTto this worktree; tray settings were isolated from real user settings. Initial test invocations failed with missing fresh-worktree NuGet assets, which were restored before rerunning the entire required closeout..\build.ps1: passed, native Windows ARM64; documentation gate passed.dotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 4,314 passed, 35 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 4,109 passed, 0 skipped, 0 failed.dotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore --filter 'FullyQualifiedName~Uninstall': 37 passed, 0 skipped, 0 failed.dotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --filter 'FullyQualifiedName~InnoMigrationContractTests|FullyQualifiedName~InstallerIssAssertionTests' --logger 'trx;LogFileName=pr1521-focused.trx' --results-directory <session-artifacts>\test-results: 99 passed, 0 skipped, 0 failed.git diff --check: passed.Real Behavior Proof
dd386abec2fc98ba1e5cc10277ec503b215e68d6(required suites ran against the identical source tree before commit; both behavior fixtures reran after commit).& <session-artifacts>\prove-inno-cleanup.ps1 -RepositoryRoot (Get-Location).Pathand& <session-artifacts>\prove-primary-cleanup.ps1 -RepositoryRoot (Get-Location).Path.N/A. Scripts, TRX, fixture compiler output and logs are retained in session artifacts; host-local paths are not uploaded.Security Impact
NoNoNoYesYesYes, explain the risk and mitigation: removes a separate destructive invocation mode, limits recursive deletion to a guarded generated child, refuses redirected trees, verifies expected child types, and retires only matching ownership evidence after confirmed cleanup. Existing migration lock and preservation exit codes remain enforced.Compatibility and Migration
YesNoNoN/A. Deliberate conservative differences are documented: uncertain data and LocalAI backups remain; missing WSL does not authorize VHD deletion; redirected generated paths can report cleanup failure.Review Conversations
No inline GitHub review conversations existed when inspected. Dual-model findings and their resolutions are recorded above. No merge requested.