Repository navigation
Description
Summary
After updating from openclaw@2026.3.24 to 2026.5.2 (and confirmed still broken on 2026.5.3), the Discord channel never finishes its WebSocket gateway handshake. The bot logs discord client initialized as <id>; awaiting gateway readiness and then nothing further. No messageCreate events ever fire, so the agent never wakes when users send Discord messages.
Outbound text (sending messages from the bot) works fine.
Inbound dispatch (receiving messages from Discord) is silently broken — no error, no timeout, no reconnect.
Affected versions
openclaw@2026.5.2✗@openclaw/discord@2026.5.2✗openclaw@2026.5.3✗@openclaw/discord@2026.5.3✗ (note: 2026.5.3 changelog mentions plugin install hardening but not this issue)
Last working version
openclaw@2026.3.24 + bundled discord channel — fully working inbound + outbound.
Environment
- Host: macOS (Apple Silicon, Mac mini)
- Node: v25.9.0
- Install: global npm (
/opt/homebrew/lib/node_modules/openclawand@openclaw/discord) - Gateway runs as a LaunchAgent
- Discord bot intents:
MESSAGE CONTENT (limited)enabled (un-verified bot, <100 servers) - Discord network reachability verified:
GET https://discord.com/api/v10/gateway→ 200 in ~90msGET https://discord.com/api/v10/gateway/bot(with bot token) → 200 with validsession_start_limit(986/1000 remaining)
What we see in the log
After openclaw gateway restart:
[gateway] http server listening (1 plugin: discord)
[gateway] gateway ready
[channels/discord] [default] starting provider (@<bot_name>)
[channels/discord] discord channels resolved: <guild>/<channel> (...)
[channels/discord] discord users resolved: <user_id>
[channels/discord] discord channel users resolved: <user_id>
[channels/discord] discord client initialized as <bot_id>; awaiting gateway readiness
Then silence. No additional channels/discord log lines appear — not even after sending real Discord messages from a known-allowlisted user in an allowlisted channel.
openclaw channels status reports Discord default: enabled, configured, running, connected, bot:@<name>, token:config, intents:content=limited — i.e., it self-reports "connected" but the gateway never finishes the READY opcode handshake.
Reproduction steps
npm install -g openclaw@2026.5.3 @openclaw/discord@2026.5.3- Configure a Discord channel with a valid bot token, an allowlisted guild, channel, and user.
openclaw gateway restart- Wait 30+ seconds.
- Send a Discord message from the allowlisted user in the allowlisted channel.
- Observe: no inbound event in the gateway log; the agent never wakes.
Additional notes
- I previously hit a separate but related issue where
~/.openclaw/npm/node_modules/@openclaw/discordwas a source-only package (only.tsfiles, nodist/). The 2026.5.3 install hardening flagged it (installed plugin package requires compiled runtime output for TypeScript entry setup-entry.ts). I cleaned it (npm install @openclaw/discord@2026.5.3 --no-savein~/.openclaw/npm) and the warning went away — but the inbound regression persisted, so it appears unrelated. - The bot token works:
users/@mehad been timing out at ~2.5s on 2026.5.2 in earlier sessions, but a directcurlto/gateway/botwith the bot token returns 200 quickly. So this is not a network or token issue. - An outbound send (announce-mode cron job) succeeds and delivers, confirming the REST path is healthy.
- I tried disabling
channels.discord.voice.enabledand switchingmessages.tts.autofromalways→tagged(those changes were needed to fix a separatediscordVoice outbound adapter is unavailablecron-delivery error) — neither affected inbound.
Workaround
Heartbeat polling at 1m or 1h instead of WebSocket-driven inbound. This keeps the agent reachable but adds substantial token cost and latency.
What would help diagnose
- A way to enable verbose debug logging on the Discord gateway WebSocket frames (current
openclaw channels logs --channel discordfilter returns "No matching log lines" even when there are clearlychannels/discordlines in the raw log file — that filter looks broken too). - Confirmation whether anyone else with
intents.content=limited(un-verified bot, <100 servers) is hitting the same regression, or whether it's specific to that intent configuration.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon May 4, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Summary
Keep open: this is a concrete shipped Discord regression report, and current main has adjacent readiness/status hardening but not enough proof that the 2026.5.2/2026.5.3 inbound READY hang is fixed.
Reproducibility: no. The issue includes concrete shipped-package steps, but this review did not have Discord credentials and current-main source inspection did not expose a deterministic failing READY path.
Next step
Manual review is appropriate because this is a recent shipped Discord live-regression report with clear symptoms but no current-main or lab reproduction yet.
Review details
Best possible solution:
Keep the issue open and isolate whether the packaged Discord gateway fails before HELLO, IDENTIFY, READY, or listener dispatch; then land a narrow Discord plugin fix with regression coverage and a changelog entry.
Do we have a high-confidence way to reproduce the issue?
No. The issue includes concrete shipped-package steps, but this review did not have Discord credentials and current-main source inspection did not expose a deterministic failing READY path.
Is this the best way to solve the issue?
Unclear. The maintainable fix likely belongs in the Discord plugin gateway startup/readiness path, but the root cause should be isolated before changing intents, timers, or status semantics.
Acceptance criteria:
What I checked:
discord client initialized ... awaiting gateway readiness.docs/channels/discord.md. (docs/channels/discord.md:8, 4820b701a597)gateway.isConnected, restarts once after a startup READY timeout, and recordsstartup-not-ready; this should prevent a silent indefinite startup wait but does not prove the reported live READY hang is fixed. (extensions/discord/src/monitor/provider.lifecycle.ts:340, 4820b701a597)extensions/discord/src/internal/gateway.ts:320, 4820b701a597)extensions/discord/src/monitor/provider.lifecycle.test.ts:336, 4820b701a597)CHANGELOG.md:42, 4820b701a597)Likely related people:
extensions/discord/src/monitor/provider.lifecycle.ts,extensions/discord/src/monitor/gateway-plugin.ts,extensions/discord/src/internal/gateway.ts)extensions/discord/src/channel.ts,extensions/discord/src/monitor/provider.lifecycle.ts,CHANGELOG.md)Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 4820b701a597.
steipete commentedon May 4, 2026
Fixed on main in c3c7c2d.
What changed:
Verification:
Closing as fixed.