(params: {
config: Config;
parentId: string;
reports: ReadonlyArray<{
childTaskId: string;
reportMarkdown: string;
title: string;
}>;
})
| 11702 | } |
| 11703 | |
| 11704 | async function upsertTestSubagentReports(params: { |
| 11705 | config: Config; |
| 11706 | parentId: string; |
| 11707 | reports: ReadonlyArray<{ |
| 11708 | childTaskId: string; |
| 11709 | reportMarkdown: string; |
| 11710 | title: string; |
| 11711 | }>; |
| 11712 | }): Promise<void> { |
| 11713 | const parentSessionDir = params.config.getSessionDir(params.parentId); |
| 11714 | for (const report of params.reports) { |
| 11715 | await upsertSubagentReportArtifact({ |
| 11716 | workspaceId: params.parentId, |
| 11717 | workspaceSessionDir: parentSessionDir, |
| 11718 | childTaskId: report.childTaskId, |
| 11719 | parentWorkspaceId: params.parentId, |
| 11720 | ancestorWorkspaceIds: [params.parentId], |
| 11721 | reportMarkdown: report.reportMarkdown, |
| 11722 | title: report.title, |
| 11723 | nowMs: Date.now(), |
| 11724 | }); |
| 11725 | } |
| 11726 | } |
| 11727 | |
| 11728 | test("agent_report waits for all best-of reports before finalizing pending parent task output", async () => { |
| 11729 | const parentId = "parent-best-of"; |
no test coverage detected