diff --git a/src/session-monitor.js b/src/session-monitor.js index 41ff3fd..6272e0e 100644 --- a/src/session-monitor.js +++ b/src/session-monitor.js @@ -108,6 +108,14 @@ class SessionMonitor extends EventEmitter { this._completedSessions.delete(sessionKey); } + /** + * Trigger an immediate poll without waiting for the next interval tick. + * Used by ghost-watch reactivation to avoid up to pollMs latency. + */ + pollNow() { + this._poll(); + } + /** * Get all agent directories under transcriptDir. * @private