NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platforms][Docs] NEMOCLAW_SINGLE_SESSION example sets the variable on curl, so the installer never sees it

Open PicoNVIDIA opened this issue 2 months ago • 0 comments

Description

The commands reference says that to make the installer abort when sandboxes already exist, you run:

NEMOCLAW_SINGLE_SESSION=1 curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash

(docs/reference/commands.mdx:651-655, live at https://docs.nvidia.com/nemoclaw/latest/reference/commands)

That sets the variable for curl, not for the bash that runs the installer. The guard at scripts/install.sh:7726 sees it unset, prints its warnings, and carries on into onboarding, which the installer itself warns may disrupt running agents.

The installer's --help already says "In curl pipes, set this on bash or export it first," and the upgrade example a few paragraphs down in the same doc puts the variable on the right side (curl ... | NEMOCLAW_ACCEPT_EXPERIMENTAL_OPENSHELL_UPGRADE=1 bash). Only this example has it backwards.

Reproduction Steps

  1. Copy the guard block from scripts/install.sh:7720-7731 into a small script, with stub warn/error functions and registered_sandbox_count returning 1.
  2. Pipe that script through curl into bash using the documented form.
  3. Do the same with the variable after the pipe.

Environment

  • macOS 26.5.2 (arm64)
  • NemoClaw main at 5f6eb3232
  • I ran only the guard, not a full install.

Debug Output

Documented form, NEMOCLAW_SINGLE_SESSION=1 curl ... | bash:

WARN: Existing sandbox sessions detected. Onboarding may disrupt running agents.
WARN: Consider destroying existing sessions with 'nemoclaw <name> destroy' first.
WARN: Set NEMOCLAW_SINGLE_SESSION=1 to abort the installer when sessions are active.
installer continued to onboarding (exit 0)

Variable on the bash side, curl ... | NEMOCLAW_SINGLE_SESSION=1 bash:

WARN: Existing sandbox sessions detected. Onboarding may disrupt running agents.
ERROR: Aborting — NEMOCLAW_SINGLE_SESSION is set. Destroy existing sessions with 'nemoclaw <name> destroy' before reinstalling.
exit=1

Logs

Moving the assignment after the pipe fixes it:

curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_SINGLE_SESSION=1 bash

Checklist

  • [x] I confirmed this bug is reproducible
  • [x] I searched existing issues and this is not a duplicate

PicoNVIDIA avatar Sep 28 '26 20:09 PicoNVIDIA