MCPcopy Index your code
hub / github.com/codeaashu/claude-code / stopSessionActivity

Function stopSessionActivity

src/utils/sessionActivity.ts:121–133  ·  view source on GitHub ↗
(reason: SessionActivityReason)

Source from the content-addressed store, hash-verified

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

Callers 2

queryModelFunction · 0.85

Calls 4

startIdleTimerFunction · 0.85
getMethod · 0.65
deleteMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected