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
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
ci: format retention cleanup changes
Louis Beaumonta1ce73d99fa1
diff --git a/crates/screenpipe-a11y/src/config.rs b/crates/screenpipe-a11y/src/config.rsindex d40cd1357..fe1174da2 100644--- a/crates/screenpipe-a11y/src/config.rs+++ b/crates/screenpipe-a11y/src/config.rs@@ -213,7 +213,7 @@ impl Default for UiCaptureConfig {capture_clipboard_content: true,capture_context: true,capture_mouse_move: false, // High volume- capture_tree: false, // Freezes foreground apps on Windows; snapshots unconsumed+ capture_tree: false, // Freezes foreground apps on Windows; snapshots unconsumedtree_debounce_ms: 300,tree_max_elements: 10000,tree_capture_interval_ms: 0,diff --git a/crates/screenpipe-db/tests/evict_media_null_chunk_test.rs b/crates/screenpipe-db/tests/evict_media_null_chunk_test.rsindex 6f2f6b318..db2d49310 100644--- a/crates/screenpipe-db/tests/evict_media_null_chunk_test.rs+++ b/crates/screenpipe-db/tests/evict_media_null_chunk_test.rs@@ -147,7 +147,11 @@ async fn straddling_chunk_is_still_skipped() {);assert_eq!(result.video_chunks_evicted, 0);assert_eq!(- count(&db, "SELECT COUNT(*) FROM video_chunks WHERE id = 1 AND evicted_at IS NULL").await,+ count(+ &db,+ "SELECT COUNT(*) FROM video_chunks WHERE id = 1 AND evicted_at IS NULL"+ )+ .await,1);}diff --git a/crates/screenpipe-db/tests/orphan_chunk_null_poisoning_test.rs b/crates/screenpipe-db/tests/orphan_chunk_null_poisoning_test.rsindex c14f1fba4..c1c9e6e15 100644--- a/crates/screenpipe-db/tests/orphan_chunk_null_poisoning_test.rs+++ b/crates/screenpipe-db/tests/orphan_chunk_null_poisoning_test.rs@@ -100,10 +100,7 @@ async fn delete_time_range_batch_collects_files_despite_out_of_range_null_chunk_let start = Utc::now() - Duration::days(31);let end = Utc::now() - Duration::days(29);- let result = db- .delete_time_range_batch(start, end, true)- .await- .unwrap();+ let result = db.delete_time_range_batch(start, end, true).await.unwrap();assert_eq!(result.video_files,vec!["/data/old.mp4".to_string()],@@ -199,10 +196,7 @@ async fn delete_time_range_batch_archive_mode_collects_cloud_files_despite_null_let start = Utc::now() - Duration::days(31);let end = Utc::now() - Duration::days(29);- let result = db- .delete_time_range_batch(start, end, false)- .await- .unwrap();+ let result = db.delete_time_range_batch(start, end, false).await.unwrap();assert_eq!(result.video_files,vec!["/data/old.mp4".to_string()],diff --git a/crates/screenpipe-engine/src/retention.rs b/crates/screenpipe-engine/src/retention.rsindex 286f76a5f..4fdabd24a 100644--- a/crates/screenpipe-engine/src/retention.rs+++ b/crates/screenpipe-engine/src/retention.rs@@ -715,10 +715,9 @@ mod tests {// batches. Under the bug this call would have been identical to the// first — and would stay identical forever, every 5 minutes.let t1 = std::time::Instant::now();- let (deleted, watermark2) =- do_local_cleanup(&db, watermark, cutoff, RetentionMode::Media)- .await- .unwrap();+ let (deleted, watermark2) = do_local_cleanup(&db, watermark, cutoff, RetentionMode::Media)+ .await+ .unwrap();let resumed_pass_elapsed = t1.elapsed();assert_eq!(deleted, 0);assert_eq!(@@ -834,9 +833,7 @@ mod tests {// instantly: `begin_immediate_with_retry` only retries// connection-acquisition errors, not query errors after BEGIN, so a// missing table surfaces immediately as Err, no backoff needed.- db.execute_raw_sql("DROP TABLE video_chunks")- .await- .unwrap();+ db.execute_raw_sql("DROP TABLE video_chunks").await.unwrap();let now = Utc::now();let start = now - Duration::hours(2);