The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(gateway): an unviewed read-only messaging mount is not a live session
yoniebansb2c0a86caf7d
diff --git a/gateway/session_local_close.py b/gateway/session_local_close.pyindex 8fbadd0c373..4be14557305 100644--- a/gateway/session_local_close.py+++ b/gateway/session_local_close.py@@ -21,6 +21,8 @@ def closed_and_unviewed(authority, session_id, handle):live = authority.sessions.get(session_id)if live is None or live.subscribers or handle.execution_state != 'idle':return False+ if live.superseded:+ return True # an old messaging conversation opened read-only: history once no one views ittarget = _local_target(authority, session_id)row = authority.db.get_session(target) if target else Nonereturn bool(row and row.get('ended_at') is not None)