NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Linux][Install] nemoclaw uninstall leaves the nemohermes shim at ~/.local/bin/nemohermes (command still resolves)

Open tedy-y opened this issue 5 months ago • 1 comments

Description

nemoclaw uninstall --yes reports a clean uninstall ("Claws retracted") and removes the nemoclaw CLI shim, the openshell* binaries, and the ~/.nemoclaw/ directory — but it does not remove the sibling nemohermes shim at ~/.local/bin/nemohermes. After uninstall, nemohermes still resolves as a command and still reports its version (v0.0.70).

This is the same class of incomplete-cleanup bug as the already-fixed #6084039 (uninstall left the nemoclaw CLI) and #6171984 (uninstall left openshell binaries) — those fixes covered nemoclaw / openshell* but missed the nemohermes alias.

Environment

Device:        Linux test VM 
OS:            Ubuntu 26.04 LTS (x86_64) (also reproduced on macOS 26.5.1 with Colima)
Kernel:        7.0.0-22-generic (#22-Ubuntu SMP PREEMPT_DYNAMIC 2026-05-25)
Architecture:  x86_64
Node.js:       v22.23.1 (installed via nvm during test)
npm:           10.9.8
Docker:        present (runtime detected by installer; exact version not captured)
                 note: nvidia-container-toolkit NOT installed → non-GPU VM
OpenShell CLI: v0.0.44 (bundled with NemoClaw v0.0.70 install)
NemoClaw:      v0.0.70
Hermes Agent:  v0.17.0 (build 2026.6.19)

Steps to Reproduce

  1. On a clean Linux host, install NemoClaw v0.0.70 with the Hermes agent:

    curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_AGENT=hermes NEMOCLAW_INSTALL_TAG=v0.0.70 bash
    

    The installer creates both shims: ~/.local/bin/nemoclaw and ~/.local/bin/nemohermes. (Confirmed on macOS v0.0.70: both shims are created by the installer, dated at install time.)

  2. Uninstall:

    nemoclaw uninstall --yes
    
  3. Verify removal (use a login shell so ~/.local/bin is on PATH):

    which nemoclaw     # expect: not found
    which nemohermes   # ACTUAL: still found
    ls -la ~/.local/bin
    

Expected Result

nemoclaw uninstall removes both the nemoclaw and nemohermes shims from ~/.local/bin (in addition to openshell* and ~/.nemoclaw, which it already removes). After uninstall, neither nemoclaw nor nemohermes resolves as a command.

Actual Result

Uninstall completes ("Claws retracted. Until next time.") and correctly removes ~/.nemoclaw and the openshell binaries, but the nemohermes shim survives:

--- which nemohermes ---
/home/nemoclaw/.local/bin/nemohermes
NEMOHERMES_STILL_EXISTS_FAIL
--- which nemoclaw ---
NEMOCLAW_REMOVED_OK
--- .local/bin listing ---
-rwxrwxr-x 1 nemoclaw docker 157 ... nemohermes

nemohermes --version still returns v0.0.70 after uninstall.

Logs

Uninstall tail:
  ...
  Removed /home/nemoclaw/.local/bin/openshell-sandbox
  Removed /home/nemoclaw/.nemoclaw
  NemoClaw
  Claws retracted. Until next time.
  ---uninstall exit: 0

Verify step:
  which nemohermes -> /home/nemoclaw/.local/bin/nemohermes   (NEMOHERMES_STILL_EXISTS_FAIL)
  which nemoclaw   -> (removed OK)
  ls -la ~/.local/bin:
     -rwxrwxr-x 1 nemoclaw docker 157 Jul 1 03:35 nemohermes   (only entry left)

The nemohermes shim is the standard 3-line wrapper:
  #!/usr/bin/env bash
  export PATH="$HOME/.hermes/node/bin:$PATH"
  exec "$HOME/.hermes/node/bin/nemohermes" "$@"

Caveat (honest QA note): on the test VM the leftover nemohermes had mtime 03:35, before this run's install (03:54) — i.e. the VM was not verified clean and the shim may be a leftover from a prior install. However, macOS v0.0.70 confirms the installer does create ~/.local/bin/nemohermes as a standard artifact, and this run's uninstall removed the sibling nemoclaw shim while leaving nemohermes, so the cleanup gap is real regardless. A clean-VM repro is recommended to remove all doubt.

Related (both Bug - Fixed; same incomplete-uninstall class, nemohermes sibling missed):

  • #6084039 — [Uninstall] curl bash uninstall didn't remove nemoclaw cli
  • #6171984 — nemoclaw uninstall does not remove openshell-sandbox / openshell-gateway binaries

Distinct from #6374750 / #6267993 (those are about ~/.nemoclaw contents, which were removed here).


NVB#6400656

tedy-y avatar Jul 01 '26 05:07 tedy-y