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
release-app
Louis Beaumont06e5c1f9287f
diff --git a/Cargo.toml b/Cargo.tomlindex bd0bce61d..214a36838 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -12,7 +12,7 @@ exclude = ["screenpipe-app-tauri/src-tauri"]resolver = "2"[workspace.package]-version = "0.2.55"+version = "0.2.56"authors = ["louis030195 <[email protected]>"]description = ""repository = "https://github.com/mediar-ai/screenpipe"diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 180474c6f..b1d36b893 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.35.11"+version = "0.35.12"description = ""authors = ["you"]license = ""diff --git a/screenpipe-server/src/db.rs b/screenpipe-server/src/db.rsindex 4ada8bb11..fdef06b23 100644--- a/screenpipe-server/src/db.rs+++ b/screenpipe-server/src/db.rs@@ -1553,7 +1553,8 @@ impl DatabaseManager {ui_monitoring.initial_traversal_at,video_chunks.file_path,frames.offset_index,- frames.browser_url+ frames.browser_url,+ frames.name as frame_nameFROM {}LEFT JOIN frames ONframes.timestamp BETWEENdiff --git a/screenpipe-server/tests/db.rs b/screenpipe-server/tests/db.rsindex bd2610fcc..b4f29cd18 100644--- a/screenpipe-server/tests/db.rs+++ b/screenpipe-server/tests/db.rs@@ -1049,4 +1049,117 @@ mod tests {assert_eq!(count, 2, "Should count both matching frames");}++ #[tokio::test]+ async fn test_insert_and_search_ui_monitoring() {+ let db = setup_test_db().await;++ // Insert UI monitoring data+ sqlx::query(+ r#"+ INSERT INTO ui_monitoring (+ text_output,+ timestamp,+ app,+ window,+ initial_traversal_at+ ) VALUES (?, ?, ?, ?, ?)+ "#,+ )+ .bind("Hello from UI monitoring")+ .bind(Utc::now())+ .bind("test_app")+ .bind("test_window")+ .bind(Utc::now())+ .execute(&db.pool)+ .await+ .unwrap();++ // Test search with app name filter+ let results = db+ .search(+ "Hello",+ ContentType::UI,+ 100,+ 0,+ None,+ None,+ Some("test_app"),+ None,+ None,+ None,+ None,+ None,+ )+ .await+ .unwrap();+ assert_eq!(results.len(), 1);+ if let SearchResult::UI(ui_result) = &results[0] {+ assert_eq!(ui_result.text, "Hello from UI monitoring");+ assert_eq!(ui_result.app_name, "test_app");+ assert_eq!(ui_result.window_name, "test_window");+ } else {+ panic!("Expected UI result");+ }++ // Test search with window name filter+ let results = db+ .search(+ "Hello",+ ContentType::UI,+ 100,+ 0,+ None,+ None,+ None,+ Some("test_window"),+ None,+ None,+ None,+ None,+ )+ .await+ .unwrap();+ assert_eq!(results.len(), 1);++ // Test search with no matches+ let results = db+ .search(+ "nonexistent",+ ContentType::UI,+ 100,+ 0,+ None,+ None,+ None,+ None,+ None,+ None,+ None,+ None,+ )+ .await+ .unwrap();+ assert_eq!(results.len(), 0);++ // Test search with empty query (should return all UI entries)+ let results = db+ .search(+ "",+ ContentType::UI,+ 100,+ 0,+ None,+ None,+ None,+ None,+ None,+ None,+ None,+ None,+ )+ .await+ .unwrap();+ assert_eq!(results.len(), 1);+ }}