feat(FN-4332): complete Step 5 — add changeset for notification deferral

Fusion-Task-Id: FN-4332
Fusion-Task-Lineage: c920ac71-906b-458d-b496-1b60540b58f3
This commit is contained in:
Fusion
2026-05-13 13:16:29 -07:00
committed by gsxdsm
parent 487a0981fe
commit 7bc58d20e7
2 changed files with 6 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"@runfusion/fusion": minor
---
Defer "task failed" push notifications so they only fire when a failure persists. New global settings `failureNotificationDelayMs` (default 30000) and `failureNotificationMode` (default `sticky-only`) gate the behavior; set mode to `all` or delay to `0` to restore legacy immediate dispatch.

View File

@@ -137,7 +137,7 @@ describe("NotificationDispatcher", () => {
expect(shutdown).toHaveBeenCalledTimes(1); expect(shutdown).toHaveBeenCalledTimes(1);
}); });
it("keeps ntfy defaults unchanged and adds notificationProviders default", () => { it("keeps ntfy defaults unchanged and adds notification provider/failure defaults", () => {
const event: NtfyNotificationEvent = "memory-dreams-processed"; const event: NtfyNotificationEvent = "memory-dreams-processed";
expect(event).toBe("memory-dreams-processed"); expect(event).toBe("memory-dreams-processed");