Skip to content

[All Platforms][CLI&UX] nemoclaw channels add without <channel> argument dumps raw stack trace instead of actionable usage hint #3719

Closed

Description

@zNeill

Description

Description

Running `nemoclaw  channels add` without specifying a channel name
(slack/telegram/discord) crashes with a full Node.js RequiredArgsError
stack trace instead of a concise "missing argument" message. The --help
output is also misleading: it shows `` at the end of the
description text rather than in the command syntax, making it look
optional.
Environment
Device:        DGX Spark (spark-dadc, 10.173.104.110) & MacOS
OS:            Ubuntu (FastOS 7.5.0, kernel 6.17.0-1014-nvidia)
Architecture:  aarch64
Node.js:       v22.22.3
OpenShell CLI: 0.0.39
NemoClaw:      v0.0.44 (latest)
OpenClaw:      2026.4.24
Steps to Reproduce
1. nemoclaw my-assistant channels add
   (without specifying channel name)
Expected Result
Concise error message:
  Missing required argument: channel (slack | telegram | discord)
  Usage: nemoclaw  channels add  [--dry-run]

And --help should show the argument in the command syntax:
  nemoclaw  channels add    Save messaging channel credentials and rebuild
Actual Result
Full stack trace dumped to terminal:

  RequiredArgsError: Missing 1 required arg:
  channel  Messaging channel
  See more help with --help
      at validateArgs (.../parser/validate.js:84:19)
      at validate (.../parser/validate.js:272:5)
      ...
      (30+ lines of internal oclif/Node.js stack)

Additionally, --help output is misleading:
  nemoclaw  channels add          Save messaging channel credentials and rebuild 

The  appears at the end of the description, not in the
command syntax column, making it look like part of the description
rather than a required positional argument.
Logs
Same issue affects all channels subcommands that require :
  channels add, channels remove, channels stop, channels start

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#6186927]

Activity

  1. added
    NV QA
    on May 18, 2026
  2. laitingsheng commented on May 18, 2026

    @laitingsheng
    Contributor

    Duplicate of #3704

  3. self-assigned this
    on May 26, 2026
  4. nvshaxie commented on May 26, 2026

    @nvshaxie
    Contributor

    Already fixed on main. Re-verified on HEAD 4f9b74983 (v0.0.50 line) per #nemoclaw-situation-room direction to re-check pre-v0.0.50 bugs.

    Root fix: #3635 (refactor(cli): align public dispatch with oclif conventions, merged 2026-05-19) — added RequiredArgsError to the friendly-formatting branch of isOclifParseError() in src/lib/cli/oclif-runner.ts. The user-friendly oclif help output now fires for missing-required-arg cases, replacing the raw stack trace.

    Verification by regression test on main: test/cli.test.ts:2099-2109 locks the exact post-fix behavior for all four channels {add,remove,start,stop} subcommands:

    for (const action of ["add", "remove", "start", "stop"]) {
      const missingChannel = runWithEnv(`alpha channels ${action} 2>&1`, { HOME: home });
      expect(missingChannel.code).toBe(PARSER_EXIT_CODE);
      expect(missingChannel.out).toContain("Missing 1 required arg:");
      expect(missingChannel.out).toContain("channel  Messaging channel");
      expect(missingChannel.out).toContain("USAGE");
      expect(missingChannel.out).toContain(
        `$ nemoclaw sandbox channels ${action} <name> <channel> [--dry-run]`,
      );
      expect(missingChannel.out).not.toContain("RequiredArgsError");
      expect(missingChannel.out).not.toContain("at validateArgs");
      expect(missingChannel.out).not.toContain(`Command alpha:channels:${action} not found`);
    }

    This covers all 3 reported symptoms (concise error, no stack trace, correct USAGE format).

    Sibling closed PR #3722 attempted the same fix on this issue's narrow path; it was superseded by the broader oclif-alignment refactor in #3635 which subsumes it.

    Closing as fixed by #3635. Reopen if any channels add/remove/start/stop invocation still produces a stack trace on v0.0.50+ on a fresh install.

  5. PrachiShevate-nv commented on May 27, 2026

    @PrachiShevate-nv

    Unable to reproduce the issue on v0.0.52. Closing the bug.

    local-mercl@2u2g-gen-0690:~$ nemoclaw my-assistant channels add
    › Error: Missing 1 required arg:
    › channel Messaging channel
    › See more help with --help

    USAGE
    $ nemoclaw sandbox channels add [--dry-run]

    ARGUMENTS
    SANDBOXNAME Sandbox name
    CHANNEL Messaging channel

    FLAGS
    -h, --help Show CLI help.
    --dry-run Preview the change without applying it

    Or use -h

    local-mercl@2u2g-gen-0690:~$ nemoclaw my-assistant channels add -h
    Save messaging channel credentials and rebuild

    USAGE
    $ nemoclaw sandbox channels add [--dry-run]

    ARGUMENTS
    SANDBOXNAME Sandbox name
    CHANNEL Messaging channel

    FLAGS
    -h, --help Show CLI help.
    --dry-run Preview the change without applying it

    DESCRIPTION
    Save messaging channel credentials and rebuild

    Store credentials for a messaging channel and queue a sandbox rebuild.

    EXAMPLES
    $ nemoclaw sandbox channels add alpha telegram

    local-mercl@2u2g-gen-0690:~$

  6. added
    area: cli
    and removed on Jun 3, 2026
  7. added theissue type on Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAarea: cli

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions