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(windows): clear persistent installed state; prepare 2.7.115 (#7670)

Louis Beaumont6bb753f85c6a
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index 289f511fa..6820d279a 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -11261,7 +11261,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.7.114"
+version = "2.7.115"
dependencies = [
"aes 0.8.4",
"aes-gcm 0.10.3",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index 90bc8a439..6e1c78da3 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -7,7 +7,7 @@ members = ["wer-dump-helper", "windows/persistence-supervisor", "release-router-
[package]
name = "screenpipe-app"
-version = "2.7.114"
+version = "2.7.115"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/windows/persistence-supervisor/src/platform.rs b/apps/screenpipe-app-tauri/src-tauri/windows/persistence-supervisor/src/platform.rs
index e9973c46c..ee7437bde 100644
--- a/apps/screenpipe-app-tauri/src-tauri/windows/persistence-supervisor/src/platform.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/windows/persistence-supervisor/src/platform.rs
@@ -2054,6 +2054,7 @@ pub fn remove_persistence() -> Result<()> {
let state = state_dir(Path::new(&program_data));
let _ = fs::remove_file(policy_disabled_path(Path::new(&program_data)));
let _ = fs::remove_file(log_path(Path::new(&program_data)));
+ let _ = fs::remove_file(state.join(INSTALLED_STATE_FILE));
let _ = fs::remove_file(state.join(RECOVERY_SUPERVISOR_FILE));
let _ = fs::remove_dir_all(state.join(UPDATE_STAGING_DIR));
let _ = fs::remove_dir(state);
diff --git a/crates/screenpipe-audio/src/audio_manager/manager.rs b/crates/screenpipe-audio/src/audio_manager/manager.rs
index 619f3bd9e..a676a07e5 100644
--- a/crates/screenpipe-audio/src/audio_manager/manager.rs
+++ b/crates/screenpipe-audio/src/audio_manager/manager.rs
@@ -2633,8 +2633,11 @@ mod tests {
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
async fn idle_audio_handlers_cancel_and_restart_without_stealing_queued_capture() {
let tmp = tempfile::tempdir().unwrap();
+ // Match the recorder's file-backed WAL database: a shared in-memory
+ // database can reject this concurrent polling reader with SQLITE_LOCKED.
+ let db_path = tmp.path().join("index.sqlite");
let db = Arc::new(
- DatabaseManager::new("sqlite::memory:", Default::default())
+ DatabaseManager::new(db_path.to_str().unwrap(), Default::default())
.await
.unwrap(),
);