# NousResearch/hermes-agent · Preserving executed tool calls on empty-response exit

## Open now

- Nothing open on GitHub.

These issues and PRs concern a bug where tool calls that have already been executed are lost from the model's context when an agent exits due to an empty response or Stop, causing them to be re-run. The members explore fixes to retain that tool call history when the empty-response scaffolding is dropped.

## TL;DR

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

## Closed / duplicate issues

- #120826: \[Bug\]: after an empty-response give-up or Stop, an already-executed tool call vanishes from the model's context and gets re-run

## Prior & competing PRs

- **#121279: Empty-response give-up or Stop no longer erases an executed tool call (#120826, salvage #120827)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/session_persistence.py`, `agent/turn_api_call.py`, `agent/turn_recovery.py`, `tests/agent/test_empty_response_recovery_persistence.py`, `tests/agent/test_message_sequence_repair.py`
- **#120827: fix(agent): keep executed tool calls when empty-response scaffolding is dropped**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `dae147fb40`, `299dfd35f3`, `#120826`, `#121279`, `#121279`, `#120883`, `#121279`, `#121279`
- **#120867: fix(agent): keep empty-response tool history at exit owners**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#120827`
- **#120883: fix(agent): preserve executed tools after empty-response exits**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `c92c72c850`, `6ef6e83272`, `299dfd35f3`, `#121279`, `#121279`, `#120826`, `#120827`, `#121279`, `#121279`

## Fix status

- Merged to main in PR #121279 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-24`.
