Skip to main content

transcript_path

Function transcript_path 

Source
pub fn transcript_path(
    home: &Path,
    working_directory: &Path,
    session_id: impl AsRef<str>,
) -> PathBuf
Expand description

Resolve <home>/.claude/projects/<encoded-cwd>/<session-id>.jsonl — the transcript file the CLI writes for session_id runs in working_directory. Takes home explicitly (pass a tempdir in tests; never let a test path resolve into a real transcript store).