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

Function getThreadSessionPath

desktop/thread-state-db/queries.ts:314–327  ·  view source on GitHub ↗
(threadId: string)

Source from the content-addressed store, hash-verified

312}
313
314export function getThreadSessionPath(threadId: string) {
315 const db = getThreadStateDatabase()
316 const row = db
317 .prepare(
318 `
319 SELECT session_path AS sessionPath
320 FROM threads
321 WHERE id = ?
322 `,
323 )
324 .get(threadId) as ThreadPathRow | undefined
325
326 return row?.sessionPath ?? null
327}
328
329export function getThreadCwd(sessionPath: string) {
330 const db = getThreadStateDatabase()

Callers 2

deletePersistedThreadFunction · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
getMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected