# NousResearch/hermes-agent · Discord message.txt Brotli attachment handling fixes

## Open now

- Nothing open on GitHub.

These items address a bug where Discord's auto-generated message.txt attachments were silently ignored, tracing the root cause to missing or unpinned brotlicffi dependency and MIME parameter parsing, with accompanying dependency fixes, a content-type stripping fix, and regression tests.

## TL;DR

- 5 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 3 PR(s) closed without merging.
- A fix was merged to main in PR #26131. Verify it addresses your case.
- **Recommended:** read PR #26131 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-26131`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.40`: 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.

## Closed / duplicate issues

- #12511: \[Bug\]: Discord auto-generated message.txt attachments from pasted code/long lines are silently ignored

## Prior & competing PRs

- **#26131: fix(deps): pin brotlicffi so Discord attachment downloads stop failing on Brotli**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `pyproject.toml`, `scripts/release.py`, `tools/lazy_deps.py`
- **#12516: fix(discord): strip MIME parameters before document type lookup (#12511)**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#12519: test(gateway): add regression tests for Discord message.txt auto-attachment (#12511)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#15744: fix(deps): add brotlicffi so aiohttp can decode Discord's Brotli-encoded message.txt (#12511)**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `bcca5ed34d31abfd469d139e14bd962c916ff64f`, `#26131`

## Fix status

- Merged to main in PR #26131 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-05-15`.
