# NousResearch/hermes-agent · Context compression skips empty windows, fixes edge cases

## Open now

- Nothing open on GitHub.

These issues and fixes address bugs where context compression was incorrectly triggered on empty message windows, particularly after summary boundary adjustments, and includes a related fix to count no-op compressions toward the anti-thrashing guard.

## 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 #70251. Verify it addresses your case.
- **Recommended:** read PR #70251 (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: `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.

## Closed / duplicate issues

- #59496: \[Bug\]: Context compression calls context engine with empty window after summary boundary adjustment

## Prior & competing PRs

- **#70251: fix(compression): skip empty post-handoff summary windows (salvage #59526)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`; implication `superseded`
  - files: `agent/context_compressor.py`, `contributors/emails/[redacted:email]`, `tests/agent/test_context_compressor_summary_continuity.py`
- **#59526: fix(compression): skip empty post-handoff summary windows**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#70251`, `#59737`
- **#59737: fix(agent): skip compression when latest summary leaves no messages to summarize**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#70251`, `#59526`
- **#60579: fix(compression): skip empty summary windows**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#59526`, `#59496`, `#59526`

## Fix status

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