MEDIA tag regex parsing and separator edge cases

NousResearch/hermes-agent · cluster 63632 · gateway

Data as of

Nothing open on GitHub. Fix merged in #72170. Check it covers your case.

The short answer

0open issues
0open PRs
9items grouped
Known?
Yes. 9 related items grouped here, 2 issues already closed.
Fix event
A fix was merged to main in PR #72170. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this resolved, deciding PR #72170. That is separate from the fix event.
Still open
Nothing open on GitHub.

These issues and fixes concern a gateway regex that fails when [[as_document]] is adjacent to a MEDIA path, or when MEDIA tags appear back-to-back or followed immediately by other text, causing incorrect matching or missed file delivery. Multiple fix attempts address the regex pattern and separator normalization.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #72170 fix(gateway): reliable MEDIA file delivery — salvage 6 contributor fixes + punctuation/inline-code variants

    merged to main

    files: contributors/emails/[redacted:email], contributors/emails/[redacted:email], contributors/emails/[redacted:email], gateway/platforms/base.py, plugins/platforms/discord/adapter.py, plugins/platforms/feishu/adapter.py, tests/gateway/test_discord_send.py, tests/gateway/test_media_tag_cleanup.py, tests/gateway/test_media_tag_formatting_variants.py, tests/gateway/test_media_tag_separator.py, tests/gateway/test_platform_base.py, tests/gateway/test_send_image_file.py, tests/gateway/test_tts_media_routing.py, tools/send_message_tool.py

6 PRs closed without merging

From the close comments: merged via another change 4 · duplicate 2

  • #63644 fix(gateway): allow [[as_document]] glued directly to MEDIA path · merged via another change → #72170
  • #67727 fix(gateway): allow [[as_document]] glued directly to MEDIA path · duplicate → #63644
  • #67735 fix(gateway): allow [[as_document]] glued directly to MEDIA path · merged via another change → #72170, #63644
  • #68781 fix(gateway): stop MEDIA tag regex from absorbing following tag or text (#68773) · merged via another change
  • #68837 fix(gateway): stop MEDIA tag regex from absorbing following tag or text (#68773) · merged via another change → #72170
Show 1 more
  • #69435 fix: normalize MEDIA tag separators for back-to-back tags (#68773) · duplicate
Closed issues · 2
  • Closed#63632MEDIA_TAG_CLEANUP_RE fails to match when [[as_document]] is glued directly to the path — file silently not delivered
  • Closed#68773Agent fails to append separators after MEDIA tags, URLs, and file paths, causing cascading delivery and truncation failures
How this cluster was grouped
  • Link evidence (structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
  • Pairwise link density 0.26: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. 1.00 means every pair is linked.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
gateway
Merged PRs
#72170
Closed issues
2
Attempts
6 PRs closed without merging
Fix link checked
26 Jul 2026

For your agent

The same facts, typed.