Skip to content

fix(gateway): add .3gp to MEDIA_DELIVERY_EXTS (#71621) - #71971

Closed
JonthanaHanh wants to merge 1 commit into
NousResearch:mainfrom
JonthanaHanh:fix/media-3gp-71621
Closed

fix(gateway): add .3gp to MEDIA_DELIVERY_EXTS (#71621)#71971
JonthanaHanh wants to merge 1 commit into
NousResearch:mainfrom
JonthanaHanh:fix/media-3gp-71621

Conversation

@JonthanaHanh

Copy link
Copy Markdown
Contributor

Summary

Fixes #71621.

MEDIA_DELIVERY_EXTS in gateway/platforms/base.py is the shared allowlist for media extraction and MEDIA: tag cleanup. It included .webm but omitted .3gp, while every per-platform _VIDEO_EXTS set already included .3gp.

Changes

  • gateway/platforms/base.py: Added .3gp to the video partition of MEDIA_DELIVERY_EXTS

Impact

Without this fix, MEDIA:/path/to/clip.3gp was:

  1. Not extracted for native video delivery
  2. Not stripped by the MEDIA: cleanup regex, leaking as plain text

Testing

  • Verified .3gp now appears in MEDIA_DELIVERY_EXTS
  • Confirmed _VIDEO_EXTS in the same file already contained .3gp (line 5394)
  • py_compile passes

MEDIA_DELIVERY_EXTS was missing .3gp while every per-platform _VIDEO_EXTS
set already included it. This caused MEDIA:/path/clip.3gp to be neither
extracted for native video delivery nor stripped by the cleanup regex,
leaking the tag as plain text in chat.

Fixes NousResearch#71621
@alt-glitch alt-glitch added type/bug Something isn't working comp/gateway Gateway runner, session dispatch, delivery P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages labels Jul 26, 2026
@teknium1

Copy link
Copy Markdown
Contributor

Closing as duplicate — this fix landed via PR #72170, which cherry-picked the earlier and slightly wider submission of the same change (#71683 by @Linux2010, which also covered the .webm drift in send_message_tool and the Feishu adapter) with authorship preserved. Thanks for the contribution regardless.

@teknium1 teknium1 closed this Jul 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/gateway Gateway runner, session dispatch, delivery duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists sweeper:risk-message-delivery Sweeper risk: may drop, duplicate, misroute, or suppress messages type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(gateway): .3gp missing from MEDIA_DELIVERY_EXTS — MEDIA tags not delivered

3 participants