mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-04-25 00:51:20 +00:00
refactor: update session loading method in SessionStore
- Replaced the call to `_load()` with `_ensure_loaded()` in the `has_any_sessions` method to improve clarity and ensure that session data is properly initialized before checking for existing sessions.
This commit is contained in:
parent
4f9f5f70e3
commit
224c900532
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ class SessionStore:
|
|||
|
||||
def has_any_sessions(self) -> bool:
|
||||
"""Check if any sessions have ever been created (across all platforms)."""
|
||||
self._load()
|
||||
self._ensure_loaded()
|
||||
return len(self._entries) > 1 # >1 because the current new session is already in _entries
|
||||
|
||||
def get_or_create_session(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue