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: cargo fmt on db tests
Louis Beaumont2e72b900cca7
diff --git a/CLAUDE.md b/CLAUDE.mdindex 2a4d72f73..93e4032c2 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -30,6 +30,7 @@ Use `#` for Python, `//` for Rust/TS/JS/Swift. Keep it as the first comment in t- `cargo test` for Rust- `bun test` for JS/TS- **Regression checklist**: `TESTING.md` — must-read before changing window management, tray/dock, monitors, audio, or Apple Intelligence. Lists every edge case that has caused regressions with commit references.+- regularly check ci/cd which runs automated tests to verify if we broke something or not## macOS Dev Builds- Dev builds are signed with a developer certificate for consistent permissionsdiff --git a/crates/screenpipe-db/tests/db.rs b/crates/screenpipe-db/tests/db.rsindex ce64d8199..99d099858 100644--- a/crates/screenpipe-db/tests/db.rs+++ b/crates/screenpipe-db/tests/db.rs@@ -861,8 +861,15 @@ mod tests {// (85% similarity threshold within 45s window)let transcriptions: Vec<Vec<&str>> = vec![vec!["the quick brown fox jumps over the lazy dog"],- vec!["quantum computing revolutionizes cryptography today", "blockchain networks secure digital transactions worldwide"],- vec!["artificial intelligence transforms healthcare diagnostics rapidly", "machine learning models predict weather patterns accurately", "neural networks process natural language understanding efficiently"],+ vec![+ "quantum computing revolutionizes cryptography today",+ "blockchain networks secure digital transactions worldwide",+ ],+ vec![+ "artificial intelligence transforms healthcare diagnostics rapidly",+ "machine learning models predict weather patterns accurately",+ "neural networks process natural language understanding efficiently",+ ],];for n in 0..3 {let speaker = db.insert_speaker(&vec![n as f32; 512]).await.unwrap();@@ -934,8 +941,15 @@ mod tests {// Transcription text must be very different per insert to avoid cross-device deduplet transcriptions_ids: Vec<Vec<&str>> = vec![vec!["penguins waddle across frozen antarctic landscapes gracefully"],- vec!["volcanic eruptions reshape island geography dramatically overnight", "tectonic plates shift beneath ocean floors continuously"],- vec!["photosynthesis converts sunlight into chemical energy storage", "mitochondria generate cellular power through oxidative processes", "ribosomes assemble protein chains from messenger templates"],+ vec![+ "volcanic eruptions reshape island geography dramatically overnight",+ "tectonic plates shift beneath ocean floors continuously",+ ],+ vec![+ "photosynthesis converts sunlight into chemical energy storage",+ "mitochondria generate cellular power through oxidative processes",+ "ribosomes assemble protein chains from messenger templates",+ ],];for n in 0..3 {let speaker = db.insert_speaker(&vec![n as f32; 512]).await.unwrap();diff --git a/crates/screenpipe-server/src/video.rs b/crates/screenpipe-server/src/video.rsindex 5e7f22ea1..8936cc45a 100644--- a/crates/screenpipe-server/src/video.rs+++ b/crates/screenpipe-server/src/video.rs@@ -460,6 +460,10 @@ pub async fn start_ffmpeg_process(// - Streaming playback before recording finishesargs.extend_from_slice(&["-movflags", "frag_keyframe+empty_moov+default_base_moof"]);+ // Fix pts offset: ffmpeg image2pipe with -r buffers 2 frames, starting pts at 2/fps+ // instead of 0. This causes seek mismatches in the frontend (offset N shows frame N-2).+ args.extend_from_slice(&["-output_ts_offset", "0"]);+args.extend_from_slice(&["-pix_fmt", "yuv420p", output_file]);command