# NousResearch/hermes-agent · Deduplication of in-flight tasks during compression handoff

## Open now

- 1 issue, 1 PR open on GitHub.
- #106864: \[Bug\]: First compression duplicates a large unfinished request retained in the protected head
- PR #106876: fix(compressor): displace the head copy of a re-stated in-flight task

These items address a bug where an unfinished user task gets duplicated when compression occurs, specifically involving the protected head copy and the restated version after a handoff. The work focuses on deduplication logic across the compression boundary.

## TL;DR

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

## Open related issues

- #106864: \[Bug\]: First compression duplicates a large unfinished request retained in the protected head

## Prior & competing PRs

- **#106867: fix(agent): avoid duplicating unfinished user task across compression handoff**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#106864`, `#106876`, `#106889`
- **#106876: fix(compressor): displace the head copy of a re-stated in-flight task**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `b3cf3e0b89`
  - files: `agent/context_compressor.py`, `tests/agent/test_compression_task_duplication.py`
- **#106889: fix(compression): dedupe in-flight task restated after the handoff**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `b3cf3e0b89`, `07189688f`, `#106876`

## Fix status

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