# NousResearch/hermes-agent · Streaming media downloads with enforced size caps

## Open now

- 4 issues, 4 PRs open on GitHub.
- #55027: Remote video downloads are buffered before enforcing the size cap
- #55041: Matrix inbound MXC media downloads can buffer oversized responses before cap enforcement
- #55061: Teams attachment downloads bypass the inbound media cap while reading
- #55215: Google Chat attachment downloads buffer bodies before size checks
- PR #55028: fix(video): stream downloads with size cap
- PR #55042: fix(matrix): stream inbound media under cap
- PR #55063: Cap Teams attachment downloads
- PR #55216: fix(google-chat): bound attachment downloads

These issues and pull requests address a pattern where attachment and media downloads across multiple platforms (Matrix, Teams, Google Chat, video) buffer full responses before enforcing size limits. The work involves streaming downloads and applying size caps on actual bytes received rather than after buffering.

## TL;DR

- 9 member(s): 4 open issue(s), 0 closed issue(s), 4 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_PARTIAL`): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
- Members outside that structural core may belong to a different underlying problem.
- Pairwise link density `0.17`: the share of member 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.

## Open related issues

- #55027: Remote video downloads are buffered before enforcing the size cap
- #55041: Matrix inbound MXC media downloads can buffer oversized responses before cap enforcement
- #55061: Teams attachment downloads bypass the inbound media cap while reading
- #55215: Google Chat attachment downloads buffer bodies before size checks

## Prior & competing PRs

- **#52354: security(matrix): authorize media download, cap real bytes, gate auto-join**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`
- **#55028: fix(video): stream downloads with size cap**. open
  - maintainer direction: category `partial_fix`; implication `needs_llm`
  - files: `tests/tools/test_video_analyze.py`, `tools/vision_tools.py`
- **#55042: fix(matrix): stream inbound media under cap**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/matrix/adapter.py`, `tests/gateway/test_matrix.py`
- **#55063: Cap Teams attachment downloads**. open
  - maintainer direction: category `silent_close`; implication `active`
  - files: `plugins/platforms/teams/adapter.py`, `tests/gateway/test_teams.py`
- **#55216: fix(google-chat): bound attachment downloads**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `plugins/platforms/google_chat/adapter.py`, `tests/gateway/test_google_chat.py`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
