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

Function setAttached

src/bridge/bridgeUI.ts:388–405  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

386 },
387
388 setAttached(sessionId: string): void {
389 stopConnecting()
390 currentState = 'attached'
391 currentStateText = 'Connected'
392 lastToolSummary = null
393 lastToolTime = 0
394 // Multi-session: keep footer/QR on the environment connect URL so users
395 // can spawn more sessions. Per-session links are in the bullet list.
396 if (sessionMax <= 1) {
397 activeSessionUrl = buildBridgeSessionUrl(
398 sessionId,
399 cachedEnvironmentId,
400 cachedIngressUrl,
401 )
402 regenerateQr(activeSessionUrl)
403 }
404 renderStatusLine()
405 },
406
407 updateReconnectingStatus(delayStr: string, elapsedStr: string): void {
408 stopConnecting()

Callers

nothing calls this directly

Calls 4

stopConnectingFunction · 0.85
buildBridgeSessionUrlFunction · 0.85
regenerateQrFunction · 0.85
renderStatusLineFunction · 0.85

Tested by

no test coverage detected