hermes - ✅(Solved) Fix Feishu: send_message MEDIA 图片发送不支持 [1 pull requests, 2 comments, 2 participants]

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…
GitHub stats
NousResearch/hermes-agent#18161Fetched 2026-05-01 05:53:37
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Participants
Timeline (top)
labeled ×4commented ×2cross-referenced ×1

Fix Action

Fixed

PR fix notes

PR #18162: fix: route media files to Feishu send_message pipeline

Description (problem / solution / changelog)

Summary

The Feishu adapter (feishu.py) already fully supports send_image_file, send_document, and send_video. The _send_feishu() function accepts media_files parameter and iterates over them correctly. However, the routing layer in _send_to_platform() silently dropped media_files for Feishu.

Changes

1. Added Feishu chunked-send media block (lines 591-604)

Matching the Telegram/Discord/Yuanbao pattern: chunks the message, passes media_files on the last chunk only, returns early when media is present.

2. Updated non-media fallback error message (line 610)

Added feishu to the supported platforms list in the error text.

3. Updated media-omitted warning text (line 618)

Added feishu to the supported platforms list in the warning text.

Behavior Change

Before: send_message with MEDIA: to Feishu returned error After: send_message with MEDIA: to Feishu delivers native image bubble

Test

Sent a PNG image via send_message with MEDIA: prefix to Feishu DM:

  • Image delivered as native image bubble ✅
  • Previously returned "MEDIA delivery not supported" error — no longer occurs ✅

Related

Fixes: #10136, #17418 Related: #6421, #10392, #12461 Closes: #18161

Changed files

  • tools/send_message_tool.py (modified, +17/-2)

Code Example

send_message MEDIA delivery is currently only supported for
telegram, discord, matrix, weixin, signal and yuanbao
RAW_BUFFERClick to expand / collapse

问题描述

send_message 工具向飞书发送 MEDIA: 图片时失败,返回错误:

send_message MEDIA delivery is currently only supported for
telegram, discord, matrix, weixin, signal and yuanbao

原因

飞书适配器(gateway/platforms/feishu.py)已经实现了 send_image_file、send_document、send_video,_send_feishu() 函数也接受 media_files 参数。但路由层 _send_to_platform() 在 tools/send_message_tool.py 中漏掉了飞书的分支(第 591-627 行)。

修复

已提交 PR:参照 Telegram/Discord/Yuanbao 模式,为飞书添加 chunked-send 媒体通道。

环境

  • Hermes v0.12.0 (v2026.4.30)
  • 飞书 WebSocket 模式
  • WSL2 + Windows 11

Closes #10136

extent analysis

TL;DR

The issue can be fixed by adding a missing branch for Feishu in the _send_to_platform() function to support media delivery.

Guidance

  • Review the PR that has been submitted to add chunked-send media channel for Feishu, similar to Telegram, Discord, and Yuanbao.
  • Verify that the _send_to_platform() function in tools/send_message_tool.py now includes a branch for Feishu.
  • Check the Feishu adapter in gateway/platforms/feishu.py to ensure it is correctly implemented for sending media files.
  • Test the send_message tool with Feishu to confirm that media delivery is working as expected.

Example

No code snippet is provided as the issue implies that a PR has already been submitted with the necessary changes.

Notes

The fix is specific to the Hermes v0.12.0 version and may not apply to other versions. The issue is resolved with the submitted PR, but it's essential to verify the changes and test the functionality.

Recommendation

Apply the workaround by merging the submitted PR, as it adds the necessary support for media delivery on Feishu.

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…

Still need to ship something?

×6

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

Back to top recommendations

TRENDING

hermes - ✅(Solved) Fix Feishu: send_message MEDIA 图片发送不支持 [1 pull requests, 2 comments, 2 participants]