fix: /stop aborts subagents

This commit is contained in:
Peter Steinberger committed 2026-01-16 21:37:22 +00:00
1 parent 390bd11f33
commit a0be85c34c
11 files changed
+198 -12

No files matched your search

+6
View File
@@ -354,6 +354,12 @@ export function releaseSubagentRun(runId: string) {
if (subagentRuns.size === 0) stopSweeper();
}
export function listSubagentRunsForRequester(requesterSessionKey: string): SubagentRunRecord[] {
const key = requesterSessionKey.trim();
if (!key) return [];
return [...subagentRuns.values()].filter((entry) => entry.requesterSessionKey === key);
}
export function initSubagentRegistry() {
restoreSubagentRunsOnce();
}