# NousResearch/hermes-agent · Codex agent incomplete-response edge cases and stalls

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #23505: fix: surface exhausted empty model responses

These issues and fixes concern multiple related failure modes in codex_responses mode: misclassified finish_reason values, reasoning-only turns causing stalls or budget exhaustion, content-filter responses being retried instead of treated as refusals, empty final responses leaving the agent or UI in a broken state, and insufficient deduplication/capping of incomplete-continuation loops.

## TL;DR

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

## Closed / duplicate issues

- #17248: \[Bug\]: Empty final response after tool calls can hit unbound assistant_msg path

## Prior & competing PRs

- **#17331: fix(agent): initialize assistant_msg before loop to prevent UnboundLocalError (#17248)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#23505: fix: surface exhausted empty model responses**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`
  - files: `cli.py`, `run_agent.py`, `tests/cli/test_empty_response_display.py`, `tests/run_agent/test_run_agent.py`

## Fix status

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