mirror of
https://github.com/getpaseo/paseo.git
synced 2026-11-06 16:34:36 +00:00
fix(subagents): integrate archive with run state
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user