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

Function updateSessionCount

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected