# NousResearch/hermes-agent · Long attachment file names and cached document name length limits

## Open now

- 1 issue, 2 PRs open on GitHub.
- #155926: bug: cache_document_from_bytes does not bound display-name length — ENAMETOOLONG drops inbound file messages (real WeCom percent-encoded CJK names, 470 bytes observed)
- PR #155927: fix(gateway): bound cached document names to the filesystem component limit
- PR #159825: Chat attachments with long file names are no longer dropped (fixes #155926, salvage #155927)

These items appear to concern inbound chat attachments whose long display names (e.g., percent-encoded CJK names from WeCom) can exceed filesystem name limits when documents are cached, causing ENAMETOOLONG errors. The members cover a bug report and related changes to bound cached document name length; their resolution status is not established here.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 0 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_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: 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

- #155926: bug: cache_document_from_bytes does not bound display-name length — ENAMETOOLONG drops inbound file messages (real WeCom percent-encoded CJK names, 470 bytes observed)

## Prior & competing PRs

- **#155927: fix(gateway): bound cached document names to the filesystem component limit**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `9115e71d5f5e72d20ea35b7848c0d25711e9136a`, `4b40ffb0ad6d7da5d3260f5e499e1691508dd4d5`, `e5c61eeca1e2`, `e7f5a81d90d7`, `2fbc9660e1d5`, `0925c84aad50`, `e2241fc8a864`, `#155927`
  - files: `gateway/platforms/base.py`, `tests/gateway/test_document_cache.py`
- **#159825: Chat attachments with long file names are no longer dropped (fixes #155926, salvage #155927)**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `54a197504c525f882256b914e29dca543e07e3f7`
  - files: `gateway/media_fetch.py`, `gateway/platforms/base.py`, `gateway/platforms/event.py`, `tests/gateway/test_document_cache.py`

## Fix status

- No merged fix on record.
- Subsystem: `gateway`
- Kind: `bug` (from the open issues' GitHub type labels).
