MCPcopy Create free account
hub / github.com/freecodexyz/free-code / updateSessionCount

Function updateSessionCount

src/bridge/bridgeUI.ts:474–482  ·  view source on GitHub ↗
(active: number, max: number, mode: SpawnMode)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected