NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[DGX Spark][Sandbox] WeChat plugin install registry and channel block missing in sandbox openclaw.json after onboard — seed-wechat-accounts late-seed not effective

Open mercl-lau opened this issue 6 months ago • 3 comments

Description

After onboarding a sandbox with WeChat channel enabled via non-interactive env vars (WECHAT_ACCOUNT_ID, WECHAT_BASE_URL, etc.), the sandbox openclaw.json is missing both the plugin install registry entry (plugins.installs["openclaw-weixin"]) and the channel block (channels["openclaw-weixin"]). The plugin entries section has enabled=True for openclaw-weixin, but the install registry and channel configuration that seed-wechat-accounts.py is supposed to restore after openclaw plugins install are absent.

This means the WeChat bridge cannot function inside the sandbox — the gateway has no channel configuration to connect to, even though the wechat policy preset was applied and nemoclaw status shows wechat in the policy list.

Environment

Device:        DGX Spark (NVIDIA GB10, unified memory 124609 MB)
OS:            Ubuntu 24.04.4 LTS (aarch64)
Architecture:  aarch64
Node.js:       v24.15.0
npm:           11.12.1
Docker:        Docker CE
OpenShell CLI: 0.0.44
NemoClaw:      v0.0.50
OpenClaw:      v2026.5.18

Steps to Reproduce

  1. Export WeChat config:
    export NEMOCLAW_SANDBOX_NAME=wechat-reg-test
    export NEMOCLAW_NON_INTERACTIVE=1
    export NEMOCLAW_ACCEPT_THIRD_PARTY_SOFTWARE=1
    export NEMOCLAW_POLICY_TIER=open
    export NVIDIA_API_KEY=nvapi-...
    export WECHAT_ACCOUNT_ID=build_reg_test
    export WECHAT_BASE_URL=https://ilinkai.wechat.com
    export WECHAT_USER_ID=self_uid_42
    export WECHAT_ALLOWED_IDS=friend_uid_1
    
  2. Run: nemoclaw onboard (exit code 0, sandbox created)
  3. Inside sandbox, check plugin install registry:
    python3 -c "import json; d=json.load(open('/sandbox/.openclaw/openclaw.json')); inst=d.get('plugins',{}).get('installs',{}).get('openclaw-weixin',{}); print('source:', inst.get('source','MISSING')); print('spec:', inst.get('spec','MISSING'))"
    
  4. Check plugin enabled flag:
    python3 -c "import json; d=json.load(open('/sandbox/.openclaw/openclaw.json')); e=d.get('plugins',{}).get('entries',{}).get('openclaw-weixin',{}); print('enabled:', e.get('enabled','MISSING'))"
    
  5. Check channel block:
    python3 -c "import json; d=json.load(open('/sandbox/.openclaw/openclaw.json')); ch=d.get('channels',{}); print('weixin_present:', 'openclaw-weixin' in ch)"
    

Expected Result

  • Step 3: source: npm, spec: @tencent-weixin/[email protected] (install registry restored by late seed)
  • Step 4: enabled: True
  • Step 5: weixin_present: True (channel block present)

Actual Result

  • Step 3: source: MISSING, spec: MISSING — plugins.installs["openclaw-weixin"] does not exist
  • Step 4: enabled: True — plugin entry exists but install registry is gone
  • Step 5: weixin_present: False — channels["openclaw-weixin"] block is absent

nemoclaw status shows wechat in policy list, but the actual channel configuration inside sandbox openclaw.json is missing.

Logs

$ nemoclaw wechat-reg-test status | head -12
  Sandbox: wechat-reg-test
    Model:    nvidia/nemotron-3-super-120b-a12b
    Provider: nvidia-prod
    Inference: healthy
    Policies: npm, pypi, huggingface, brew, slack, discord, telegram, wechat, whatsapp, jira, outlook

$ nemoclaw wechat-reg-test exec -- python3 -c "..."
source: MISSING
spec: MISSING
enabled: True
weixin_present: False

NVB#6222825

mercl-lau avatar May 26 '26 10:05 mercl-lau

Confirmed on NemoClaw v0.0.50 / OpenClaw 2026.5.18 on DGX Spark (aarch64). Telegram bridge silently fails to start after onboard — no errors in logs, gateway starts cleanly, but no Telegram polling begins. web_fetch to host.openshell.internal also blocked by SSRF guard despite local-inference policy with allowed_ips configured. Both issues appear fixed in OpenClaw 2026.5.22 based on release notes. Please bundle 2026.5.22 in next NemoClaw release.

convexchaos avatar May 26 '26 14:05 convexchaos

I double-checked the onboarding code and confirmed this happens when WECHAT_BOT_TOKEN is not set. In non-interactive mode, the WeChat channel is activated only when WECHAT_BOT_TOKEN is present; the other WECHAT_* values are metadata/allowlist inputs and do not enable the channel by themselves. With WECHAT_BOT_TOKEN added to the same setup, the provider is attached and channels.openclaw-weixin is seeded correctly, so I’m closing this as a configuration issue.

sandl99 avatar May 27 '26 16:05 sandl99

Verified fixed on NemoClaw v0.0.52 / OpenClaw 2026.5.22 (DGX Spark 10.173.104.110, Ubuntu 24.04 aarch64, 2026-05-28).

Plugin registry in fresh onboard's /sandbox/.openclaw/openclaw.json:

"plugins": {
  "entries": {
    "openclaw-weixin": { "enabled": true },
    "nemoclaw":        { "enabled": true },
    "qqbot":           { "enabled": false },
    ... (provider entries)
  }
}

openclaw-weixin plugin entry is now seeded with enabled: true at onboard time, addressing the original "seed-wechat-accounts late-seed not effective" gap. NVBug #6222825 marked QA - Closed - Verified.

Noting @sandl99's clarification above: in non-interactive mode the wechat channel itself is intentionally not seeded into the channels block unless WECHAT_BOT_TOKEN is provided (the other WECHAT_* values are metadata/allowlist inputs and don't enable the channel by themselves). My initial concern about the channels block being {"defaults": {}} was addressing that — withdrawn given the design intent.

Cross-link: @convexchaos's separate observation that "Telegram bridge silently fails to start after onboard — no errors in logs, gateway starts cleanly, but no Telegram polling begins" is the same symptom I filed yesterday at #4314 (NVB#6229872) — both report the messaging bridge process not spawning inside the sandbox after channels add … + rebuild. Likely worth merging triage on the bridge-spawn side since the symptom is identical across WeChat / Telegram channels.

wangericnv avatar May 28 '26 03:05 wangericnv