MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / stopSessionActivity

Function stopSessionActivity

source code/utils/sessionActivity.ts:123–135  ·  view source on GitHub ↗
(reason: SessionActivityReason)

Source from the content-addressed store, hash-verified

121 * and start an idle timer that logs after 30s of inactivity.
122 */
123export function stopSessionActivity(reason: SessionActivityReason): void {
124 if (refcount > 0) {
125 refcount--
126 }
127 const n = (activeReasons.get(reason) ?? 0) - 1
128 if (n > 0) activeReasons.set(reason, n)
129 else activeReasons.delete(reason)
130 if (refcount === 0 && heartbeatTimer !== null) {
131 clearInterval(heartbeatTimer)
132 heartbeatTimer = null
133 startIdleTimer()
134 }
135}

Callers 2

queryModelFunction · 0.85

Calls 4

startIdleTimerFunction · 0.85
setMethod · 0.80
deleteMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected