# NousResearch/hermes-agent · macOS gateway file descriptor limit fixes

## Open now

- 2 issues, 2 PRs open on GitHub.
- #30230: Gateway hits macOS fd limit (256): OSError Too many open files
- #36899: macOS launchd gateway can hit Errno 24 because generated plist lacks NumberOfFiles limits
- PR #38086: fix(launchd): raise gateway file descriptor limit
- PR #50494: \[codex\] Fix macOS gateway fd exhaustion paths

Multiple issues and pull requests addressing OSError 'Too many open files' on macOS by raising file descriptor limits, both at runtime via RLIMIT_NOFILE and in the launchd plist via NumberOfFiles settings.

## TL;DR

- 7 member(s): 2 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 3 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.26`: 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

- #30230: Gateway hits macOS fd limit (256): OSError Too many open files
- #36899: macOS launchd gateway can hit Errno 24 because generated plist lacks NumberOfFiles limits

## Prior & competing PRs

- **#30234: fix(gateway): raise RLIMIT_NOFILE soft limit at startup (#30230)**. closed without merge
  - maintainer direction: category `stale_abandoned`; implication `active`
- **#36939: fix(gateway): set NumberOfFiles limits in macOS launchd plist (#36899)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#38086: fix(launchd): raise gateway file descriptor limit**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#30230`
  - files: `hermes_cli/gateway.py`, `tests/hermes_cli/test_gateway_service.py`
- **#50494: \[codex\] Fix macOS gateway fd exhaustion paths**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `hermes_cli/gateway.py`, `plugins/platforms/telegram/adapter.py`, `tests/gateway/test_telegram_conflict.py`, `tests/gateway/test_telegram_network_reconnect.py`, `tests/hermes_cli/test_gateway_service.py`
- **#65758: fix(gateway): set file descriptor limits in launchd plist**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#44357`, `#44357`

## Fix status

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