Skip to content

[Linux][Agent&Skills] nemoclaw v0.0.113 messaging bridge credentials not injected into sandbox — Discord and Slack channels fail to start on all tested platforms #9875

Closed

Description

@hulynn

Warning

Regression — worked in v0.0.111, broken in v0.0.113.

Description

In NemoClaw v0.0.113, Discord and Slack messaging bridges fail to start after successful wizard enrollment and sandbox rebuild. The OpenShell provider credentials (DISCORD_BOT_TOKEN, SLACK_BOT_TOKEN, SLACK_APP_TOKEN) are stored in the gateway bridge provider but are never injected into the sandbox container runtime environment. The sandbox proxy returns HTTP 500 "Credential placeholder could not be resolved" on every bridge API call. Both OpenClaw and NemoHermes agents are affected.

Platform scope: Fails on Linux (Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04 x86_64; DGX Spark aarch64). macOS could not be tested in v0.0.113 due to a separate onboard blocker.
Regression: Yes — Discord and Slack bridges connected successfully in v0.0.111; v0.0.113 broke credential injection.
OpenShell issue: No

Environment

Device:        Multiple Linux x86_64 servers + DGX Spark aarch64
OS:            Ubuntu 22.04, Ubuntu 24.04, Ubuntu 26.04; DGX Spark Ubuntu 24.04 aarch64
Architecture:  x86_64 and aarch64
Node.js:       v22.23.2
npm:           10.9.8
Docker:        Docker CE 29.x
OpenShell CLI: 0.0.101
NemoClaw:      v0.0.113
OpenClaw:      2026.7.x

Steps to Reproduce

  1. Install NemoClaw v0.0.113 and onboard any sandbox (OpenClaw or NemoHermes).
  2. Add Discord channel:
nemoclaw {sandbox} channels add discord

Enter Discord bot token and server ID when prompted. Confirm sandbox rebuild succeeds.
3. Check bridge status: nemoclaw {sandbox} logs | grep -i discord
4. Repeat with Slack: nemoclaw {sandbox} channels add slack (enter xoxb and xapp tokens).
5. Check: docker exec {container} printenv | grep DISCORD or grep SLACK

Expected Result

After wizard and rebuild, bridges start successfully. Logs show [discord] [default] provider ready / Slack WSS established. docker exec shows env vars set.

Actual Result

Discord bridge:

ERROR: Credential placeholder could not be resolved
[sandbox] OCSF CONFIG:FAIL_CLOSED [HIGH]
"Rejected provider environment refresh; unclassified credential key"
[discord] channel exited: Failed to resolve Discord application id — auto-restart N/10

Slack bridge:

[channels] slack.default.botToken missing from runtime environment
HTTP:UNKNOWN DENIED [policy:slack engine:credential-binding] [reason:credential_unavailable]
socket-mode Failed to retrieve a new WSS URL (statusCode = 500) — retries indefinitely

docker exec {container} printenv | grep DISCORD → (empty)
docker exec {container} printenv | grep SLACK → (empty)

nemoclaw {sandbox} doctor falsely reports "Summary: healthy" despite continuous bridge failures.

Related: GitHub issue #9869 covers the Discord-only, single-platform instance of this bug.

Logs

Discord log excerpt:
  ERROR hermes_plugins.discord_platform.adapter:
  [Discord] Failed to connect: 500 Internal Server Error (error code: 0):
  Credential placeholder could not be resolved
  [sandbox] OCSF CONFIG:FAIL_CLOSED [HIGH] "unclassified credential key"
  WARNING gateway.run: discord failed to connect

Slack log excerpt:
  [channels] slack.default.botToken expects SLACK_BOT_TOKEN but missing from runtime
  HTTP:UNKNOWN DENIED [policy:slack engine:credential-binding] [reason:credential_unavailable]
  socket-mode Failed to retrieve a new WSS URL (statusCode=500); retry 19/inf in 30s

Activity

  1. added
    NV QA
    UAT
    needs: triage
    on Aug 21, 2026
  2. added theissue type on Aug 21, 2026
  3. hulynn commented on Aug 21, 2026

    @hulynn
    ContributorAuthor

    Root cause found in source:

    src/lib/messaging/applier/openshell-provider.ts line 115 — buildProviderArgs() creates all messaging channel providers (Discord, Slack, Telegram, WeChat) with --type generic, but OpenShell 0.0.106 requires --type nemoclaw-mcp-v1 for credential binding to work.

    Because the type is wrong, the credential-binding policy engine rejects the provider and credentials (DISCORD_BOT_TOKEN, SLACK_BOT_TOKEN, etc.) are never injected into the sandbox runtime.

    MCP bridge providers already use the correct type (src/lib/actions/sandbox/mcp-bridge-provider-mutation.ts). The messaging channel applier was never updated to match.

    Fix: change --type generic to --type nemoclaw-mcp-v1 in buildProviderArgs(). Affects all messaging channels.

  4. added
    area: messaging
    area: integrations
    integration: discord
    integration: slack
    and removed
    needs: triage
    on Aug 21, 2026
  5. self-assigned this
    on Aug 21, 2026
  6. added a commit that references this issue on Aug 24, 2026
    203a607
  7. hulynn commented on Aug 24, 2026

    @hulynn
    ContributorAuthor

    V2C Verification — v0.0.114 — STILL REPRODUCES (FAIL)

    Fix PR: #9913 "fix(messaging): bind channel credentials to endpointless profile" (merged 2026-08-24T00:06:55Z). Confirmed via GitHub compare API that the merge commit is an ancestor of the v0.0.114 tag (0 commits ahead, 14 behind — fully contained). This PR is linked as the closing PR for both #9875 and #9869 (same fix, shared root cause), so this is a joint verification comment posted to both issues.

    Environment: Ubuntu 26.04 x86_64 server, NVIDIA GPU, upgraded to NemoClaw v0.0.114 via the official installer (nemoclaw --version → nemoclaw v0.0.114).

    Repro steps taken:

    1. Onboarded a fresh OpenClaw sandbox: NEMOCLAW_PROVIDER=ollama NEMOCLAW_MODEL=llama3.1:8b nemoclaw onboard --non-interactive --yes --name v2cbridge --agent openclaw ... — completed successfully, sandbox healthy.
    2. nemoclaw v2cbridge channels add discord with a Discord bot token + server ID:
      ✓ discord — already configured
      ✓ discord — server ID already set: <redacted>
      ✓ discord reply mode defaulted: @mentions only
      ✓ Registered discord bridge with the OpenShell gateway.
      Change queued. Run 'nemoclaw v2cbridge rebuild' to apply (add 'discord').
      
    3. nemoclaw v2cbridge rebuild --yes — rebuild completed successfully, discord policy preset applied (policy version 3 loaded).

    Confirmed the fix's registration path is active:

    $ openshell provider get v2cbridge-discord-bridge -g nemoclaw
    Provider:
      Id: 6fe6b808-8fb4-47a6-8a63-d9dcb78664de
      Name: v2cbridge-discord-bridge
      Type: nemoclaw-mcp-v1
      Resource version: 1
      Credential keys: DISCORD_BOT_TOKEN
    

    Type: nemoclaw-mcp-v1 is the new endpointless-profile provider type introduced by PR #9913 (replacing the old generic type) — so credential registration is going through the fixed code path.

    But the bridge still fails to start, with the exact original failure signature:

    $ nemoclaw v2cbridge logs --tail 200 | grep -i discord
    [discord] [default] starting provider
    [discord] channel resolve failed; using config entries. Discord API /users/@me/guilds failed (500): Credential placeholder could not be resolved
    [discord] [default] channel exited: Failed to resolve Discord application id
    [discord] [default] auto-restart attempt 1/10 in 5s
    ... (repeats through attempt 6/10, backing off)
    

    OpenShell OCSF audit log for the same window:

    [sandbox] [OCSF] HTTP:GET [INFO] ALLOWED GET http://discord.com:443/api/v10/users/@me [policy:discord engine:l7]
    [sandbox] [OCSF] HTTP:UNKNOWN [MED] DENIED UNKNOWN  [policy:discord engine:credential-binding] [reason:credential_unavailable]
    [sandbox] [OCSF] HTTP:GET [INFO] ALLOWED GET http://discord.com:443/api/v10/users/@me/guilds [policy:discord engine:l7]
    [sandbox] [OCSF] HTTP:UNKNOWN [MED] DENIED UNKNOWN  [policy:discord engine:credential-binding] [reason:credential_unavailable]
    

    docker exec <container> printenv | grep DISCORD → empty, same as originally reported.

    This is the same symptom described in both bug reports: a 500 "Credential placeholder could not be resolved" at the OpenShell proxy layer, never reaching Discord's real auth check (no invalid_auth/401 from Discord).

    Verdict: FAIL — still reproduces on v0.0.114. PR #9913 does land the new nemoclaw-mcp-v1 endpointless-profile registration (confirmed above via openshell provider get), but the sandbox-side runtime placeholder resolution (the OpenShell credential-resolve proxy call that returns HTTP 500) is still broken. The registration-side of the fix appears to be in place but the resolution-side is not, or requires a newer OpenShell CLI than the 0.0.106 in this build. Discord was fully exercised end-to-end (onboard → channels add → rebuild → sandbox runtime); Slack could not be pushed through the same path because channels add slack live-validates the bot token against Slack's real API before registration and rejects a synthetic token immediately (invalid_auth), so it never reaches the sandbox-side resolution step being tested here — but since both channels share the same OpenShell credential-resolve proxy described in the bug report, the Discord failure is direct evidence the shared root cause is not resolved.

    Leaving open/close status for QA triage — recommend routing back to dev given the fix does not appear complete.

  8. added
    area: security
    and removed on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

NV QAUATarea: integrationsarea: messagingarea: securityintegration: discordintegration: slack

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions