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: CAST focused column to TEXT in FTS frames indexer
Louis Beaumont6d1af71b2937
diff --git a/crates/screenpipe-db/src/fts_indexer.rs b/crates/screenpipe-db/src/fts_indexer.rsindex 0c5fea552..f941be658 100644--- a/crates/screenpipe-db/src/fts_indexer.rs+++ b/crates/screenpipe-db/src/fts_indexer.rs@@ -183,7 +183,7 @@ async fn index_frames_fts(db: &DatabaseManager) -> Result<i64, sqlx::Error> {// tables or disk-bound DBs) doesn't hold the exclusive write lock.let rows: Vec<(i64, String, String, String, String, String)> = sqlx::query_as("SELECT id, COALESCE(name, ''), COALESCE(browser_url, ''), \- COALESCE(app_name, ''), COALESCE(window_name, ''), COALESCE(focused, 0) \+ COALESCE(app_name, ''), COALESCE(window_name, ''), CAST(COALESCE(focused, 0) AS TEXT) \FROM frames WHERE rowid > ?1 ORDER BY rowid LIMIT ?2",).bind(last)