Fix session notification scheduler notification check
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user