Skip to content

Feishu group image messages silently dropped (not received by agent) #52553

@yasuoph

Description

@yasuoph

Description

Image messages sent in Feishu/Lark groups are silently dropped — the agent never receives them. Text messages in the same groups work fine.

Steps to Reproduce

  1. Configure Feishu channel with groupPolicy: open
  2. Send an image message in a Feishu group
  3. Check gateway logs

Expected Behavior

Image messages should be received and downloaded via resolveFeishuMediaList(), then made available to the agent as <media:image> with a local file path.

Actual Behavior

  • The image message event is not logged at all
  • Only text messages from the same group appear in logs
  • The image tool fails with: Local media file not found: img_v3_...
  • Verified via Lark API that the image messages exist and can be downloaded manually using messageResource.get

Evidence

Lark API confirms 9 image messages in group oc_3f... between timestamps 1774225115–1774225237, but OpenClaw gateway logs show zero image message receipts in that window. Only text messages are logged:

feishu[default]: received message from ou_... in oc_... (group)
feishu[default]: Feishu[default] message in group oc_...: 你有看我发给你的图片吗

No corresponding received message log entries for any of the image messages.

Environment

  • OpenClaw version: 2026.3.13
  • OS: macOS (Darwin 25.3.0 arm64)
  • Channel: Feishu (Lark domain, WebSocket connection)
  • Node: v24.14.0

Source Code Reference

The image handling code exists in extensions/feishu/src/bot.tsresolveFeishuMediaList() and uses downloadMessageResourceFeishu() from media.ts. Manual API calls to /open-apis/im/v1/messages/{msg_id}/resources/{file_key}?type=image succeed with the same tenant token.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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