(workspaceId: string)
| 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, |
no test coverage detected