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

Bump app to v2.2.237

Louis Beaumont163805d313aa
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index df7e5fdf9..f5aab9f92 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -902,6 +902,28 @@ dependencies = [
"arrayvec",
]
+[[package]]
+name = "aws-lc-rs"
+version = "1.16.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a054912289d18629dc78375ba2c3726a3afe3ff71b4edba9dedfca0e3446d1fc"
+dependencies = [
+ "aws-lc-sys",
+ "zeroize",
+]
+
+[[package]]
+name = "aws-lc-sys"
+version = "0.39.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa7e52a4c5c547c741610a2c6f123f3881e409b714cd27e6798ef020c514f0a"
+dependencies = [
+ "cc",
+ "cmake",
+ "dunce",
+ "fs_extra",
+]
+
[[package]]
name = "axum"
version = "0.6.20"
@@ -4415,17 +4437,21 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46"
[[package]]
name = "hf-hub"
version = "0.3.2"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "2b780635574b3d92f036890d8373433d6f9fc7abb320ee42a5c25897fc8ed732"
+source = "git+https://github.com/neo773/hf-hub#437dcf4049233f4a0e0cfc4e1c1dbf5ed2c57760"
dependencies = [
"dirs 5.0.1",
+ "futures",
+ "http 1.4.0",
"indicatif",
"log",
- "native-tls",
+ "num_cpus",
"rand 0.8.5",
+ "reqwest 0.12.12",
+ "rustls 0.23.37",
"serde",
"serde_json",
"thiserror 1.0.69",
+ "tokio",
"ureq 2.12.1",
]
@@ -9032,6 +9058,7 @@ version = "0.23.37"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "758025cb5fccfd3bc2fd74708fd4682be41d99e5dff73c377c0646c6012c73a4"
dependencies = [
+ "aws-lc-rs",
"log",
"once_cell",
"ring",
@@ -9124,6 +9151,7 @@ version = "0.103.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53"
dependencies = [
+ "aws-lc-rs",
"ring",
"rustls-pki-types",
"untrusted",
@@ -9319,7 +9347,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.2.234"
+version = "2.2.236"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index db73a63dc..2e80f4bbb 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.2.236"
+version = "2.2.237"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/store.rs b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
index fb813ca39..381f9496c 100644
--- a/apps/screenpipe-app-tauri/src-tauri/src/store.rs
+++ b/apps/screenpipe-app-tauri/src-tauri/src/store.rs
@@ -23,9 +23,31 @@ pub fn get_store(
let base_dir = get_base_dir(app, None)?;
let store_path = base_dir.join("store.bin");
- let store = StoreBuilder::new(app, store_path)
- .build()
- .map_err(|e| anyhow::anyhow!(e))?;
+ // Retry with backoff to handle TOCTOU race (EEXIST / os error 17)
+ // when multiple instances or threads race to create store.bin.
+ let mut last_err = None;
+ let store = 'retry: {
+ for attempt in 0..3u32 {
+ match StoreBuilder::new(app, store_path.clone()).build() {
+ Ok(s) => break 'retry s,
+ Err(e) => {
+ let msg = e.to_string();
+ if msg.contains("os error 17") || msg.contains("File exists") {
+ tracing::warn!(
+ "store build race (attempt {}): {}, retrying",
+ attempt + 1,
+ msg
+ );
+ std::thread::sleep(std::time::Duration::from_millis(100 * (attempt as u64 + 1)));
+ last_err = Some(e);
+ continue;
+ }
+ return Err(anyhow::anyhow!(e));
+ }
+ }
+ }
+ return Err(anyhow::anyhow!(last_err.unwrap()));
+ };
// If another thread raced us, use their instance
Ok(STORE_CACHE.get_or_init(|| store).clone())