From 224c900532b3eec53a31ceea30704f59dce720b4 Mon Sep 17 00:00:00 2001 From: teknium1 Date: Mon, 23 Feb 2026 14:56:48 -0800 Subject: [PATCH] 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. --- gateway/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/session.py b/gateway/session.py index 2a3d8b6bf..f89700ee8 100644 --- a/gateway/session.py +++ b/gateway/session.py @@ -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(