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

fix(search): keyword flat mode no longer silently drops results without text positions (#3033)

Ansh Groverae2e54dcfd2a
diff --git a/crates/screenpipe-engine/src/routes/search.rs b/crates/screenpipe-engine/src/routes/search.rs
index 11b3b3baf..9d60f94cc 100644
--- a/crates/screenpipe-engine/src/routes/search.rs
+++ b/crates/screenpipe-engine/src/routes/search.rs
@@ -549,9 +549,6 @@ pub(crate) async fn keyword_search_handler(
let filtered: Vec<_> = matches
.into_iter()
.filter(|m| !m.app_name.to_lowercase().contains("screenpipe"))
- // Drop results with no text_positions — the user can't see where
- // the match is on the screenshot, so showing them is misleading
- .filter(|m| !m.text_positions.is_empty() || query.query.is_empty())
.collect();
Ok(JsonResponse(json!(filtered)))