Skip to content

Feishu: Image messages trigger duplicate agent responses #28574

Description

@muskkkyang

Bug Report

Channel: Feishu (飞书)

Description:
When a user sends an image message via Feishu DM, the agent responds twice. This happens because the Feishu plugin fires two separate events for a single image message:

  1. First event: the message text / image_key notification
  2. Second event: the media attachment download notification

Both events trigger a full agent turn, resulting in duplicate responses and unnecessary token consumption.

Steps to Reproduce:

  1. Configure Feishu channel with a working bot
  2. Send an image (photo) in a DM to the bot
  3. Observe two separate responses from the agent

Expected Behavior:
Only one agent response per user message, regardless of whether the message contains media attachments.

Suggested Fix:
Deduplicate events by message ID before dispatching to the agent. If an event with the same message_id has already triggered an agent turn, skip the second event.

Impact:

  • Doubled token usage for every image message
  • Confusing UX (two different responses to the same message)
  • Reported by user on 2026-02-27

Environment:

  • OpenClaw version: 2026.2.15
  • Channel: feishu
  • Message type: image

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleMarked as stale due to inactivity

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions