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(windows): OcrTextBlock deserialization now handles Windows OCR format

louis030195c49ccb557282
diff --git a/crates/screenpipe-db/src/types.rs b/crates/screenpipe-db/src/types.rs
index fc3155273..d0bbd6ad4 100644
--- a/crates/screenpipe-db/src/types.rs
+++ b/crates/screenpipe-db/src/types.rs
@@ -294,7 +294,8 @@ pub struct AudioChunksResponse {
pub timestamp: DateTime<Utc>,
}
-#[derive(Debug, Serialize, Deserialize)]
+#[derive(Debug, Default, Serialize, Deserialize)]
+#[serde(default)]
pub struct OcrTextBlock {
pub block_num: String,
pub conf: String,