Add complete uninstall reset for fresh native installations

This commit is contained in:
2026-11-08 19:16:46 +00:00
parent e17bc2ca4f
commit 828227f549
6 changed files with 317 additions and 0 deletions
+18
View File
@@ -137,6 +137,24 @@ From `arguments()` in `scripts/setup-native.py`:
Reinstalls keep the recorded authoring role unless you pass one of the two
role flags.
## Full reset and fresh installation
From the checkout, run:
```sh
./uninstall
./install
```
`./uninstall` is a full reset, including incomplete installations: it stops
Pipelines and its retained chat hosts, removes its database/history, password,
configuration, managed skills, client build outputs, Docker resources and build
caches. It keeps the source checkout and separate AI-provider credentials.
The next install asks for a new password. Docker must be running to remove its
Pipelines resources; unrelated containers, images and volumes are preserved.
Custom installation prefixes can be selected with `./uninstall --prefix PATH`.
This reset has no confirmation prompt. Do not use it merely to update the app.
## Other install modes
```sh
+21
View File
@@ -0,0 +1,21 @@
# Full reset entry point
`./uninstall` removes this user's Pipelines installation and its password,
configuration, history/session data, managed skill directories and client build
outputs. It stops the login service, retained hosts and manually started managed
processes, then removes only Pipelines-labelled Docker resources, known build
volumes/legacy volumes and matching build images. The source checkout and provider
logins remain, so the next command is `./install`.
Partial installs without a manifest are supported. Recorded XDG roots and custom
web credential paths are included. Preflight rejects unsafe roots, symlinks,
source-content deletion, unmanaged service files and an unavailable Docker daemon.
Service-stop failure leaves installation/password data intact. There is no prompt;
invoking this entry point explicitly requests the complete reset.
Verification: 15 reset tests passed using real isolated filesystem fixtures and
fake service/process/Docker commands, plus all 55 native installer tests. Tests
cover scoped cleanup, password deletion, partial installs, idempotence, XDG/custom
credentials, retained-host/manual-supervisor matching, unrelated resource
preservation, and Linux/macOS service behavior. Python compilation, wrapper help,
shell syntax and diff checks passed. No production installation was uninstalled.