MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / getDisambiguatedThreadId

Function getDisambiguatedThreadId

desktop/thread-state-db/session-writes.ts:17–20  ·  view source on GitHub ↗
(session: SessionSummaryRecord)

Source from the content-addressed store, hash-verified

15}
16
17function getDisambiguatedThreadId(session: SessionSummaryRecord) {
18 const suffix = createHash('sha1').update(session.sessionPath).digest('hex').slice(0, 8)
19 return `${session.id}:${suffix}`
20}
21
22function getSessionThreadId(session: SessionSummaryRecord, duplicateSessionIds: Set<string>) {
23 return duplicateSessionIds.has(session.id) ? getDisambiguatedThreadId(session) : session.id

Callers 2

getSessionThreadIdFunction · 0.85
upsertThreadSummaryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected