From 9ca71f2da7909f26f8e28bddb8fbc2e17c482cee Mon Sep 17 00:00:00 2001 From: Ahmed Abushagur Date: Sun, 15 Mar 2026 10:56:42 -0700 Subject: [PATCH] fix: write channel stubs in openclaw config for dashboard rendering (#2657) Write disabled telegram and whatsapp channel entries during setup so the OpenClaw dashboard renders proper channel cards instead of showing "Unsupported type: . Use Raw mode." Users can then configure channels from the dashboard UI. Co-authored-by: Claude Opus 4.6 --- packages/cli/package.json | 2 +- packages/cli/src/shared/agent-setup.ts | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/packages/cli/package.json b/packages/cli/package.json index 1519f0e2..87899e45 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.18.8", + "version": "0.18.9", "type": "module", "bin": { "spawn": "cli.js" diff --git a/packages/cli/src/shared/agent-setup.ts b/packages/cli/src/shared/agent-setup.ts index 63149210..67aa15f3 100644 --- a/packages/cli/src/shared/agent-setup.ts +++ b/packages/cli/src/shared/agent-setup.ts @@ -418,6 +418,17 @@ async function setupOpenclawConfig( logWarn("Browser config setup failed (non-fatal)"); } + // Write channel stubs so the dashboard renders channel cards properly, + // even when the user hasn't configured them yet. Without stubs the + // dashboard shows "Unsupported type: . Use Raw mode." + await asyncTryCatchIf(isOperationalError, () => + runner.runServer( + "export PATH=$HOME/.npm-global/bin:$HOME/.bun/bin:$HOME/.local/bin:$PATH; " + + "openclaw config set channels.telegram.enabled false >/dev/null; " + + "openclaw config set channels.whatsapp.enabled false >/dev/null", + ), + ); + // Configure Telegram channel if a bot token was provided if (telegramBotToken) { const telegramResult = await asyncTryCatchIf(isOperationalError, () =>