# NousResearch/hermes-agent · Gateway env var float parsing bug and fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #50120: bug(gateway): malformed HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS crashes message handler (bare float, missed by _float_env extraction)
- PR #13873: fix(gateway): harden timeout env parsing to prevent message handler crashes
- PR #50227: fix(gateway): harden HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS parsing via _float_env (#50120)

A bug was identified where HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS was not parsed through the _float_env helper, causing crashes in the message handler. Multiple fix attempts address hardening this environment variable's float parsing.

## TL;DR

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

## Open related issues

- #50120: bug(gateway): malformed HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS crashes message handler (bare float, missed by _float_env extraction)

## Prior & competing PRs

- **#50121: fix(gateway): harden HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS env parse**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#13873`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#13873: fix(gateway): harden timeout env parsing to prevent message handler crashes**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `411f586c6710d8fc4f7f7b4cb55aab0f4b68bc70`
  - files: `gateway/run.py`, `tests/gateway/test_gateway_inactivity_timeout.py`
- **#50227: fix(gateway): harden HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS parsing via _float_env (#50120)**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#13873`, `#50120`
  - files: `gateway/run.py`, `tests/gateway/test_followup_grace_env.py`
- **#50388: fix(gateway): use _float_env for HERMES_TELEGRAM_FOLLOWUP_GRACE_SECONDS**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#50227`, `#13873`, `#50121`, `#50120`

## Fix status

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