MCPcopy
hub / github.com/claude-code-best/claude-code / getTranscriptPath

Function getTranscriptPath

src/utils/sessionStorage.ts:203–206  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201}
202
203export function getTranscriptPath(): string {
204 const projectDir = getSessionProjectDir() ?? getProjectDir(getOriginalCwd())
205 return join(projectDir, `${getSessionId()}.jsonl`)
206}
207
208export function getTranscriptPathForSession(sessionId: string): string {
209 // When asking for the CURRENT session's transcript, honor sessionProjectDir

Callers 10

adoptResumedSessionFileFunction · 0.70
findUnresolvedToolUseFunction · 0.70
getTranscriptStatsFunction · 0.70
execAgentHookFunction · 0.50
compactConversationFunction · 0.50
acceptSpeculationFunction · 0.50

Calls 4

getSessionProjectDirFunction · 0.85
getOriginalCwdFunction · 0.85
getSessionIdFunction · 0.85
getProjectDirFunction · 0.70

Tested by

no test coverage detected