fix(feishu): handle message_type "media" for video downloads#25502
Merged
Takhoffman merged 2 commits intoopenclaw:mainfrom Feb 28, 2026
Merged
fix(feishu): handle message_type "media" for video downloads#25502Takhoffman merged 2 commits intoopenclaw:mainfrom
Takhoffman merged 2 commits intoopenclaw:mainfrom
Conversation
Feishu mobile app sends video messages with message_type="media" instead of "video". Add "media" as a fallback case in three locations: 1. resolveFeishuMediaList() - mediaTypes array 2. parseMediaKeys() - switch/case for file_key extraction 3. inferPlaceholder() - switch/case for placeholder text Fixes openclaw#25499
4c73e33 to
d4055c8
Compare
Contributor
|
PR #25502 - fix(feishu): handle message_type "media" for video downloads (#25502) Merged via squash.
Thanks @4ier! |
r4jiv007
pushed a commit
to r4jiv007/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
mylukin
pushed a commit
to mylukin/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit 512aa02)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit 512aa02)
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit 512aa02)
vincentkoc
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
vincentkoc
pushed a commit
to rylena/rylen-openclaw
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
newtontech
pushed a commit
to newtontech/openclaw-fork
that referenced
this pull request
Feb 28, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
wanjizheng
pushed a commit
to wanjizheng/openclaw
that referenced
this pull request
Mar 1, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
6 tasks
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 1, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit e4cb6a8) # Conflicts: # CHANGELOG.md # extensions/feishu/src/bot.ts
ansh
pushed a commit
to vibecode/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
safzanpirani
pushed a commit
to safzanpirani/clawdbot
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
steipete
pushed a commit
to Sid-Qin/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
venjiang
pushed a commit
to venjiang/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
robertchang-ga
pushed a commit
to robertchang-ga/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
execute008
pushed a commit
to execute008/openclaw
that referenced
this pull request
Mar 2, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
hughdidit
pushed a commit
to hughdidit/DAISy-Agency
that referenced
this pull request
Mar 3, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit e4cb6a8) # Conflicts: # CHANGELOG.md
dorgonman
pushed a commit
to kanohorizonia/openclaw
that referenced
this pull request
Mar 3, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
sachinkundu
pushed a commit
to sachinkundu/openclaw
that referenced
this pull request
Mar 6, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
zooqueen
pushed a commit
to hanzoai/bot
that referenced
this pull request
Mar 6, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
Mateljan1
pushed a commit
to Mateljan1/openclaw
that referenced
this pull request
Mar 7, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
alexey-pelykh
pushed a commit
to remoteclaw/remoteclaw
that referenced
this pull request
Mar 15, 2026
…w#25502) thanks @4ier Verified: - pnpm build - pnpm check - pnpm test:macmini Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]> (cherry picked from commit e4cb6a8)
alexey-pelykh
added a commit
to remoteclaw/remoteclaw
that referenced
this pull request
Mar 15, 2026
…w#25502) thanks @4ier (#1466) Verified: - pnpm build - pnpm check - pnpm test:macmini (cherry picked from commit e4cb6a8) Co-authored-by: 傅洋 <[email protected]> Co-authored-by: 4ier <[email protected]> Co-authored-by: Tak Hoffman <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Feishu mobile app sends video messages with
message_type: "media"instead of"video". The plugin currently only checks for"video", causing video messages to be silently dropped — the agent receives raw JSON metadata instead of the downloaded video file.Changes
Add
"media"as a fallback case alongside"video"in three locations inextensions/feishu/src/bot.ts:resolveFeishuMediaList()— add"media"tomediaTypesarrayparseMediaKeys()— addcase "media":to extractfile_keyandimage_keyinferPlaceholder()— addcase "media":to return"<media:video>"Test Report
Environment: OpenClaw v2026.2.23, @openclaw/feishu v2026.2.23, Feishu mobile (Android)
{"file_key":"...","file_name":"...mp4","duration":15016}msgType=media(not in mediaTypes → skipped)msgType=media→ download triggeredReproduction steps:
Fixes #25499
Greptile Summary
Adds support for Feishu mobile app's
message_type: "media"for video messages. The mobile app uses"media"instead of"video", causing videos to be dropped silently. The fix adds"media"as a fallback alongside"video"in three functions (resolveFeishuMediaList,parseMediaKeys,inferPlaceholder), treating it identically to"video"messages with bothfile_keyandimage_key.The implementation is straightforward and follows existing patterns:
mediaTypesarray inresolveFeishuMediaList(line 349)parseMediaKeysswitch statement (line 246)inferPlaceholderswitch statement (line 324)The changes are minimal, consistent, and preserve backward compatibility with existing
"video"messages.Confidence Score: 5/5
"video"messages, uses case fallthrough correctly, and has been tested by the author. The fix addresses a real user-facing bug where video messages from Feishu mobile were being dropped. No breaking changes, no risky refactoring, and the implementation is consistent across all three modified locations.Last reviewed commit: 4c73e33
(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!