fix(subagents): integrate archive with run state

This commit is contained in:
Mohamed Boudra
2026-07-15 00:12:01 +02:00
parent f6ec93bb68
commit 40fba5752e
@@ -985,7 +985,7 @@ export class AgentManager {
const hasBusyDescendant = (agentId: string, visited = new Set<string>()): boolean => {
if (visited.has(agentId)) return true;
visited.add(agentId);
if (this.foregroundRuns.hasPendingRun(agentId)) return true;
if (this.runs.hasRun(agentId)) return true;
if (this.providerSubagents.list(agentId).some((subagent) => subagent.status === "running")) {
return true;
}