MCPcopy Create free account
hub / github.com/codeaashu/claude-code / removeConversation

Function removeConversation

web/lib/workers/search.worker.ts:56–70  ·  view source on GitHub ↗
(conversationId: string)

Source from the content-addressed store, hash-verified

54}
55
56function removeConversation(conversationId: string): void {
57 // Mark entries as removed (nullish id) — we rebuild if fragmentation grows
58 for (const entry of entries) {
59 if (entry.conversationId === conversationId) {
60 (entry as { conversationId: string }).conversationId = "__removed__";
61 }
62 }
63 // Prune index entries that only point to removed items
64 for (const [token, set] of index) {
65 for (const idx of set) {
66 if (entries[idx].conversationId === "__removed__") set.delete(idx);
67 }
68 if (set.size === 0) index.delete(token);
69 }
70}
71
72function extractSnippet(text: string, query: string): string {
73 const lower = text.toLowerCase();

Callers 1

search.worker.tsFile · 0.85

Calls 1

deleteMethod · 0.65

Tested by

no test coverage detected