MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / findThread

Function findThread

web/src/app/components/messages/threading.ts:171–174  ·  view source on GitHub ↗
(threads: Thread[], key: string | null | undefined)

Source from the content-addressed store, hash-verified

169}
170
171export function findThread(threads: Thread[], key: string | null | undefined): Thread | null {
172 if (!key) return threads[0] ?? null;
173 return threads.find((t) => t.key === key) ?? threads[0] ?? null;
174}

Callers 1

threading.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected