fix: don't log expected probe rejections while polling for permission

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Neil
2026-07-08 15:34:31 -07:00
co-authored by Orca
parent d791923442
commit ea78d5935d
2 changed files with 4 additions and 2 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

+4 -2
View File
@@ -170,8 +170,10 @@ function probeNotificationDelivery(store: Store): Promise<NotificationDeliveryPr
}
}
function onFailed(_event: unknown, error?: string): void {
logNativeNotificationFailure('delivery probe', error)
function onFailed(_event: unknown, _error?: string): void {
// Why: a rejected probe is an expected outcome (denied permission), not
// an anomaly — logging it would spam the console on every poll while
// the onboarding card waits for the user to allow notifications.
settle('blocked')
releaseProbe()
}