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(ci): rustfmt event_driven_capture.rs (#4231)
Louis Beaumont901e05832bb3
diff --git a/crates/screenpipe-engine/src/event_driven_capture.rs b/crates/screenpipe-engine/src/event_driven_capture.rsindex 68de596f6..db25069f1 100644--- a/crates/screenpipe-engine/src/event_driven_capture.rs+++ b/crates/screenpipe-engine/src/event_driven_capture.rs@@ -2513,8 +2513,18 @@ mod tests {false,recent));- assert!(!dedup_applies(&CaptureTrigger::KeyPress, false, false, recent));- assert!(!dedup_applies(&CaptureTrigger::Clipboard, false, false, recent));+ assert!(!dedup_applies(+ &CaptureTrigger::KeyPress,+ false,+ false,+ recent+ ));+ assert!(!dedup_applies(+ &CaptureTrigger::Clipboard,+ false,+ false,+ recent+ ));// HD active → dedup is bypassed even for an otherwise-eligible trigger.// This is the fix: video/demo replay moves pixels but not AX text, so@@ -2552,7 +2562,12 @@ mod tests {// Idle/Manual are always dedup-exempt (timeline floor), HD or not.assert!(!dedup_applies(&CaptureTrigger::Idle, false, false, recent));- assert!(!dedup_applies(&CaptureTrigger::Manual, false, false, recent));+ assert!(!dedup_applies(+ &CaptureTrigger::Manual,+ false,+ false,+ recent+ ));// 30s time-floor: once it elapses, write through regardless.assert!(!dedup_applies(@@ -2683,7 +2698,9 @@ mod tests {// ~6s since the last capture — past the meeting cap, well under 30s.let six_s_ago = Instant::now()- .checked_sub(Duration::from_millis(MEETING_IDLE_CAPTURE_INTERVAL_MS + 1_000))+ .checked_sub(Duration::from_millis(+ MEETING_IDLE_CAPTURE_INTERVAL_MS + 1_000,+ )).unwrap_or(Instant::now());// Not in a meeting: 6s < 30s → no idle capture yet.