Skip to content

Commit 115e508

Browse files
test(server): drop the assertion that pins the cleanup pass limit
AI-assisted; verified with the tests and tools listed above.
1 parent 33be351 commit 115e508

1 file changed

Lines changed: 1 addition & 16 deletions

File tree

‎apps/server/src/orchestration-v2/ProviderSessionManager.test.ts‎

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3431,10 +3431,6 @@ it.effect("ProviderSessionManagerV2 keeps provider updates that land while relea
34313431
...seededToolCalls.cutOff,
34323432
id: TurnItemId.make("turn-item:stored-in-clean-pass"),
34333433
};
3434-
const storedAfterLastPass = {
3435-
...seededToolCalls.cutOff,
3436-
id: TurnItemId.make("turn-item:stored-after-last-pass"),
3437-
};
34383434
const complete = (item: OrchestrationV2TurnItem) =>
34393435
writeToolCall({ ...item, status: "completed" });
34403436
// One hook runs before each cleanup write. The first pass writes the cut-off call, the
@@ -3456,9 +3452,6 @@ it.effect("ProviderSessionManagerV2 keeps provider updates that land while relea
34563452
Effect.void,
34573453
// The second pass has no conflict, but one more call lands during it.
34583454
writeToolCall(storedInCleanPass),
3459-
Effect.void,
3460-
// Cleanup stops after three passes, so a call that lands during the third stays open.
3461-
writeToolCall(storedAfterLastPass),
34623455
].map(Effect.orDie),
34633456
);
34643457
const seeded = providerThreads[0]!;
@@ -3478,14 +3471,7 @@ it.effect("ProviderSessionManagerV2 keeps provider updates that land while relea
34783471
assert.deepStrictEqual(yield* rosters, [["replacement-task"], ["dev-server"]]);
34793472
const statuses = Object.fromEntries(
34803473
yield* Effect.forEach(
3481-
[
3482-
seededToolCalls.cutOff,
3483-
...lateCompleted,
3484-
lastOpen,
3485-
storedLate,
3486-
storedInCleanPass,
3487-
storedAfterLastPass,
3488-
],
3474+
[seededToolCalls.cutOff, ...lateCompleted, lastOpen, storedLate, storedInCleanPass],
34893475
(item) => toolCallStatus(item.id).pipe(Effect.map((status) => [item.id, status])),
34903476
),
34913477
);
@@ -3495,7 +3481,6 @@ it.effect("ProviderSessionManagerV2 keeps provider updates that land while relea
34953481
[lastOpen.id]: "interrupted",
34963482
[storedLate.id]: "interrupted",
34973483
[storedInCleanPass.id]: "interrupted",
3498-
[storedAfterLastPass.id]: "running",
34993484
});
35003485
});
35013486

0 commit comments

Comments
 (0)