()
| 66 | } |
| 67 | |
| 68 | export function unregisterSessionActivityCallback(): void { |
| 69 | activityCallback = null |
| 70 | // Stop timer if the callback is removed |
| 71 | if (heartbeatTimer !== null) { |
| 72 | clearInterval(heartbeatTimer) |
| 73 | heartbeatTimer = null |
| 74 | } |
| 75 | clearIdleTimer() |
| 76 | } |
| 77 | |
| 78 | export function sendSessionActivitySignal(): void { |
| 79 | if (isEnvTruthy(process.env.CLAUDE_CODE_REMOTE_SEND_KEEPALIVES)) { |
no test coverage detected