(payload: { sid: string; time: number; reason?: 'completed' | 'terminated' | 'error' })
| 310 | } |
| 311 | |
| 312 | handleSessionEnd(payload: { sid: string; time: number; reason?: 'completed' | 'terminated' | 'error' }): void { |
| 313 | this.sessionCache.handleSessionEnd(payload) |
| 314 | this.eventPublisher.emit({ |
| 315 | type: 'session-ended', |
| 316 | sessionId: payload.sid, |
| 317 | reason: payload.reason |
| 318 | }) |
| 319 | // Retry dedup now that this session is inactive — a prior dedup may have |
| 320 | // skipped it because it was still active at the time. |
| 321 | this.triggerDedupIfNeeded(payload.sid) |
| 322 | } |
| 323 | |
| 324 | handleBackgroundTaskDelta(sessionId: string, delta: { started: number; completed: number }): void { |
| 325 | this.sessionCache.applyBackgroundTaskDelta(sessionId, delta) |
no test coverage detected