Skip to content

The agent that grows with you

fix(gateway): only registry leases enter the queued-release view

Teknium9246e5b55081
diff --git a/hermes_cli/active_sessions.py b/hermes_cli/active_sessions.py
index 1d341554e1b..6fe8915d37f 100644
--- a/hermes_cli/active_sessions.py
+++ b/hermes_cli/active_sessions.py
@@ -290,7 +290,7 @@ def _registry_key(path: Path) -> str:
def mark_release_queued(lease: ActiveSessionLease) -> None:
"""Retire ``lease`` from this process's view of the registry now; its file write comes later."""
- if not lease.enabled or lease.released:
+ if not isinstance(lease, ActiveSessionLease) or not lease.enabled or lease.released:
return
state_path, _ = _lease_paths(lease)
with _queued_releases_lock: