MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / patch

Function patch

src/bridge/initReplBridge.ts:318–332  ·  view source on GitHub ↗
(
    derived: string,
    bridgeSessionId: string,
    atCount: number,
  )

Source from the content-addressed store, hash-verified

316 let lastBridgeSessionId: string | undefined
317 let genSeq = 0
318 const patch = (
319 derived: string,
320 bridgeSessionId: string,
321 atCount: number,
322 ): void => {
323 hasTitle = true
324 title = derived
325 logForDebugging(
326 `[bridge:repl] derived title from message ${atCount}: ${derived}`,
327 )
328 void updateBridgeSessionTitle(bridgeSessionId, derived, {
329 baseUrl,
330 getAccessToken: getBridgeAccessToken,
331 }).catch(() => {})
332 }
333 // Fire-and-forget Haiku generation with post-await guards. Re-checks /rename
334 // (sessionStorage), v1 env-lost (lastBridgeSessionId), and same-session
335 // out-of-order resolution (genSeq — count-1's Haiku resolving after count-3

Callers 3

generateAndPatchFunction · 0.85
onUserMessageFunction · 0.85
getSemverPartFunction · 0.85

Calls 2

updateBridgeSessionTitleFunction · 0.85
logForDebuggingFunction · 0.50

Tested by

no test coverage detected