mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-28 06:51:16 +08:00
fix: Reset token counters on new session for accurate usage display (#2099)
This commit is contained in:
1
cli.py
1
cli.py
@@ -2733,6 +2733,7 @@ class HermesCLI:
|
||||
if self.agent:
|
||||
self.agent.session_id = self.session_id
|
||||
self.agent.session_start = self.session_start
|
||||
self.agent.reset_session_state()
|
||||
if hasattr(self.agent, "_last_flushed_db_idx"):
|
||||
self.agent._last_flushed_db_idx = 0
|
||||
if hasattr(self.agent, "_todo_store"):
|
||||
|
||||
Reference in New Issue
Block a user