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

Function updateSessionCount

source code/bridge/bridgeUI.ts:476–484  ·  view source on GitHub ↗
(active: number, max: number, mode: SpawnMode)

Source from the content-addressed store, hash-verified

474 },
475
476 updateSessionCount(active: number, max: number, mode: SpawnMode): void {
477 if (sessionActive === active && sessionMax === max && spawnMode === mode)
478 return
479 sessionActive = active
480 sessionMax = max
481 spawnMode = mode
482 // Don't re-render here — the status ticker calls renderStatusLine
483 // on its own cadence, and the next tick will pick up the new values.
484 },
485
486 setSpawnModeDisplay(mode: 'same-dir' | 'worktree' | null): void {
487 if (spawnModeDisplay === mode) return

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected