Skip to content

[Bug]: Feishu channel duplicates messages - event deduplication needed #37477

@joshlee525-tech

Description

@joshlee525-tech

Bug type

Behavior bug (incorrect output/state without crash)

Summary

When using the Feishu channel, every message sent by the user is received twice by the AI agent, causing duplicate replies.

Steps to reproduce

  1. Configure Feishu channel with app credentials
  2. Send any message to the bot in DM
  3. Observe that the agent receives two identical events
  4. Agent replies twice to the same message

Expected behavior

Each message should be processed exactly once.

Actual behavior

Each message is processed twice, causing duplicate replies.

OpenClaw version

2026.2.13

Operating system

Ubuntu 24.04 (Linux 6.8.0)

Install method

npm global

Logs, screenshots, and evidence

Impact and severity

  • Affected: Feishu DM users
  • Severity: High (extremely annoying, poor UX)
  • Frequency: 100% reproducible
  • Consequence: Users receive duplicate responses for every message

Additional information

Root cause: Feishu webhook may retry or send duplicate events. OpenClaw gateway does not deduplicate based on event_id.

Suggested fix: Implement event deduplication using event_id with 60s TTL cache.

// Pseudo-code:
const processedEvents = new Map();
function handleEvent(event) {
if (processedEvents.has(event.event_id)) return;
processedEvents.set(event.event_id, Date.now());
// process event...
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug:behaviorIncorrect behavior without a crash

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions