MCPcopy Create free account
hub / github.com/Kevin7Qi/codex-collab / removeThread

Function removeThread

src/threads.ts:247–254  ·  view source on GitHub ↗
(stateDir: string, shortId: string)

Source from the content-addressed store, hash-verified

245}
246
247export function removeThread(stateDir: string, shortId: string): void {
248 const filePath = threadsFilePath(stateDir);
249 withThreadLock(filePath, () => {
250 const index = loadThreadIndex(stateDir);
251 delete index[shortId];
252 saveThreadIndex(stateDir, index);
253 });
254}
255
256// ─── Run Ledger ────────────────────────────────────────────────────────────
257

Callers 2

threads.test.tsFile · 0.90
handleDeleteFunction · 0.90

Calls 4

threadsFilePathFunction · 0.85
withThreadLockFunction · 0.85
loadThreadIndexFunction · 0.85
saveThreadIndexFunction · 0.85

Tested by

no test coverage detected