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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/live/sse.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-run-inspector",
3
- "version": "0.10.1",
3
+ "version": "0.10.2",
4
4
  "description": "Local, read-only inspector for Claude Code and Codex CLI agent runs.",
5
5
  "keywords": [
6
6
  "claude-code",
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
- for (const id of listSeen.keys()) if (!now.has(id)) listSeen.delete(id);
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