fix: require same-root feedback coalescing

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip committed 2026-08-16 21:44:15 +00:00
1 parent 7f460ba8f6
commit 00312b7ee8
2 files changed
+8 -4

No files matched your search

@@ -263,6 +263,13 @@ describe("feedback retry coalescing", () => {
liveRootWakeupRequestId: "wake-root-2",
})).toBe(false);
});
it("keeps queued non-feedback work in a separate delivery lane", () => {
expect(canCoalesceFeedbackDeliveryRetry({
...base,
liveRootWakeupRequestId: null,
})).toBe(false);
});
});
describe("stranded feedback delivery backstop", () => {
@@ -106,10 +106,7 @@ export function canCoalesceFeedbackDeliveryRetry(input: {
}) {
return input.liveAgentId === input.sourceAgentId
&& input.liveStatus !== "running"
&& (
input.liveRootWakeupRequestId === null
|| input.liveRootWakeupRequestId === input.sourceRootWakeupRequestId
);
&& input.liveRootWakeupRequestId === input.sourceRootWakeupRequestId;
}
export function hasCompleteFeedbackDispositionCoverage(input: {