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.5.95 - release-app

Louis Beaumonta2763a902a2e
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index b458986bd..eebd54aa2 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -10927,7 +10927,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.5.94"
+version = "2.5.95"
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 9fcd99f50..c1586391b 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -2,7 +2,7 @@
[package]
name = "screenpipe-app"
-version = "2.5.94"
+version = "2.5.95"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-a11y/src/platform/windows.rs b/crates/screenpipe-a11y/src/platform/windows.rs
index 25c79c305..80e56fccf 100644
--- a/crates/screenpipe-a11y/src/platform/windows.rs
+++ b/crates/screenpipe-a11y/src/platform/windows.rs
@@ -1249,10 +1249,9 @@ impl InputWorker {
}
}
- let scroll_due = self
- .scroll_aggregator
- .as_ref()
- .is_some_and(|agg| agg.last_scroll.elapsed().as_millis() >= SCROLL_AGGREGATION_WINDOW_MS);
+ let scroll_due = self.scroll_aggregator.as_ref().is_some_and(|agg| {
+ agg.last_scroll.elapsed().as_millis() >= SCROLL_AGGREGATION_WINDOW_MS
+ });
if scroll_due {
if let Some(agg) = self.scroll_aggregator.take() {
emit_aggregated_scroll(&self.tx, agg);
@@ -2588,7 +2587,11 @@ mod tests {
// Healthy: hooks fired recently.
assert!(!watchdog_should_reinstall(100, 100, None));
// Dead: system input flowing but hooks silent.
- assert!(watchdog_should_reinstall(100, WATCHDOG_HOOK_SILENT_MS, None));
+ assert!(watchdog_should_reinstall(
+ 100,
+ WATCHDOG_HOOK_SILENT_MS,
+ None
+ ));
// Idle system: hooks silent but no input either — not dead.
assert!(!watchdog_should_reinstall(60_000, 60_000, None));
// Backoff: too soon after the previous reinstall.
diff --git a/crates/screenpipe-db/src/db/audio.rs b/crates/screenpipe-db/src/db/audio.rs
index c53ef3ee2..a06a1430c 100644
--- a/crates/screenpipe-db/src/db/audio.rs
+++ b/crates/screenpipe-db/src/db/audio.rs
@@ -290,9 +290,13 @@ impl DatabaseManager {
const BATCH: usize = 500;
let mut tx = self.begin_immediate_with_retry().await?;
for group in chunk_ids.chunks(BATCH) {
- let placeholders: String = std::iter::repeat("?").take(group.len()).collect::<Vec<_>>().join(",");
- let del_transcriptions =
- format!("DELETE FROM audio_transcriptions WHERE audio_chunk_id IN ({placeholders})");
+ let placeholders: String = std::iter::repeat("?")
+ .take(group.len())
+ .collect::<Vec<_>>()
+ .join(",");
+ let del_transcriptions = format!(
+ "DELETE FROM audio_transcriptions WHERE audio_chunk_id IN ({placeholders})"
+ );
let mut q = sqlx::query(&del_transcriptions);
for &id in group {
q = q.bind(id);
diff --git a/crates/screenpipe-screen/src/wgc_capture.rs b/crates/screenpipe-screen/src/wgc_capture.rs
index 4912c5362..a87a79ffe 100644
--- a/crates/screenpipe-screen/src/wgc_capture.rs
+++ b/crates/screenpipe-screen/src/wgc_capture.rs
@@ -96,7 +96,9 @@ static SHARED_D3D: Mutex<Option<Arc<D3dContext>>> = Mutex::new(None);
fn shared_d3d_cache() -> MutexGuard<'static, Option<Arc<D3dContext>>> {
// Poison recovery: the cache holds an Option we always overwrite consistently;
// propagating a poison would permanently kill capture over an unrelated panic.
- SHARED_D3D.lock().unwrap_or_else(|poisoned| poisoned.into_inner())
+ SHARED_D3D
+ .lock()
+ .unwrap_or_else(|poisoned| poisoned.into_inner())
}
/// Get the shared device, recreating it if a GPU reset / driver update removed it.
@@ -353,24 +355,23 @@ impl PersistentCapture {
let handler_closed = closed.clone();
let handler_d3d = d3d.clone();
let frame_arrived_token = frame_pool
- .FrameArrived(&TypedEventHandler::<
- Direct3D11CaptureFramePool,
- IInspectable,
- >::new(
- move |frame_pool: &Option<Direct3D11CaptureFramePool>, _| {
- if let Some(frame_pool) = frame_pool {
- if let Err(e) = Self::on_frame_arrived(
- frame_pool,
- &handler_d3d,
- &handler_latest,
- &handler_closed,
- ) {
- tracing::debug!("wgc FrameArrived: {}", e);
+ .FrameArrived(
+ &TypedEventHandler::<Direct3D11CaptureFramePool, IInspectable>::new(
+ move |frame_pool: &Option<Direct3D11CaptureFramePool>, _| {
+ if let Some(frame_pool) = frame_pool {
+ if let Err(e) = Self::on_frame_arrived(
+ frame_pool,
+ &handler_d3d,
+ &handler_latest,
+ &handler_closed,
+ ) {
+ tracing::debug!("wgc FrameArrived: {}", e);
+ }
}
- }
- Ok(())
- },
- ))
+ Ok(())
+ },
+ ),
+ )
.map_err(|e| {
let _ = frame_pool.Close();
anyhow!("failed to register FrameArrived handler: {}", e)
@@ -379,8 +380,8 @@ impl PersistentCapture {
let closed_flag = closed.clone();
let closed_latest = latest.clone();
let closed_token = item
- .Closed(&TypedEventHandler::<GraphicsCaptureItem, IInspectable>::new(
- move |_, _| {
+ .Closed(
+ &TypedEventHandler::<GraphicsCaptureItem, IInspectable>::new(move |_, _| {
tracing::info!(
"WGC capture item closed (monitor disconnected or session invalidated)"
);
@@ -395,8 +396,8 @@ impl PersistentCapture {
}
closed_latest.1.notify_all();
Ok(())
- },
- ))
+ }),
+ )
.map_err(|e| {
let _ = frame_pool.RemoveFrameArrived(frame_arrived_token);
let _ = frame_pool.Close();
@@ -501,12 +502,14 @@ impl PersistentCapture {
let surface = frame
.Surface()
.map_err(|e| anyhow!("Direct3D11CaptureFrame::Surface failed: {}", e))?;
- let access = surface.cast::<IDirect3DDxgiInterfaceAccess>().map_err(|e| {
- anyhow!(
- "failed to cast surface to IDirect3DDxgiInterfaceAccess: {}",
- e
- )
- })?;
+ let access = surface
+ .cast::<IDirect3DDxgiInterfaceAccess>()
+ .map_err(|e| {
+ anyhow!(
+ "failed to cast surface to IDirect3DDxgiInterfaceAccess: {}",
+ e
+ )
+ })?;
let source_texture: ID3D11Texture2D = unsafe {
access
.GetInterface()
@@ -604,7 +607,9 @@ impl PersistentCapture {
// Closed takes precedence over any cached frame: a dead session must
// error (=> reinit upstream), never serve its last frame forever.
if self.closed.load(Ordering::Acquire) {
- return Err(anyhow!("WGC session closed (capture item closed or stopped)"));
+ return Err(anyhow!(
+ "WGC session closed (capture item closed or stopped)"
+ ));
}
if slot.texture.is_some() {
break;
@@ -783,7 +788,11 @@ mod tests {
let image = capture
.get_latest_image(Duration::from_secs(2))
.expect("failed to get frame");
- assert_eq!(image.width(), monitor_width, "captured width != monitor width");
+ assert_eq!(
+ image.width(),
+ monitor_width,
+ "captured width != monitor width"
+ );
assert_eq!(
image.height(),
monitor_height,