jg-agent-hq 10.9.0 → 10.9.1
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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 10.9.1
|
|
4
|
+
|
|
5
|
+
- Forget a terminal Claude session's background-command count when a `thread` read of it finishes after the `claude agents --json` poll stopped listing it. The read used to leave the session's transcript scan in memory, where nothing removed it.
|
|
6
|
+
|
|
3
7
|
## 10.9.0
|
|
4
8
|
|
|
5
9
|
- Report on every session summary how many background commands the session runs, as `backgroundCommands`. A session HQ runs reports the count Claude last reported. A Claude session a terminal runs reports the commands and agents its transcript records as started since its Claude process started and not yet ended. The `claude agents --json` poll counts before it records states, within one 67,108,864-byte read budget per run, and a `thread` read reads the transcript again first. Codex sessions report 0.
|
|
@@ -157,6 +157,11 @@ export const observeClaudeAgents = (record, allowedRoots, locateTranscript) => {
|
|
|
157
157
|
if (session.directory === null)
|
|
158
158
|
return 0;
|
|
159
159
|
session.backgroundCommands = await background.update(nativeId, session.directory, session.startedAt, { remaining: READ_BUDGET_BYTES });
|
|
160
|
+
// a poll that stopped listing the session while this read ran forgot it before the read ended
|
|
161
|
+
if (!listedSessions.has(nativeId)) {
|
|
162
|
+
background.forget(nativeId);
|
|
163
|
+
return 0;
|
|
164
|
+
}
|
|
160
165
|
return session.backgroundCommands;
|
|
161
166
|
},
|
|
162
167
|
backgroundSessionIds: () => [...listedSessions].flatMap(([nativeId, session]) => session.backgroundCommands > 0 ? [nativeId] : []),
|
package/package.json
CHANGED