Skip to content

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

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-7d7ac769
Mar 26, 2026
Merged

fix(session): clear compressor summary and turn counter on /clear and /new#3102
teknium1 merged 1 commit into
mainfrom
hermes/hermes-7d7ac769

Conversation

@teknium1

Copy link
Copy Markdown
Contributor

reset_session_state() was missing two fields added after it was written:

  • _user_turn_count: kept accumulating across /clear//new, affecting flush_min_turns guard behavior
  • context_compressor._previous_summary: old session's compression summary leaked into new session's iterative compression

Includes 4 tests covering both fields individually, together, and the no-compressor edge case.

Cherry-picked from PR #2640 by @dusterbloom. Closes #2635.

… /new

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR #2640 by dusterbloom. Closes #2635.
@teknium1 teknium1 merged commit b374f52 into main Mar 26, 2026
4 checks passed
outsourc-e pushed a commit to outsourc-e/hermes-agent that referenced this pull request Mar 26, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
… /new (NousResearch#3102)

reset_session_state() was missing two fields added after it was written:
- _user_turn_count: kept accumulating across sessions, affecting
  flush_min_turns guard behavior
- context_compressor._previous_summary: old session's compression
  summary leaked into new session's iterative compression

Cherry-picked from PR NousResearch#2640 by dusterbloom. Closes NousResearch#2635.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: /clear and /new leave stale compression summary and turn counter across sessions

1 participant