Skip to content

Commit b7067ba

Browse files
committed
test(server): expect unread native results in the completion cohort
1 parent 47728db commit b7067ba

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎apps/server/src/mcp/NativeSubagentDelegation.integration.test.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ it.effect(
828828
assert.isTrue(waitedB.waitTimedOut);
829829
assert.equal((yield* h.listed(b.thread.id, waitedB.taskId)).task?.completionWake, "always");
830830

831-
// ...and its failure names it and links its child in the root's notice.
831+
// Its failure joins the unread result in the root's completion notice.
832832
const settledB = yield* h.taskSettles(waitedB.taskId);
833833
yield* h.finishTurn(h.childTurn(waitedB.childThreadId), "failed");
834834
yield* Fiber.join(settledB);
@@ -843,8 +843,7 @@ it.effect(
843843
outcome: "failed",
844844
source: {
845845
kind: "delegated_task",
846-
taskIds: [waitedB.taskId],
847-
childThreadId: waitedB.childThreadId!,
846+
taskIds: [fromA.taskId, waitedB.taskId],
848847
},
849848
});
850849

0 commit comments

Comments
 (0)