refactor(session-log): drop branch/compress re-point of session_log_file

The attribute no longer exists; nothing to re-point.
This commit is contained in:
yoniebans
2026-05-20 09:19:13 +02:00
committed by Teknium
parent c547392fd4
commit cebd480818
3 changed files with 0 additions and 32 deletions

6
cli.py
View File

@@ -6501,12 +6501,6 @@ class HermesCLI:
if self.agent:
self.agent.session_id = new_session_id
self.agent.session_start = now
# Redirect the JSON session log to the new branch session file so
# messages written after branching land in the correct file.
if hasattr(self.agent, "session_log_file") and hasattr(self.agent, "logs_dir"):
self.agent.session_log_file = (
self.agent.logs_dir / f"session_{new_session_id}.json"
)
self.agent.reset_session_state()
if hasattr(self.agent, "_last_flushed_db_idx"):
self.agent._last_flushed_db_idx = len(self.conversation_history)