Skip to content

Solution for long term memory for agent coding CLIs and to facilitate handoff between different agent vendors

Rust

test(workstream): build the Claude project folder the way discovery does

AkitaOnRails7bd7cf0055e4
diff --git a/crates/ai-memory-workstream/src/transcript.rs b/crates/ai-memory-workstream/src/transcript.rs
index b90603b2..bf815b38 100644
--- a/crates/ai-memory-workstream/src/transcript.rs
+++ b/crates/ai-memory-workstream/src/transcript.rs
@@ -6679,7 +6679,7 @@ mod tests {
let transcripts = temp
.path()
.join(".claude/projects")
- .join(cwd.to_string_lossy().replace('/', "-"));
+ .join(claude_project_dir_name(&cwd));
fs::create_dir_all(&transcripts).unwrap();
let claude_path = transcripts.join(format!("{session}.jsonl"));
let oversized_header = json!({
@@ -6867,7 +6867,7 @@ mod tests {
let transcripts = temp
.path()
.join(".claude/projects")
- .join(cwd.to_string_lossy().replace('/', "-"));
+ .join(claude_project_dir_name(&cwd));
fs::create_dir_all(&transcripts).unwrap();
// Sorted ahead of the session we are looking for, so discovery reads
// it first whether or not the two share a modification time.