# NousResearch/hermes-agent · Mid-turn compression guard fixes for native Codex

## Open now

- Nothing open on GitHub.

These items address bugs in the mid-turn pre-API compression guard, specifically cases where compacted native Codex sessions incorrectly triggered local compression and where the guard used an incorrect token estimate rather than the route-aware pruned value.

## TL;DR

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

- #96995: \[Bug\]: #96155 fix misses mid-turn pre-API guard; native Codex still false-triggers 600s compression

## Prior & competing PRs

- **#98543: fix(compression): compacted native-Codex sessions no longer false-trigger 600s local compression mid-turn (#96995, #97602, salvage #97006)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/conversation_loop.py`, `agent/turn_context.py`, `tests/agent/test_native_preflight_estimate.py`
- **#97006: fix(compression): use the route-aware pruned estimate in the mid-turn pre-API guard**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#98543`

## Fix status

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