fix(session-notification): add grace period to prevent late events from cancelling idle notifications

This commit is contained in:
CrazyRabbit
2026-02-20 21:14:07 +02:00
committed by acamq
parent 63ed7a5448
commit 4e352f9caf
4 changed files with 121 additions and 23 deletions
+2
View File
@@ -24,6 +24,8 @@ interface SessionNotificationConfig {
/** Maximum number of sessions to track before cleanup (default: 100) */
maxTrackedSessions?: number
enforceMainSessionFilter?: boolean
/** Grace period in ms to ignore late-arriving activity events after scheduling (default: 100) */
activityGracePeriodMs?: number
}
export function createSessionNotification(
ctx: PluginInput,