# NousResearch/hermes-agent · OpenAI output-cap overflow wording detection fixes

## Open now

- Nothing open on GitHub.

These items address a bug where OpenAI's specific parenthetical token-count wording in completion errors was not recognized as an output-cap overflow, causing recovery logic to be bypassed. Fixes target both model-metadata and agent layers.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #115792. Verify it addresses your case.
- **Recommended:** read PR #115792 (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-115792`. 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.50`: 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

- #90607: \[Bug\]: OpenAI-style "(N in the messages, M in the completion)" overflow wording bypasses output-cap recovery

## Prior & competing PRs

- **#115792: fix(agent): OpenAI-style '(N in the messages, M in the completion)' overflow trims max_tokens instead of dead-looping compression (#90607, salvage #90612)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/model_metadata.py`, `tests/agent/test_output_cap_parsing.py`
- **#90612: fix(model-metadata): treat the OpenAI-style completion split as an output-cap error**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `624ffd3b718d`, `#115792`, `#90607`, `#90612`
- **#90616: fix(agent): recognize OpenAI's parenthetical output-cap wording**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#90612`

## Fix status

- Merged to main in PR #115792 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-19`.
- Subsystem: `agent`
