You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Discord gateway WebSocket connection can enter an unrecoverable reconnect loop where it endlessly retries resume with ~1s backoff, never falling back to a fresh IDENTIFY. The only fix is a full gateway restart.
Observed behaviour
Discord WS closes with code 1006 (abnormal closure)
Provider immediately begins resume attempts at ~1s intervals
Every attempt fails with code 1005 (no status received)
Periodically logs: connection stalled: no HELLO received within 30000ms, forcing reconnect
Occasionally: WebSocket was closed before the connection was established (code 1006)
This continues indefinitely (observed 3.5+ hours) until the gateway process is restarted
During the spiral, Slow listener detected warnings appear (30-90s+ per MESSAGE_CREATE)
Expected behaviour
After N failed resume attempts, the provider should:
Invalidate the current session/resume token
Fall back to a fresh IDENTIFY (new session)
Or at minimum, use exponential backoff instead of constant 1s retries
Environment
OpenClaw 2026.2.9
Windows 10, Node v24.6.0
channels.discord.retry is configured but only affects API calls, not the WS gateway
Workaround
Full gateway restart clears the spiral every time.
Related
PR #5564 addresses "zombie reconnect" and code 4014 handling but not this specific resume-loop pattern.
Activity
sebslight commentedon Feb 13, 2026
Closing as duplicate of #13180. If this is incorrect, comment and we can reopen.