hermes - 💡(How to fix) Fix [Feishu] MEDIA:/path/ attachments silently stripped — files not delivered

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

When using send_message with MEDIA:/path/to/file targeting a Feishu chat, the file attachment is silently stripped. The user receives only the text portion of the message. No error is raised.

Error Message

of the message. No error is raised.

Root Cause

When using send_message with MEDIA:/path/to/file targeting a Feishu chat, the file attachment is silently stripped. The user receives only the text portion of the message. No error is raised.

Fix Action

Fix / Workaround

Notes

  • Receiving files FROM Feishu works correctly (image_cache, document_cache)
  • Other platforms (Telegram, Discord) deliver MEDIA: attachments correctly
  • Workaround: use rsync (hermes-pull) to retrieve files locally
RAW_BUFFERClick to expand / collapse

Summary

When using send_message with MEDIA:/path/to/file targeting a Feishu chat, the file attachment is silently stripped. The user receives only the text portion of the message. No error is raised.

Environment

  • Hermes version: v0.12.0 (2026.4.30)
  • Platform: Feishu/Lark (WebSocket mode)
  • VPS: Ubuntu 24.04, Tencent Cloud SG
  • LLM: gpt-5.4-mini

Steps to reproduce

  1. Ask Hermes to send a .docx or .pptx file via Feishu
  2. Hermes calls: send_message( action="send", target="feishu:oc_xxx", message="Here is the file. MEDIA:/home/ubuntu/agentWork/inbox/report.docx" )
  3. User receives the text message only — no attachment delivered

Expected behavior

File is uploaded to Feishu and delivered as a native file attachment (like Telegram does).

Actual behavior

MEDIA: token is stripped silently. Only plain text is delivered. Hermes itself acknowledges: "send_message currently omits MEDIA attachments for Feishu"

Related issues

  • #16524 (audio sent as file attachment instead of voice bubble) — same function _send_uploaded_file_message in feishu.py appears to be involved

Notes

  • Receiving files FROM Feishu works correctly (image_cache, document_cache)
  • Other platforms (Telegram, Discord) deliver MEDIA: attachments correctly
  • Workaround: use rsync (hermes-pull) to retrieve files locally

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

File is uploaded to Feishu and delivered as a native file attachment (like Telegram does).

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING