Skip to content

The agent that grows with you

Merge pull request #74033 from NousResearch/jb/session-detail-profile-stamp

brooklyn!c8f911112c13
diff --cc hermes_cli/web_server.py
index 534eba86594,aa17beb9381..b6cad13476e
--- a/hermes_cli/web_server.py
+++ b/hermes_cli/web_server.py
@@@ -4814,12 -4995,10 +4818,11 @@@ def get_sessions
s.get("ended_at") is None
and (now - s.get("last_active", s.get("started_at", 0))) < 300
)
- if profile_name:
- s["profile"] = profile_name
- s["is_default_profile"] = profile_name == "default"
+ s["profile"] = row_profile
+ s["is_default_profile"] = row_profile == "default"
# SQLite stores the flag as 0/1; expose a real JSON boolean.
s["archived"] = bool(s.get("archived"))
+ s["pinned"] = bool(s.get("pinned"))
if not full:
_strip_session_list_rows(sessions)
return {"sessions": sessions, "total": total, "limit": limit, "offset": offset}