Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix(chat-storage): sanitize filename — pipe-run sessions silently lost on Windows

Louis Beaumont6c038aeb8154
diff --git a/apps/screenpipe-app-tauri/lib/chat-storage.ts b/apps/screenpipe-app-tauri/lib/chat-storage.ts
index 399d3c72c..50e67f248 100644
--- a/apps/screenpipe-app-tauri/lib/chat-storage.ts
+++ b/apps/screenpipe-app-tauri/lib/chat-storage.ts
@@ -34,8 +34,11 @@ export async function ensureChatsDir(): Promise<string> {
return dir;
}
+// Pipe-run session ids are `pipe:<name>:<execId>`. The colons are illegal on
+// NTFS (reserved for alternate data streams), so saves silently fail on
+// Windows. Same set as Win32's invalid-filename chars; safe no-op for UUIDs.
function conversationFilename(id: string): string {
- return `${id}.json`;
+ return `${id.replace(/[<>:"/\\|?*]/g, "_")}.json`;
}
export async function saveConversationFile(
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 387baf945..778a0cd6f 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.4.118"
+version = "2.4.119"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""