(parentWorkspaceId: string)
| 9024 | } |
| 9025 | |
| 9026 | private async requestReportedChildCleanupRechecks(parentWorkspaceId: string): Promise<void> { |
| 9027 | assert( |
| 9028 | parentWorkspaceId.length > 0, |
| 9029 | "requestReportedChildCleanupRechecks: parentWorkspaceId must be non-empty" |
| 9030 | ); |
| 9031 | |
| 9032 | const cfg = this.config.loadConfigOrDefault(); |
| 9033 | const reportedChildTaskIds: string[] = []; |
| 9034 | for (const project of cfg.projects.values()) { |
| 9035 | for (const workspace of project.workspaces) { |
| 9036 | const workspaceId = coerceNonEmptyString(workspace.id); |
| 9037 | if (!workspaceId || workspace.parentWorkspaceId !== parentWorkspaceId) { |
| 9038 | continue; |
| 9039 | } |
| 9040 | if (!hasCompletedAgentReport(workspace)) { |
| 9041 | continue; |
| 9042 | } |
| 9043 | reportedChildTaskIds.push(workspaceId); |
| 9044 | } |
| 9045 | } |
| 9046 | |
| 9047 | for (const workspaceId of reportedChildTaskIds) { |
| 9048 | await this.requestReportedTaskCleanupRecheck(workspaceId); |
| 9049 | } |
| 9050 | } |
| 9051 | |
| 9052 | private async deliverDeferredBestOfReportsForParent(parentWorkspaceId: string): Promise<void> { |
| 9053 | assert( |
no test coverage detected