openclaw - 💡(How to fix) Fix v2026.3.28: Discord extension silently skipped during gateway startup — zero channels load despite valid config [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#57925Fetched 2026-04-08 01:56:04
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0

After updating from v2026.3.24 to v2026.3.28, all Discord channels stopped loading. The gateway starts, validates config, but silently skips all channel initialization. No Discord client startup messages appear in logs. openclaw channels list and openclaw status both show zero channels.

This matches the regression described in #57188 (Linux/systemd) but affects macOS/LaunchAgent as well.

Root Cause

Troubleshooting Attempted

  1. Config rebuild from scratch — preserved tokens/agents, rebuilt clean config manually. No effect.
  2. Downgrade to v2026.3.24 — caused AJV schema crash (Cannot read properties of undefined (reading 'type')) because config had been modified by v2026.3.28 doctor. Upgraded back.
  3. Restored config from pre-update backup — no effect.
  4. openclaw channels add — writes top-level token instead of accounts structure, still no channel loading.
  5. Multiple gateway restarts (launchctl kickstart, gateway restart command) — no effect.
  6. Disabled lossless-claw plugin — caused crash loop (context engine dependency) but Discord still didn't load during the brief moments gateway was up.

Fix Action

Fix / Workaround

Troubleshooting Attempted

  1. Config rebuild from scratch — preserved tokens/agents, rebuilt clean config manually. No effect.
  2. Downgrade to v2026.3.24 — caused AJV schema crash (Cannot read properties of undefined (reading 'type')) because config had been modified by v2026.3.28 doctor. Upgraded back.
  3. Restored config from pre-update backup — no effect.
  4. openclaw channels add — writes top-level token instead of accounts structure, still no channel loading.
  5. Multiple gateway restarts (launchctl kickstart, gateway restart command) — no effect.
  6. Disabled lossless-claw plugin — caused crash loop (context engine dependency) but Discord still didn't load during the brief moments gateway was up.

Impact

  • All 6 Discord bots offline for 48+ hours
  • No workaround found short of full reset
  • Only webchat (direct WebSocket) functional

Code Example

gateway: [lcm] Plugin loaded
gateway: canvas host mounted
gateway/heartbeat: started
gateway/health-monitor: started
gateway: agent model: anthropic/claude-sonnet-4-20250514
gateway: listening on ws://127.0.0.1:18789
cron: started
bonjour: advertised gateway

---

gateway/channels/discord: discord client initialized as 1486577378200391861 (Felicity)
gateway/channels/discord: discord client initialized as 1486590085708386487 (Tessa)
gateway/channels/discord: logged in to discord as 1486586180618158131 (Sarah)
gateway/channels/discord: discord client initialized as 1486519944211464323 (Samantha)
gateway/channels/discord: logged in to discord as 1486780930449346691 (Ivy)
gateway/channels/discord: logged in to discord as 1486589991063781416 (Joni)
RAW_BUFFERClick to expand / collapse

Bug Report: v2026.3.28 Discord channels silently fail to load on macOS

Title

v2026.3.28: Discord extension silently skipped during gateway startup — zero channels load despite valid config

Environment

  • OpenClaw: v2026.3.28 (f9b1079)
  • OS: macOS (Darwin 25.2.0, arm64, Mac Mini)
  • Node: v25.8.2
  • Install: Homebrew (/opt/homebrew/lib/node_modules/openclaw/)

Description

After updating from v2026.3.24 to v2026.3.28, all Discord channels stopped loading. The gateway starts, validates config, but silently skips all channel initialization. No Discord client startup messages appear in logs. openclaw channels list and openclaw status both show zero channels.

This matches the regression described in #57188 (Linux/systemd) but affects macOS/LaunchAgent as well.

Steps to Reproduce

  1. Have working v2026.3.24 install with Discord (6 accounts, guild routing, multi-agent setup)
  2. Update to v2026.3.28
  3. Gateway restarts
  4. All Discord channels go dark

Expected Behavior

Discord bots connect and appear in openclaw status Channels table.

Actual Behavior

  • Channels table completely empty
  • openclaw channels list shows "Chat channels:" with nothing listed
  • Gateway logs show zero Discord initialization (no "discord client initialized" messages)
  • Config validates successfully (openclaw config validate passes)
  • openclaw channels add --channel discord --token <token> writes config but doesn't fix loading
  • Extension files exist in /opt/homebrew/lib/node_modules/openclaw/dist/extensions/discord/

Troubleshooting Attempted

  1. Config rebuild from scratch — preserved tokens/agents, rebuilt clean config manually. No effect.
  2. Downgrade to v2026.3.24 — caused AJV schema crash (Cannot read properties of undefined (reading 'type')) because config had been modified by v2026.3.28 doctor. Upgraded back.
  3. Restored config from pre-update backup — no effect.
  4. openclaw channels add — writes top-level token instead of accounts structure, still no channel loading.
  5. Multiple gateway restarts (launchctl kickstart, gateway restart command) — no effect.
  6. Disabled lossless-claw plugin — caused crash loop (context engine dependency) but Discord still didn't load during the brief moments gateway was up.

Key Evidence from Logs

Full startup sequence from /tmp/openclaw/openclaw-2026-03-30.log:

gateway: [lcm] Plugin loaded
gateway: canvas host mounted
gateway/heartbeat: started
gateway/health-monitor: started
gateway: agent model: anthropic/claude-sonnet-4-20250514
gateway: listening on ws://127.0.0.1:18789
cron: started
bonjour: advertised gateway

Note the complete absence of any Discord-related lines between plugin loading and "listening on." Compare with working v2026.3.28 boot from March 28:

gateway/channels/discord: discord client initialized as 1486577378200391861 (Felicity)
gateway/channels/discord: discord client initialized as 1486590085708386487 (Tessa)
gateway/channels/discord: logged in to discord as 1486586180618158131 (Sarah)
gateway/channels/discord: discord client initialized as 1486519944211464323 (Samantha)
gateway/channels/discord: logged in to discord as 1486780930449346691 (Ivy)
gateway/channels/discord: logged in to discord as 1486589991063781416 (Joni)

Theory

Per #57188, openclaw doctor (run during update) injects Zod defaults into config. The channel extension loader then silently rejects the modified config structure. Config appears valid to config validate but the runtime channel loader disagrees.

Impact

  • All 6 Discord bots offline for 48+ hours
  • No workaround found short of full reset
  • Only webchat (direct WebSocket) functional

extent analysis

Fix Plan

To resolve the issue with Discord channels silently failing to load on macOS after updating to v2026.3.28, follow these steps:

  1. Revert Config Changes: Manually edit the configuration file to remove any Zod defaults injected by openclaw doctor. Specifically, look for any changes related to the Discord channel configuration and revert them to their original state.
  2. Update Channel Configuration: Ensure the Discord channel configuration is in the correct format. The openclaw channels add command should be used with the --channel and --token options to add each Discord channel individually.
  3. Verify Config: Run openclaw config validate to ensure the configuration is valid.
  4. Restart Gateway: Restart the gateway using launchctl kickstart or the gateway restart command.

Example code snippet to add a Discord channel:

openclaw channels add --channel discord --token <token>

Replace <token> with the actual token for the Discord channel.

Verification

To verify that the fix worked:

  1. Check the gateway logs for Discord-related lines, such as "discord client initialized" or "logged in to discord".
  2. Run openclaw status to ensure the Discord channels are listed in the Channels table.
  3. Run openclaw channels list to verify that the Discord channels are listed.

Extra Tips

  • Make sure to backup the configuration file before making any changes.
  • If issues persist, try resetting the configuration to its default state and re-adding the Discord channels.
  • Consider filing a bug report to prevent similar issues in the future.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING