Session reset fails to clear compression state

NousResearch/hermes-agent · cluster 2635 · agent

Data as of

Nothing open on GitHub. Fix merged in #3102. Check it covers your case.

The short answer

0open issues
0open PRs
9items grouped
Known?
Yes. 9 related items grouped here, 3 issues already closed.
Fix event
A fix was merged to main in PR #3102. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this partially resolved, deciding PR #3102. That is separate from the fix event.
Still open
Nothing open on GitHub.

Multiple bugs and proposed fixes around ContextCompressor not fully resetting per-session state—including summary text, turn counters, and failure cooldown flags—when /clear, /new, or session reset is triggered. Several parallel fix attempts address the same family of stale-state issues.

Open issues0

No open issues.

Open PRs0

No open pull requests.

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #3102 fix(session): clear compressor summary and turn counter on /clear and /new

    merged to main

    files: run_agent.py, tests/test_session_reset_fix.py

  • #19622 fix(compressor): reset _summary_failure_cooldown_until on session reset

    merged to main

    files: agent/context_compressor.py

    Show the diff
    • agent/context_compressor.py
      @@ -344,6 +344,7 @@ def on_session_reset(self) -> None:
               self._last_aux_model_failure_model = None
               self._last_compression_savings_pct = 100.0
               self._ineffective_compression_count = 0
      +        self._summary_failure_cooldown_until = 0.0  # transient errors must not block a fresh session
       
           def update_model(
               self,

4 PRs closed without merging

From the close comments: merged via another change 2 · done elsewhere 1 · superseded by another PR 1

  • #2640 fix(session): clear compressor summary and turn counter on /clear and /new · merged via another change → #3102
  • #2723 fix(agent): reset turn counter and compression summary on /clear or /new · done elsewhere → b374f52, #3102, #2635
  • #15548 fix(compressor): reset _summary_failure_cooldown_until in on_session_reset() · merged via another change → #19622
  • #16152 fix(compressor): reset cooldown and model-fallback flag on session reset (#16067) · superseded by another PR → #15549
Closed issues · 3
  • Closed#2635[Bug]: /clear and /new leave stale compression summary and turn counter across sessions
  • Closed#15547[Bug]: _summary_failure_cooldown_until not reset on /new or /reset — compression skipped silently in new session
  • Closed#16067[Bug]: ContextCompressor.on_session_reset() fails to reset _summary_failure_cooldown_until, causing compression summary to be silently skipped in new sessions
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.20: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
agent
Merged PRs
#3102, #19622
Closed issues
3
Attempts
4 PRs closed without merging
Fix link checked
4 May 2026

For your agent

The same facts, typed.