Skip to content

Local-first AI coding agent desktop: Electron + Rust host core + pi Agent Harness + user-installable plugins

test(host-core): create session directory in cleanup fixture

vastsa44795864fd93
diff --git a/crates/host-core/src/transcripts_layout_tests.rs b/crates/host-core/src/transcripts_layout_tests.rs
index 869b3659b..4ba596776 100644
--- a/crates/host-core/src/transcripts_layout_tests.rs
+++ b/crates/host-core/src/transcripts_layout_tests.rs
@@ -154,6 +154,7 @@ fn remove_session_files_cleans_up_layout_cache_and_tmp() {
let layout = transcript.with_extension("jsonl.layout");
let layout_tmp = transcript.with_extension("jsonl.layout.tmp");
let legacy_tmp = transcript.with_extension("layout.tmp");
+ fs::create_dir_all(transcript.parent().unwrap()).unwrap();
fs::write(&transcript, "content").unwrap();
fs::write(&layout, "layout").unwrap();
fs::write(&layout_tmp, "tmp").unwrap();