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

Function findLastUuid

src/services/api/sessionIngress.ts:491–497  ·  view source on GitHub ↗

* Walk backward through entries to find the last one with a uuid. * Some entry types (SummaryMessage, TagMessage) don't have one.

(logs: Entry[] | null)

Source from the content-addressed store, hash-verified

489 * Some entry types (SummaryMessage, TagMessage) don't have one.
490 */
491function findLastUuid(logs: Entry[] | null): UUID | undefined {
492 if (!logs) {
493 return undefined
494 }
495 const entry = logs.findLast(e => 'uuid' in e && e.uuid)
496 return entry && 'uuid' in entry ? (entry.uuid as UUID) : undefined
497}
498
499/**
500 * Clear cached state for a session

Callers 1

appendSessionLogImplFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected