NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[Ubuntu 24.04][CLI&UX] nemoclaw <name> sessions export --format tar fails — sandbox temp archive in /tmp/ blocked by workspace path check

Open lyral-commits opened this issue 5 months ago • 0 comments

Description

Running nemoclaw <name> sessions export --format tar always fails with exit 1. The command creates a temporary tar archive at /tmp/sessions-export-*.tgz inside the sandbox, then attempts to download it via openshell sandbox download. The sandbox download path validation correctly rejects /tmp/ as outside the workspace (/sandbox), which blocks the download and leaves the host with no archive. This is an internal conflict between two NemoClaw components: the sessions export implementation picks a temp path that the sandbox download security check refuses.

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

  1. Install NemoClaw v0.0.65:

    curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_INSTALL_TAG=v0.0.65 bash
    
  2. Onboard a sandbox with at least one recorded session:

    nemoclaw onboard
    
  3. Confirm a session exists:

    nemoclaw <name> sessions list
    
  4. Run the tar export (exact usage from --help examples):

    nemoclaw <name> sessions export --format tar --out /tmp/private.tgz
    
  5. Observe exit code:

    echo "exit: $?"
    
  6. Confirm archive was not created:

    ls -la /tmp/private.tgz
    

Expected Result

Steps 4–5: Command exits 0. A .tgz archive is written to /tmp/private.tgz containing the exported session JSONL files.

Step 6: /tmp/private.tgz exists and is openable by the user.

Actual Result

Steps 4–5:

Downloading sandbox:/tmp/sessions-export-main-e4dd7ab14006.tgz -> /tmp/private.tgz
Error:   × sandbox source path '/tmp/sessions-export-main-e4dd7ab14006.tgz' is outside the sandbox workspace (/sandbox)

Failed to download '/tmp/sessions-export-main-e4dd7ab14006.tgz' from sandbox '<name>' (exit 1).
exit: 1

Step 6: /tmp/private.tgz does not exist — no archive written to host.

sessions export --format tar creates its temp archive in the sandbox's /tmp/ directory, then calls openshell sandbox download to retrieve it. The sandbox download path check (which correctly guards against path traversal) rejects /tmp/ as outside /sandbox, blocking the transfer. The temp archive location needs to be inside /sandbox to be downloadable.

Logs

$ nemoclaw file-share-test sessions export --format tar --out /tmp/private.tgz; echo "exit: $?"
Downloading sandbox:/tmp/sessions-export-main-e4dd7ab14006.tgz -> /tmp/private.tgz
Error:   × sandbox source path '/tmp/sessions-export-main-e4dd7ab14006.tgz' is outside the sandbox workspace (/sandbox)

  Failed to download '/tmp/sessions-export-main-e4dd7ab14006.tgz' from sandbox 'file-share-test' (exit 1).
exit: 1

$ ls -la /tmp/private.tgz
ls: cannot access '/tmp/private.tgz': No such file or directory

NVB#6330350

lyral-commits avatar Jun 16 '26 07:06 lyral-commits