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

Function patch

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

Source from the content-addressed store, hash-verified

312 let lastBridgeSessionId: string | undefined
313 let genSeq = 0
314 const patch = (
315 derived: string,
316 bridgeSessionId: string,
317 atCount: number,
318 ): void => {
319 hasTitle = true
320 title = derived
321 logForDebugging(
322 `[bridge:repl] derived title from message ${atCount}: ${derived}`,
323 )
324 void updateBridgeSessionTitle(bridgeSessionId, derived, {
325 baseUrl,
326 getAccessToken: getBridgeAccessToken,
327 }).catch(() => {})
328 }
329 // Fire-and-forget Haiku generation with post-await guards. Re-checks /rename
330 // (sessionStorage), v1 env-lost (lastBridgeSessionId), and same-session
331 // 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

logForDebuggingFunction · 0.85
updateBridgeSessionTitleFunction · 0.85

Tested by

no test coverage detected