mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-06 05:17:15 +00:00
refactor(state): keep hermes_state_sessions.py under the file cap after the rebase
Main grew the facade by 12 lines; the list-row docstring folds to one line.
This commit is contained in:
1 parent
2e6b6ad339
commit
401de3bf64
1 file changed
+1
-4
@@ -842,10 +842,7 @@ class SessionSessionsMixin:
|
||||
return self._session_row_dict(row) if row else None
|
||||
|
||||
def get_session_list_row(self, session_id: str) -> Optional[dict[str, Any]]:
|
||||
"""The picker fields only, without ``get_session``'s prompt/tool JOIN and token flush.
|
||||
|
||||
The live listing reads one row per listed session on the gateway's loop; a full hydration
|
||||
there is the cost the sweep does not need (title/source/activity/is-it-closed are columns)."""
|
||||
"""Picker columns only: the live listing skips ``get_session``'s prompt/tool JOIN and flush."""
|
||||
row = self._read_one(
|
||||
"SELECT id, source, title, started_at, ended_at, message_count, model, hidden, archived "
|
||||
"FROM sessions WHERE id = ?",
|
||||
|
||||
Reference in new issue
Block a user