MCPcopy
hub / github.com/coder/mux / hasCompletedDescendants

Method hasCompletedDescendants

src/node/services/taskService.ts:5642–5648  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

5640 // This ignores archive state and preserveSubagentsUntilArchive so callers can detect
5641 // completed descendants that are still waiting on cleanup prerequisites.
5642 hasCompletedDescendants(workspaceId: string): boolean {
5643 assert(workspaceId.length > 0, "hasCompletedDescendants: workspaceId must be non-empty");
5644
5645 const cfg = this.config.loadConfigOrDefault();
5646 const index = this.buildAgentTaskIndex(cfg);
5647 return this.listCompletedDescendantAgentTaskIds(index, workspaceId).length > 0;
5648 }
5649
5650 listActiveDescendantAgentTaskIds(
5651 workspaceId: string,

Callers 2

removeMethod · 0.80

Calls 4

buildAgentTaskIndexMethod · 0.95
loadConfigOrDefaultMethod · 0.80
assertFunction · 0.50

Tested by

no test coverage detected