MCPcopy
hub / github.com/claude-code-best/claude-code / updateSessionActivity

Function updateSessionActivity

src/utils/concurrentSessions.ts:155–161  ·  view source on GitHub ↗
(patch: {
  status?: SessionStatus
  waitingFor?: string
})

Source from the content-addressed store, hash-verified

153 * transcript-tail derivation for one refresh.
154 */
155export async function updateSessionActivity(patch: {
156 status?: SessionStatus
157 waitingFor?: string
158}): Promise<void> {
159 if (!feature('BG_SESSIONS')) return
160 await updatePidFile({ ...patch, updatedAt: Date.now() })
161}
162
163/**
164 * Count live concurrent CLI sessions (including this one).

Callers 1

maybeGenerateTaskSummaryFunction · 0.70

Calls 2

updatePidFileFunction · 0.85
nowMethod · 0.80

Tested by

no test coverage detected