NemoClaw
NemoClaw copied to clipboard
[Ubuntu 24.04][CLI&UX] nemoclaw <openshell-op> error suggests connect instead of naming openshell cmd
Description
Description
When a user runs a natural-looking `nemoclaw ` form on v0.0.38 (e.g. `nemoclaw term`, `nemoclaw inference set`, `nemoclaw policy set`, `nemoclaw gateway stop`), the error message tells them to try `nemoclaw connect` — which does not solve their problem and does not point them to the actual openshell command they should use.
Meanwhile, `nemoclaw --help` DOES list openshell-only operations with their full openshell invocations (e.g. "Change inference model: openshell inference set -g nemoclaw --model --provider "). So the help system knows the right command — but the runtime error path doesn't surface it.
Per T560859 expected result:
"Each natural `nemoclaw` form returns a CLEAR, ACTIONABLE error:
- Non-zero exit
- Names the correct openshell command (e.g. 'Run: openshell term')
- NOT generic 'Unknown command', NOT a stack trace, NOT silent no-op"
Current behavior partially meets the bar (non-zero exit, not a crash) but
the actionable-hint piece is missing — the message redirects to a non-applicable
`nemoclaw connect` command.
Environment
Device: 2u1g-x570-1795 (10.63.136.90) OS: Ubuntu 24.04.4 LTS Architecture: x86_64 NemoClaw: v0.0.38 OpenShell CLI: openshell 0.0.36 Node.js: v22.22.2 npm: 10.9.7 Docker: 29.4.3 OpenClaw: 2026.4.24 Sandbox: ollama-base (already registered)Steps to Reproduce
1. Have at least one sandbox registered (e.g. `nemoclaw onboard --fresh --name ollama-base`)
2. Run each of the following:
nemoclaw term
nemoclaw inference set
nemoclaw policy set
nemoclaw gateway stop
3. Capture stdout/stderr and exit code for each.
Expected Result
Each command must return a non-zero exit AND a message that names the
correct openshell invocation, e.g.:
$ nemoclaw term
This command lives under openshell. Run:
openshell term
See `nemoclaw --help` for the full list of openshell-only operations.
exit 1
$ nemoclaw inference set
This command lives under openshell. Run:
openshell inference set -g nemoclaw --model --provider
exit 1
...etc
The hint should match the wording already present in `nemoclaw --help`'s
"Reconfiguration (after onboard)" section.
Actual Result
$ nemoclaw term
Sandbox 'term' does not exist.
Registered sandboxes: ollama-base
Run 'nemoclaw list' to see all sandboxes.
exit 1
$ nemoclaw inference set
Unknown command: inference
Registered sandboxes: ollama-base
Try: nemoclaw connect
Run 'nemoclaw help' for usage.
exit 1
$ nemoclaw policy set
Unknown command: policy
Registered sandboxes: ollama-base
Try: nemoclaw connect
Run 'nemoclaw help' for usage.
exit 1
$ nemoclaw gateway stop
Unknown command: gateway
Registered sandboxes: ollama-base
Try: nemoclaw connect
Run 'nemoclaw help' for usage.
exit 1
Issues:
1. The phrase "Try: nemoclaw connect" is a non-sequitur
— connect does not change inference, policy, or stop the gateway.
2. For `nemoclaw term`, the message treats "term" as a missing sandbox
name, rather than recognizing it as an openshell-only command and
pointing the user at `openshell term`.
3. The wording is also inconsistent across the four commands — the first
uses "does not exist", the rest use "Unknown command".
`nemoclaw --help` already contains the correct mapping (e.g.
"openshell inference set -g nemoclaw --model --provider ")
— the runtime error path should surface that same hint instead of the
generic "Try: nemoclaw connect".
Logs
Full T560859 capture:
/home/lab/day0-automation/20260511/report-T560859.txt
Related (different scenario — Fixed):
NVBug 6100085 — "Unknown command" instead of "sandbox not found"
when referencing destroyed sandbox. That was about
a destroyed sandbox; this report is about openshell-only
commands that the runtime knows are openshell-routed
(per --help text).
Bug Details
| Field | Value |
|---|---|
| Priority | Unprioritized |
| Action | Dev - Open - To fix |
| Disposition | Open issue |
| Module | Machine Learning - NemoClaw |
| Keyword | NemoClaw, NemoClaw_CLI&UX, NEMOCLAW_GH_SYNC_APPROVAL |
[NVB#6166936]
I opened PR #3447 to fix this: https://github.com/NVIDIA/NemoClaw/pull/3447
The fix updates the CLI guidance for OpenShell-only command shapes (nemoclaw term, nemoclaw policy set, nemoclaw gateway stop) and also suppresses the raw oclif validation stack trace for nemoclaw inference set.
Verified on Brev and with the focused CLI test suite.