fix(swarm-worker): isolate session to /tmp/tmux-muse.sock and filter terminal slots in poller

This commit is contained in:
operator
2026-10-05 19:21:10 +00:00
parent 528d9497d9
commit fc765f270b
2 changed files with 18 additions and 6 deletions
+2
View File
@@ -110,6 +110,8 @@ def find_pending_slots(stale_minutes=STALE_MINUTES):
created_ts = swarm.get("created_ts") or summary.get("created_ts")
for slot in swarm.get("slots", []):
status = (slot.get("status") or "").lower()
if status in ("done", "failed", "killed"):
continue
result = slot.get("result")
agent = slot.get("agent_id")
pending = (status == "pending") or (not agent)