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
{{ message }}
Repository navigation
Discord: Messages lost when bot takes >2 min to respond (Slow listener timeout) #4864
When the Discord bot takes a long time (>2 minutes) to process and respond to a message, the response sometimes never arrives in Discord, even though the bot successfully completed the action.
Observed behavior
User sends message in Discord thread
Bot receives and processes message (confirmed via logs and session history)
Bot performs action (e.g., saves API key to config, restarts gateway)
Bot sends response — but response never appears in Discord
The user sees typing indicator for ~2 minutes, then nothing.
Log evidence
Slow listener detected: discord message handler took 132061ms
Environment
Windows 11
OpenClaw 2026.1.29
Discord thread (child of private channel)
Model: github-copilot/claude-opus-4.5
Hypothesis
When the listener takes >2 minutes, the Discord WebSocket connection may time out or lose sync, causing outbound messages to be dropped silently. Discord's WebSocket has a heartbeat interval and may consider the connection stale.
Workaround
Using webchat or parent channel for complex operations that might take >1 minute.
Additional context
This may be related to earlier lane processing issues with Discord threads:
Threads sometimes get stuck with messages in queue (lane enqueue without corresponding lane dequeue)
discord channels unresolved warnings appear in logs for thread IDs
Closing this automatically as stale due to inactivity and missing fresh reproduction context.
If this issue is still relevant on current builds, please re-open with exact version, configuration, and a minimal reproducible case. Sorry if this closure is incorrect.
Activity
openclaw-barnacle commentedon Feb 11, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
iwahbe commentedon Feb 11, 2026
I'm still seeing this error:
openclaw-barnacle commentedon Feb 19, 2026
This issue has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.
steipete commentedon Feb 22, 2026
Closing this automatically as stale due to inactivity and missing fresh reproduction context.
If this issue is still relevant on current builds, please re-open with exact version, configuration, and a minimal reproducible case. Sorry if this closure is incorrect.
fix(discord): prevent slow listeners from blocking gateway event queue