MCPcopy Index your code
hub / github.com/codeaashu/claude-code / updateReconnectingStatus

Function updateReconnectingStatus

src/bridge/bridgeUI.ts:407–425  ·  view source on GitHub ↗
(delayStr: string, elapsedStr: string)

Source from the content-addressed store, hash-verified

405 },
406
407 updateReconnectingStatus(delayStr: string, elapsedStr: string): void {
408 stopConnecting()
409 clearStatusLines()
410 currentState = 'reconnecting'
411
412 // QR code above the status line
413 if (qrVisible) {
414 for (const line of qrLines) {
415 writeStatus(`${chalk.dim(line)}\n`)
416 }
417 }
418
419 const frame =
420 BRIDGE_SPINNER_FRAMES[connectingTick % BRIDGE_SPINNER_FRAMES.length]!
421 connectingTick++
422 writeStatus(
423 `${chalk.yellow(frame)} ${chalk.yellow('Reconnecting')} ${chalk.dim('\u00b7')} ${chalk.dim(`retrying in ${delayStr}`)} ${chalk.dim('\u00b7')} ${chalk.dim(`disconnected ${elapsedStr}`)}\n`,
424 )
425 },
426
427 updateFailedStatus(error: string): void {
428 stopConnecting()

Callers

nothing calls this directly

Calls 3

stopConnectingFunction · 0.85
clearStatusLinesFunction · 0.85
writeStatusFunction · 0.85

Tested by

no test coverage detected