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
test(redact): wait for contextual redaction completion
Louis Beaumont6ea4fddeb2b0
diff --git a/crates/screenpipe-redact/tests/worker_integration.rs b/crates/screenpipe-redact/tests/worker_integration.rsindex 3e71eebb6..6b7a8df99 100644--- a/crates/screenpipe-redact/tests/worker_integration.rs+++ b/crates/screenpipe-redact/tests/worker_integration.rs@@ -833,7 +833,16 @@ async fn frame_fulltext_uses_accessibility_input_context_without_extra_model_pas..test_worker_config()};let handle = Worker::new(pool.clone(), redactor.clone(), cfg).spawn();- tokio::time::sleep(Duration::from_millis(200)).await;+ wait_until("contextual full-text redaction", || async {+ let row = sqlx::query(+ "SELECT full_text_redacted_at, accessibility_redacted_at FROM frames WHERE id = 1",+ )+ .fetch_one(&pool)+ .await+ .unwrap();+ row.get::<Option<i64>, _>(0).is_some() && row.get::<Option<i64>, _>(1).is_some()+ })+ .await;handle.abort();let row = sqlx::query(