fix(notifications): harden remaining threshold scope

This commit is contained in:
Sucukdeluxe
2026-08-22 06:55:57 +02:00
parent 2142ae8bf0
commit 4fd30802e5
3 changed files with 183 additions and 6 deletions
+3
View File
@@ -67,6 +67,7 @@ export interface RunRemainingSnapshot {
openItems: number;
openPackages: number;
unknownCount: number;
finalizingItems: number;
speedBps: number;
etaSeconds: number;
}
@@ -104,6 +105,8 @@ export function evaluateRemainingThreshold(
|| current.openItems <= 0
|| previous.unknownCount > 0
|| current.unknownCount > 0
|| previous.finalizingItems > 0
|| current.finalizingItems > 0
|| previous.remainingBytes <= threshold
|| current.remainingBytes > threshold) {
return { emit: false };