Description
Description
The nemoclaw logs subcommand only implements --follow. Flags --tail N, --since , and --help are silently accepted but ignored — the command returns the full log dump (~200 lines) regardless of any flag passed. No error or warning is shown to indicate the flags have no effect.
Environment
Device: Station
OS: Ubuntu 24.04.4 (aarch64)
Architecture: aarch64
OpenShell CLI: 0.0.36
NemoClaw: v0.0.31
Steps to Reproduce
With a running sandbox named "my-assistant":
1. nemoclaw my-assistant logs
(works, returns full log)
2. nemoclaw my-assistant logs --tail 50
(expected: last 50 lines; actual: full dump ~180 lines)
3. nemoclaw my-assistant logs --since 5m
(expected: logs from last 5 minutes; actual: full dump)
4. nemoclaw my-assistant logs --help
(expected: flag usage printed; actual: full log dump executed)
Expected Result
--tail N → return only the last N lines
--since T → return only logs from the last T duration
--help → print flag usage and exit 0 without fetching logs
Actual Result
All three flags are silently ignored. Full log dump (~180 lines) is returned in all cases.
No error, no warning, no indication that the flags had no effect.
nemoclaw my-assistant logs --follow ✅ works correctly (streaming)
nemoclaw my-assistant logs --tail 50 ❌ returns full dump, --tail ignored
nemoclaw my-assistant logs --since 5m ❌ returns full dump, --since ignored
nemoclaw my-assistant logs --help ❌ executes logs instead of showing help
Root Cause
src/nemoclaw.ts — logs handler:
sandboxLogs(cmd, actionArgs.includes("--follow"));
Only --follow is checked. All other flags in actionArgs are discarded.
src/nemoclaw.ts — buildSandboxLogsArgs() hardcodes:
["logs", sandboxName, "-n", "200", "--source", "all"]
User-supplied --tail / --since values are never read or forwarded.
src/lib/command-registry.ts — logs command registered with:
flags: "[--follow]"
No --tail, --since, or --help flags are defined.
Logs
Confirmed via code analysis: src/nemoclaw.ts (logs handler, buildSandboxLogsArgs).
Observed on galaxy-sku2-018 (NemoClaw v0.0.31, Ubuntu 24.04.4 aarch64).
Affects all platforms (CLI parsing issue, not platform-specific).
]]>
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, NemoClaw-SWQA-RelBlckr-Recommended |
[NVB#6130440]
Description
Description
Environment Steps to Reproduce Expected Result Actual Result Root Causesrc/nemoclaw.ts — logs handler: sandboxLogs(cmd, actionArgs.includes("--follow")); Only --follow is checked. All other flags in actionArgs are discarded. src/nemoclaw.ts — buildSandboxLogsArgs() hardcodes: ["logs", sandboxName, "-n", "200", "--source", "all"] User-supplied --tail / --since values are never read or forwarded. src/lib/command-registry.ts — logs command registered with: flags: "[--follow]" No --tail, --since, or --help flags are defined.Logs ]]>Bug Details
[NVB#6130440]