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

Function getSessionThreadId

desktop/thread-state-db/session-writes.ts:22–24  ·  view source on GitHub ↗
(session: SessionSummaryRecord, duplicateSessionIds: Set<string>)

Source from the content-addressed store, hash-verified

20}
21
22function getSessionThreadId(session: SessionSummaryRecord, duplicateSessionIds: Set<string>) {
23 return duplicateSessionIds.has(session.id) ? getDisambiguatedThreadId(session) : session.id
24}
25
26function getDuplicateSessionIds(sessions: SessionSummaryRecord[]) {
27 const sessionPathsById = new Map<string, Set<string>>()

Callers 1

syncSessionSummariesFunction · 0.85

Calls 1

getDisambiguatedThreadIdFunction · 0.85

Tested by

no test coverage detected