Skip to content

Discord: Messages lost when bot takes >2 min to respond (Slow listener timeout) #4864

Closed

Description

@digitaldias

Problem

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

  1. User sends message in Discord thread
  2. Bot receives and processes message (confirmed via logs and session history)
  3. Bot performs action (e.g., saves API key to config, restarts gateway)
  4. 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

Activity

  1. added
    bug
    on Jan 31, 2026
  2. openclaw-barnacle commented on Feb 11, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  3. added
    stale
    on Feb 11, 2026
  4. iwahbe commented on Feb 11, 2026

    @iwahbe

    I'm still seeing this error:

    [discord] Slow listener detected: DiscordMessageListener took 54 seconds for event MESSAGE_CREATE
    
  5. removed
    stale
    on Feb 12, 2026
  6. openclaw-barnacle commented on Feb 19, 2026

    @openclaw-barnacle

    This issue has been automatically marked as stale due to inactivity.
    Please add updates or it will be closed.

  7. added
    stale
    on Feb 19, 2026
  8. steipete commented on Feb 22, 2026

    @steipete
    Contributor

    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.

  9. locked as resolved and limited conversation to collaborators on Mar 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugstale

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions