()
| 28 | let cleanupRegistered = false |
| 29 | |
| 30 | function startHeartbeatTimer(): void { |
| 31 | clearIdleTimer() |
| 32 | heartbeatTimer = setInterval(() => { |
| 33 | logForDiagnosticsNoPII('debug', 'session_keepalive_heartbeat', { |
| 34 | refcount, |
| 35 | }) |
| 36 | if (isEnvTruthy(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES)) { |
| 37 | activityCallback?.() |
| 38 | } |
| 39 | }, SESSION_ACTIVITY_INTERVAL_MS) |
| 40 | } |
| 41 | |
| 42 | function startIdleTimer(): void { |
| 43 | clearIdleTimer() |
no test coverage detected