MCPcopy Create free account
hub / github.com/codeaashu/claude-code / setSpawnModeDisplay

Function setSpawnModeDisplay

src/bridge/bridgeUI.ts:484–492  ·  view source on GitHub ↗
(mode: 'same-dir' | 'worktree' | null)

Source from the content-addressed store, hash-verified

482 },
483
484 setSpawnModeDisplay(mode: 'same-dir' | 'worktree' | null): void {
485 if (spawnModeDisplay === mode) return
486 spawnModeDisplay = mode
487 // Also sync the #21118-added spawnMode so the next render shows correct
488 // mode hint + branch visibility. Don't render here — matches
489 // updateSessionCount: called before printBanner (initial setup) and
490 // again from the `w` handler (which follows with refreshDisplay).
491 if (mode) spawnMode = mode
492 },
493
494 addSession(sessionId: string, url: string): void {
495 sessionDisplayInfo.set(sessionId, { url })

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected