[Ubuntu 24.04][CLI&UX] nemoclaw <name> download writes to ~/.nemoclaw/source/ instead of CWD when second argument is omitted
Description
When running nemoclaw <name> download <sandbox-path> with only one positional argument (no host destination), the file is written to ~/.nemoclaw/source/<basename> instead of the current working directory. The command reports "✓ Download complete" with exit code 0 — a silent false positive that makes the failure undetectable by scripts or users who trust the exit code.
Environment
Device: NVIDIA 2u2g-gen-0642 (RTX PRO 6000 Blackwell Server Edition)
OS: Ubuntu 24.04.4 LTS
Architecture: x86_64
Node.js: v22.22.3
npm: 10.9.8
Docker: 29.4.3, build 055a478
OpenShell CLI: 0.0.44
NemoClaw: v0.0.65
OpenClaw: v2026.5.27
Steps to Reproduce
-
Install NemoClaw v0.0.65:
curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_INSTALL_TAG=v0.0.65 bash -
Onboard a sandbox (name: file-share-test):
nemoclaw onboard -
Create a 1 MB test file inside the sandbox:
openshell sandbox exec -n file-share-test -- bash -c \ "mkdir -p /sandbox/work && dd if=/dev/urandom of=/sandbox/work/download.txt bs=1M count=1" -
Create an empty target directory on the host and cd into it:
mkdir -p /tmp/dl-default && cd /tmp/dl-default -
Run
nemoclaw downloadwith only the sandbox path (omit host destination):nemoclaw file-share-test download /sandbox/work/download.txt -
Observe the output and exit code:
echo "exit: $?" -
Check whether the file was written to CWD:
ls -la /tmp/dl-default/ -
Locate where the file actually landed:
find ~ -name "download.txt" -newer /tmp/upload.txt 2>/dev/null
Expected Result
Steps 5–6: Command exits 0.
Step 7: /tmp/dl-default/download.txt exists with the expected size and checksum.
Default host destination for nemoclaw <name> download <sandbox-path> (one positional arg) is the current working directory, placing the file at ./<basename>.
Actual Result
Steps 5–6:
Downloading sandbox:/sandbox/work/download.txt -> .
✓ Download complete
exit: 0
Step 7: /tmp/dl-default/ is EMPTY — no file written to CWD.
Step 8: File found at ~/.nemoclaw/source/download.txt (not in CWD).
The command silently writes to ~/.nemoclaw/source/ instead of CWD, reports success, and exits 0. The displayed destination path . is incorrect.
Logs
$ mkdir -p /tmp/dl-default && cd /tmp/dl-default && nemoclaw file-share-test download /sandbox/work/download.txt; echo "exit: $?"
Downloading sandbox:/sandbox/work/download.txt -> .
✓ Download complete
exit: 0
$ ls -la /tmp/dl-default/
total 44
drwxrwxr-x 2 local-lynnh local-lynnh 4096 Jun 16 06:14 .
drwxrwxrwt 133 root root 36864 Jun 16 06:21 ..
$ find ~ -name "download.txt" -newer /tmp/upload.txt 2>/dev/null
/localhome/local-lynnh/.nemoclaw/source/download.txt