From ea61856021376c2db485160a1230aec5286b4889 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Mon, 9 Mar 2026 23:37:12 +0900 Subject: [PATCH] Fix session notification scheduler notification check Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus --- src/hooks/session-notification-scheduler.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/hooks/session-notification-scheduler.ts b/src/hooks/session-notification-scheduler.ts index 367ca5dcb..6b8387d5f 100644 --- a/src/hooks/session-notification-scheduler.ts +++ b/src/hooks/session-notification-scheduler.ts @@ -67,7 +67,11 @@ export function createIdleNotificationScheduler(options: { function markSessionActivity(sessionID: string): void { const scheduledTime = scheduledAt.get(sessionID) - if (scheduledTime && Date.now() - scheduledTime < activityGracePeriodMs) { + if ( + activityGracePeriodMs > 0 && + scheduledTime !== undefined && + Date.now() - scheduledTime <= activityGracePeriodMs + ) { return }