[All Platforms][Docs] NEMOCLAW_SINGLE_SESSION example sets the variable on curl, so the installer never sees it
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
- Copy the guard block from
scripts/install.sh:7720-7731into a small script, with stubwarn/errorfunctions andregistered_sandbox_countreturning 1. - Pipe that script through
curlintobashusing the documented form. - Do the same with the variable after the pipe.
Environment
- macOS 26.5.2 (arm64)
- NemoClaw
mainat5f6eb3232 - 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