# NousResearch/hermes-agent · trajectory compressor summary and retry edge case fixes

## Open now

- 1 issue, 4 PRs open on GitHub.
- #32847: Bug: \`_generate_summary\` returns None when max_retries=0, injected as conversation content
- PR #7248: fix(trajectory_compressor): fix inverted compressible region on short trajectories
- PR #32868: fix: add fallback return in _generate_summary when retries exhausted
- PR #40728: fix(compressor): preserve trajectories that time out during compression
- PR #106945: fix(compressor): return fallback summary when max_retries=0

These issues and pull requests address bugs in the trajectory compressor, specifically around \`_generate_summary\` returning None when retries are exhausted or max_retries is zero, an inverted compressible region on short trajectories, and preserving trajectories that time out during compression.

## TL;DR

- 7 member(s): 1 open issue(s), 0 closed issue(s), 4 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.29`: 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

- #32847: Bug: \`_generate_summary\` returns None when max_retries=0, injected as conversation content

## Prior & competing PRs

- **#7248: fix(trajectory_compressor): fix inverted compressible region on short trajectories**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#50411`
  - files: `trajectory_compressor.py`
- **#32854: fix: add fallback return in _generate_summary when retries exhausted**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#32868: fix: add fallback return in _generate_summary when retries exhausted**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `trajectory_compressor.py`
- **#33107: fix(trajectory_compressor): return placeholder string when max_retries=0 instead of None (#32847)**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#32868`, `#32847`
- **#40728: fix(compressor): preserve trajectories that time out during compression**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#8086`, `#8086`
  - files: `tests/test_trajectory_compressor.py`, `trajectory_compressor.py`
- **#106945: fix(compressor): return fallback summary when max_retries=0**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `#32847`
  - files: `tests/test_trajectory_compressor.py`, `tests/test_trajectory_compressor_async.py`, `trajectory_compressor.py`

## Fix status

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