Repository navigation
Description
Description
nemoclaw uninstall --yes --destroy-user-data leaves the managed OpenClaw state volume (nemoclaw-openclaw-state-v1-<sandbox>) behind, even though the sandbox is registered and the uninstall exits 0. nemoclaw <sandbox> destroy removes the same volume, and uninstall already removes the managed Hermes state volume.
The leftover volume is not harmless. A later nemoclaw onboard with the same sandbox name mounts the stale /sandbox/.openclaw, which contains the previous paired CLI device. Onboarding then fails during verification:
OpenClaw onboarding for '<sandbox>' is incomplete because its canonical CLI device pairing did not appear. Resume or rerun onboarding.
After the volume is removed manually, the same onboard completes.
Platform scope: Reproduced on Ubuntu 24.04 x86_64 (Docker) only; other platforms not tested.
Regression: Probably since the managed OpenClaw state volume was introduced in #9923. Uninstall-side volume cleanup was added for Hermes only in #10133. Earlier tags were not tested.
OpenShell issue: No. The volume is a NemoClaw-managed state root, and NemoClaw destroy already removes it.
Environment
OS: Ubuntu 24.04, x86_64, Docker
OpenShell CLI: 0.0.116
NemoClaw: main at 95d0ed2472
OpenClaw: v2026.9.2
Provider: NVIDIA Endpoints (nvidia-prod), nvidia/nemotron-3-ultra-550b-a55b
Steps to Reproduce
- Start from a clean host (
nemoclaw uninstall --yes --destroy-user-data, and nonemoclaw-*Docker volumes). nemoclaw onboard --name telemetry-openclaw --non-interactive --yes(OpenClaw). The command exits 0.docker volume ls --filter name=nemoclaw-, which showsnemoclaw-openclaw-state-v1-telemetry-openclaw.nemoclaw uninstall --yes --destroy-user-data. The command exits 0.docker volume ls --filter name=nemoclaw-.- Optional: run step 2 again.
Expected Result
Uninstall removes the NemoClaw-owned OpenClaw state volume of each sandbox it removes, as destroy does and as uninstall already does for Hermes. It should keep the same exact-ownership-label checks and retry-safe failure behavior. Re-onboarding the same name starts from fresh state.
Actual Result
volumes[after-onboard]: nemoclaw-openclaw-state-v1-telemetry-openclaw
UNINSTALL_EXIT=0
volumes[after-uninstall]: nemoclaw-openclaw-state-v1-telemetry-openclaw
For comparison, destroy on the same setup:
DESTROY_EXIT=0
Removed managed agent state volume for 'telemetry-openclaw'.
volumes[after-destroy]: (none)
Re-onboarding the same name over the leftover volume fails with "canonical CLI device pairing did not appear". It succeeds after docker volume rm nemoclaw-openclaw-state-v1-telemetry-openclaw.
Analysis
src/lib/actions/sandbox/destroy.tsremoves every managed agent state volume declared insrc/lib/onboard/managed-startup/state-roots.ts.src/lib/actions/uninstall/hermes-uninstall-cleanup.ts(fix(uninstall): remove managed Hermes volumes #10133) removes only the Hermes state volume. The OpenClaw state root declared later (nemoclaw-openclaw-state-v1) has no uninstall counterpart.docs/manage-sandboxes/uninstall-nemoclaw.mdxdocuments only the Hermes volume removal.
Found while verifying #13576.
Activity
test(uninstall): prove OpenClaw volume cleanup through the uninstall …
refactor(uninstall): own state-volume cleanup in an agent-neutral module
fix(state-volume): treat a null registry agent as OpenClaw for cleanup
test(uninstall): preserve retry state for a null-agent OpenClaw failure
test(e2e): uninstall then onboard the same OpenClaw sandbox name
test(e2e): use --destroy-user-data before same-name OpenClaw onboarding
ci(e2e): record approved #13596 assertion budget transition
fix(uninstall): remove managed OpenClaw state volumes (NVIDIA#13596)