feat: glass ui pass

This commit is contained in:
Brooklyn Nicholson
2026-05-16 19:21:33 -05:00
parent 062eed654d
commit d67a438fec
104 changed files with 5173 additions and 1919 deletions
+4
View File
@@ -1055,6 +1055,10 @@ async def get_sessions(limit: int = 20, offset: int = 0, min_messages: int = 0):
total = db.session_count(min_message_count=min_message_count)
now = time.time()
for s in sessions:
# Return only persisted per-session cwd from SessionDB.
# Falling back to process-level terminal.cwd causes historical
# sessions to "teleport" between workspaces as config changes.
s["cwd"] = s.get("cwd") or None
s["is_active"] = (
s.get("ended_at") is None
and (now - s.get("last_active", s.get("started_at", 0))) < 300