mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 17:45:53 +01:00
fix: require same-root feedback coalescing
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
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: {
|
||||
|
||||
Reference in new issue
Block a user