-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
[Bug]: Discord bot sends duplicate replies to the same message #37844
Copy link
Copy link
Open
zoe531/openclaw
#1Labels
bugSomething isn't workingSomething isn't workingregressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
Bug type
Regression (worked before, now fails)
Summary
Discord bot sends duplicate replies to the same message (same message_id triggers two responses)
Steps to reproduce
- Configure Discord as a messaging channel
- Send a message to the bot (direct message or group)
- Observe that the bot sends two replies instead of one
Expected behavior
The bot should send exactly one reply to each incoming message.
Actual behavior
The bot sends two replies to the same message. Both replies have the same message_id. The second reply is often more detailed than the first, suggesting the first attempt may have timed out or been truncated.
OpenClaw version
2026.3.2
Operating system
macOS 25.3.0 (arm64) - Apple M2
Install method
npm global
Logs, screenshots, and evidence
Impact and severity
No response
Additional information
Logs
Duplicate Tool Execution
2026-03-06T12:38:47.345Z error [tools] exec failed: ...
2026-03-06T12:38:47.349Z error [tools] exec failed: ... (4ms later)
Slow Listener
Slow listener detected: duration 74.2 seconds
Slow listener detected: duration 81.1 seconds
Slow listener detected: duration 147.7 seconds
Root Cause
- Tools are executed twice within 2-4ms intervals
- Message processing takes 40-147 seconds (should be <5s)
- Session queue bottleneck with 100+ active sessions
Suggested Fixes
- Fix duplicate tool execution
- Optimize Discord message listener
- Add deduplication for replies
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingregressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Give feedbackNo fields configured for issues without a type.