Skip to content

[macOS][Agent&Skills] openclaw CLI crashes with PluginLoadFailureError after channels remove whatsapp — nemoclaw plugin cannot parse truncated JSON #3999

@mercl-lau

Description

@mercl-lau

Description

After running nemoclaw test333 channels remove whatsapp and rebuilding, any openclaw command inside the sandbox crashes during plugin registration with SyntaxError: Unexpected end of JSON input. The nemoclaw plugin fails to load, blocking all in-sandbox CLI operations including channels login, channels status, and tui.

Environment

Device:        MacBook Pro (Apple Silicon)
OS:            macOS 26.0.1 (Darwin 25.0.0, arm64)
Architecture:  arm64
Node.js:       v22.22.1
npm:           10.9.4
Docker:        29.2.1
OpenShell CLI: 0.0.39
NemoClaw:      v0.0.48
OpenClaw:      2026.4.24 (cbcfdf6)

Steps to Reproduce

  1. nemoclaw onboard --name test333 (complete onboard with NVIDIA Cloud API)
  2. nemoclaw test333 channels add whatsapp (rebuild)
  3. nemoclaw test333 connectopenclaw channels login --channel whatsapp (QR pair successfully)
  4. Exit sandbox
  5. nemoclaw test333 channels remove whatsapp (answer y to rebuild)
  6. nemoclaw test333 connect
  7. openclaw channels login --channel whatsapp (or any openclaw command)

Expected Result

  • Step 7: openclaw CLI starts normally; channels login either shows QR prompt or reports that whatsapp channel is not configured.

Actual Result

  • Step 7: openclaw CLI crashes immediately with PluginLoadFailureError.

Post-remove state inside sandbox:

  • /sandbox/.openclaw/extensions/nemoclaw/package.json — valid JSON
  • /sandbox/.openclaw/extensions/nemoclaw/openclaw.plugin.json — valid JSON
  • /sandbox/.openclaw/whatsapp/ — does not exist (removed)
  • /sandbox/.openclaw/state/*.json — none exist
  • /sandbox/.openclaw/plugins.json — does not exist

The nemoclaw plugin reads a JSON file during register that was either truncated or deleted by the channels remove + rebuild sequence.

Logs

10:28:51 [plugins] plugins.allow is empty; discovered non-bundled plugins
  may auto-load: nemoclaw (/sandbox/.openclaw/extensions/nemoclaw/dist/index.js).
  Set plugins.allow to explicit trusted ids.
10:28:55 [plugins] nemoclaw failed during register from
  /sandbox/.openclaw/extensions/nemoclaw/dist/index.js:
  SyntaxError: Unexpected end of JSON input
[openclaw] Failed to start CLI: PluginLoadFailureError:
  plugin load failed: nemoclaw: SyntaxError: Unexpected end of JSON input
    at maybeThrowOnPluginLoadError
      (file:///usr/local/lib/node_modules/openclaw/dist/loader-NucjcOgv.js:2712:8)
    at loadOpenClawPlugins
      (file:///usr/local/lib/node_modules/openclaw/dist/loader-NucjcOgv.js:3588:3)
    at resolveRuntimePluginRegistry
      (file:///usr/local/lib/node_modules/openclaw/dist/loader-NucjcOgv.js:2443:9)
    at resolveOrLoadRuntimePluginRegistry
      (file:///usr/local/lib/node_modules/openclaw/dist/runtime-registry-loader-CO1cck7F.js:37:7)
    at ensurePluginRegistryLoaded
      (file:///usr/local/lib/node_modules/openclaw/dist/runtime-registry-loader-CO1cck7F.js:68:2)
    at ensureCliPluginRegistryLoaded
      (file:///usr/local/lib/node_modules/openclaw/dist/command-execution-startup-Ch01qcCp.js:20:3)
    at async ensureCliCommandBootstrap
      (file:///usr/local/lib/node_modules/openclaw/dist/command-execution-startup-Ch01qcCp.js:47:2)
    at async ensureCliExecutionBootstrap
      (file:///usr/local/lib/node_modules/openclaw/dist/command-execution-startup-Ch01qcCp.js:295:2)

NVB#6200415

Metadata

Metadata

Assignees

Labels

NV QABugs found by the NVIDIA QA Teamarea: cliCommand line interface, flags, terminal UX, or outputintegration: whatsappWhatsApp integration or channel behaviorplatform: macosAffects macOS, including Apple Silicon

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions