Skip to content

[Linux][Uninstall] nemoclaw uninstall leaves ~/.local/state/nemoclaw/ behind (residual of #3456 #5c) #3535

@cjagwani

Description

@cjagwani

Summary

nemoclaw uninstall on Linux Docker-driver hosts leaves ~/.local/state/nemoclaw/ on disk. This directory is owned by NemoClaw (documented as NEMOCLAW_OPENSHELL_GATEWAY_STATE_DIR in docs/reference/commands.md:1150) and holds the Docker-driver gateway's pid file, SQLite database, audit log, and vm-driver/ state. Re-onboarding after uninstall picks up the stale state.

Context

This is sub-bug #5c from #3456. The parent issue auto-closed when #3520 merged (which fixed sub-bugs #3, #4). Sub-bugs #1, #2, #5a, #5b were fixed earlier via #3459 and #3483. #5c was confirmed real on current main in #3456 (comment) but #3520 did not include it; filing this as a narrow follow-up so it stays tracked on the v0.0.42 board.

Steps to reproduce

  1. Onboard on a Linux Docker-driver host: nemoclaw onboard
  2. Verify the gateway state dir exists: ls -la ~/.local/state/nemoclaw/
  3. Run nemoclaw uninstall
  4. Re-check: ls -la ~/.local/state/nemoclaw/

Expected

Step 4 prints No such file or directory.

Actual

Step 4 lists openshell-docker-gateway/ and friends — uninstall cleans ~/.nemoclaw, ~/.config/nemoclaw, ~/.config/openshell but never ~/.local/state/nemoclaw/. Confirmed by reading src/lib/domain/uninstall/paths.ts:77 (uninstallStatePaths does not list this path).

Acceptance criteria

  • ~/.local/state/nemoclaw/ is removed by nemoclaw uninstall on Linux
  • Unit test in src/lib/domain/uninstall/paths.test.ts confirms the path is in uninstallStatePaths() return value
  • No regression in existing uninstall tests (run-plan.test.ts)

Metadata

Metadata

Assignees

Labels

NV QABugs found by the NVIDIA QA Team

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions