MCPcopy
hub / github.com/codeaashu/claude-code / getBridgeStatus

Function getBridgeStatus

src/bridge/bridgeStatusUtil.ts:124–141  ·  view source on GitHub ↗
({
  error,
  connected,
  sessionActive,
  reconnecting,
}: {
  error: string | undefined
  connected: boolean
  sessionActive: boolean
  reconnecting: boolean
})

Source from the content-addressed store, hash-verified

122
123/** Derive a status label and color from the bridge connection state. */
124export function getBridgeStatus({
125 error,
126 connected,
127 sessionActive,
128 reconnecting,
129}: {
130 error: string | undefined
131 connected: boolean
132 sessionActive: boolean
133 reconnecting: boolean
134}): BridgeStatusInfo {
135 if (error) return { label: 'Remote Control failed', color: 'error' }
136 if (reconnecting)
137 return { label: 'Remote Control reconnecting', color: 'warning' }
138 if (sessionActive || connected)
139 return { label: 'Remote Control active', color: 'success' }
140 return { label: 'Remote Control connecting\u2026', color: 'warning' }
141}
142
143/** Footer text shown when bridge is idle (Ready state). */
144export function buildIdleFooterText(url: string): string {

Callers 2

BridgeDialogFunction · 0.85
BridgeStatusIndicatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected