agent-run-inspector 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/live/sse.js +4 -1
package/package.json
CHANGED
package/src/live/sse.js
CHANGED
|
@@ -125,7 +125,10 @@ export function createLiveHub({ index, redactor, pingMs = PING_MS, sweepMs = SWE
|
|
|
125
125
|
listSeen.set(summary.id, json);
|
|
126
126
|
if (!first) emit(listFeed, { type: 'session', summary });
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
// a session left the list (folded under its Orca bot or lead, or out of the window): clients reload it
|
|
129
|
+
let gone = false;
|
|
130
|
+
for (const id of listSeen.keys()) if (!now.has(id)) { listSeen.delete(id); gone = true; }
|
|
131
|
+
if (gone && !first) emit(listFeed, { type: 'resync' });
|
|
129
132
|
return summaries;
|
|
130
133
|
}
|
|
131
134
|
|