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
fix: suggestions OCR query references non-existent timestamp column
Louis Beaumont454f07d0f663
diff --git a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rsindex 30f139454..588aee953 100644--- a/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/suggestions.rs@@ -578,7 +578,7 @@ async fn fetch_ocr_snippets() -> Vec<String> {let resp = client.post(format!("{}/raw_sql", API)).json(&serde_json::json!({- "query": "SELECT SUBSTR(text, 1, 150) as snippet FROM ocr_text WHERE datetime(timestamp) > datetime('now', '-15 minutes') AND LENGTH(text) > 20 ORDER BY RANDOM() LIMIT 5"+ "query": "SELECT SUBSTR(ot.text, 1, 150) as snippet FROM ocr_text ot JOIN frames f ON ot.frame_id = f.id WHERE datetime(f.timestamp) > datetime('now', '-15 minutes') AND LENGTH(ot.text) > 20 ORDER BY RANDOM() LIMIT 5"})).timeout(std::time::Duration::from_secs(5)).send()