NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

Sandbox name not quoted in shell commands in onboard.js

Open ericksoa opened this issue 8 months ago • 0 comments

Summary

bin/lib/onboard.js interpolates the sandbox name into shell commands without quoting, causing failures when the name contains spaces or when the prompt captures unexpected input.

Affected lines

  • Line 165: `openshell sandbox delete ${sandboxName}`
  • Line 184: `--name ${sandboxName}`
  • Line 195: `openshell sandbox create ${createArgs.join(" ")}`
  • Line 198: `openshell forward start --background 18789 ${sandboxName}`

Observed failure

Sandbox name became `"nemoclaw my-assistant connect"` (prompt captured extra input), causing: ``` error: unexpected argument 'my-assistant' found ```

Fix

Quote `${sandboxName}` in all shell commands, and validate the name (alphanumeric + hyphens only) before use.

ericksoa avatar Mar 17 '26 10:03 ericksoa