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: timeline navigation, cleanup warnings, move deployment target to cargo config
Louis Beaumont3dbffc8ecc54
diff --git a/Cargo.lock b/Cargo.lockindex 48fc2cfe9..3869b5204 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -6628,7 +6628,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.49"+version = "0.3.51"dependencies = ["anyhow","bytemuck",@@ -6681,7 +6681,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.49"+version = "0.3.51"dependencies = ["accessibility","accessibility-sys",@@ -6732,7 +6732,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.49"+version = "0.3.51"dependencies = ["anyhow","chrono",@@ -6756,7 +6756,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.49"+version = "0.3.51"dependencies = ["anyhow","chrono",@@ -6774,7 +6774,7 @@ dependencies = [[[package]]name = "screenpipe-integrations"-version = "0.3.49"+version = "0.3.51"dependencies = ["anyhow","image",@@ -6789,7 +6789,7 @@ dependencies = [[[package]]name = "screenpipe-server"-version = "0.3.49"+version = "0.3.51"dependencies = ["anyhow","async-trait",@@ -6858,7 +6858,7 @@ dependencies = [[[package]]name = "screenpipe-vision"-version = "0.3.49"+version = "0.3.51"dependencies = ["accessibility-sys","anyhow",diff --git a/Cargo.toml b/Cargo.tomlindex ab3b3faaf..82752ce5f 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -6,7 +6,7 @@ exclude = ["apps/screenpipe-app-tauri/src-tauri"]resolver = "2"[workspace.package]-version = "0.3.51"+version = "0.3.52"authors = ["louis030195 <[email protected]>"]description = ""repository = "https://github.com/screenpipe/screenpipe"diff --git a/apps/screenpipe-app-tauri/components/global-chat.tsx b/apps/screenpipe-app-tauri/components/global-chat.tsxindex 61e60d99a..e01f2482c 100644--- a/apps/screenpipe-app-tauri/components/global-chat.tsx+++ b/apps/screenpipe-app-tauri/components/global-chat.tsx@@ -1062,8 +1062,7 @@ export function GlobalChat() {// TEMP: Allow chat even if Pi isn't ready yet - will fall back to screenpipe-cloudconst canChat = hasPresets && hasValidModel && !needsLogin;- // Debug logging for Pi- console.log("[Pi Debug]", { isPi, piReady, piInfo, piProjectDir, piStarting, open, needsLogin, hasToken: !!settings.user?.token, provider: activePreset?.provider });+// Auto-set Pi project dir to temp locationuseEffect(() => {@@ -1077,7 +1076,6 @@ export function GlobalChat() {// Start Pi when neededuseEffect(() => {const shouldStart = isPi && open && !needsLogin && piProjectDir && !piStarting && !piInfo?.running;- console.log("[Pi Start Check]", { shouldStart, isPi, open, needsLogin, piProjectDir, piStarting, piRunning: piInfo?.running, hasToken: !!settings.user?.token });if (!shouldStart) {return;diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsxindex b902eb296..5af1f7e51 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx@@ -239,31 +239,25 @@ export default function Timeline() {isSameDay(new Date(frame.timestamp), targetDate));if (isSameDay(targetDate, currentDate) && hasFramesForTargetDate) {- console.log("[pendingNavigation] Frames loaded for target date, jumping:", targetDate.toISOString());-- // Find the first frame of the target day (frames are sorted newest-first)- const targetDayStart = startOfDay(targetDate);- const targetDayEnd = endOfDay(targetDate);-- // Find the LAST frame in the array that's within the target day- // (since frames are sorted newest-first, last match = earliest frame)- let firstFrameIndex = -1;- for (let i = frames.length - 1; i >= 0; i--) {- const frameDate = new Date(frames[i].timestamp);- if (frameDate >= targetDayStart && frameDate <= targetDayEnd) {- firstFrameIndex = i;- break;+ console.log("[pendingNavigation] Frames loaded for target date, jumping to closest frame:", targetDate.toISOString());++ // Find the closest frame to the target timestamp+ const targetTime = targetDate.getTime();+ let closestIndex = 0;+ let closestDiff = Infinity;++ frames.forEach((frame, index) => {+ const frameTime = new Date(frame.timestamp).getTime();+ const diff = Math.abs(frameTime - targetTime);+ if (diff < closestDiff) {+ closestDiff = diff;+ closestIndex = index;}- }+ });- if (firstFrameIndex !== -1) {- setCurrentIndex(firstFrameIndex);- setCurrentFrame(frames[firstFrameIndex]);- console.log("[pendingNavigation] Jumped to frame index:", firstFrameIndex);- } else {- // Fallback: just use jumpToTime- jumpToTime(targetDate);- }+ setCurrentIndex(closestIndex);+ setCurrentFrame(frames[closestIndex]);+ console.log("[pendingNavigation] Jumped to frame index:", closestIndex);// Clear pending navigation and UI statependingNavigationRef.current = null;@@ -661,7 +655,6 @@ export default function Timeline() {setCurrentIndex(closestIndex);if (frames[closestIndex]) {setCurrentFrame(frames[closestIndex]);- // setCurrentDate(new Date(frames[closestIndex].timestamp));}};@@ -1128,12 +1121,15 @@ export default function Timeline() {onClose={() => setShowSearchModal(false)}onNavigateToTimestamp={(timestamp) => {const targetDate = new Date(timestamp);- pendingNavigationRef.current = targetDate;setSeekingTimestamp(timestamp);if (!isSameDay(targetDate, currentDate)) {+ // Different day: store pending navigation, frames effect will handle jump after load+ pendingNavigationRef.current = targetDate;handleDateChange(targetDate);} else {+ // Same day: jump directly, no pending navigation needed+ pendingNavigationRef.current = null;jumpToTime(targetDate);setSeekingTimestamp(null);}diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsxindex 1bfeaa673..a12efc970 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/timeline.tsx@@ -233,7 +233,10 @@ export const TimelineSlider = ({if (container) {// Small delay to ensure DOM is readyrequestAnimationFrame(() => {- container.focus();+ // preventScroll: true prevents the browser from scrolling the container+ // to the focus target, which would reset the timeline position after+ // navigating from search results+ container.focus({ preventScroll: true });});}}, [isSearchModalOpen]);diff --git a/apps/screenpipe-app-tauri/src-tauri/.cargo/config.toml b/apps/screenpipe-app-tauri/src-tauri/.cargo/config.tomlindex 5e281550b..cf7309677 100644--- a/apps/screenpipe-app-tauri/src-tauri/.cargo/config.toml+++ b/apps/screenpipe-app-tauri/src-tauri/.cargo/config.toml@@ -3,3 +3,8 @@[env]CMAKE_POLICY_VERSION_MINIMUM = "3.5"+# whisper.cpp ggml uses std::filesystem::path which requires macOS 10.15++# These are picked up by whisper-rs-sys's cmake build before compilation starts+# CI can still override via explicit env vars (force = false is default)+MACOSX_DEPLOYMENT_TARGET = { value = "10.15", force = false }+CMAKE_OSX_DEPLOYMENT_TARGET = { value = "10.15", force = false }diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex e6b3cc0b1..90a2b95fa 100755--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9007,7 +9007,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.0.256"+version = "2.0.258"dependencies = ["anyhow","async-stream",@@ -9089,7 +9089,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.50"+version = "0.3.51"dependencies = ["anyhow","bytemuck",@@ -9137,7 +9137,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.50"+version = "0.3.51"dependencies = ["accessibility","accessibility-sys",@@ -9188,7 +9188,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.50"+version = "0.3.51"dependencies = ["anyhow","chrono",@@ -9212,7 +9212,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.50"+version = "0.3.51"dependencies = ["anyhow","chrono",@@ -9228,7 +9228,7 @@ dependencies = [[[package]]name = "screenpipe-integrations"-version = "0.3.50"+version = "0.3.51"dependencies = ["anyhow","image 0.25.9",@@ -9243,7 +9243,7 @@ dependencies = [[[package]]name = "screenpipe-server"-version = "0.3.50"+version = "0.3.51"dependencies = ["anyhow","async-trait",@@ -9307,7 +9307,7 @@ dependencies = [[[package]]name = "screenpipe-vision"-version = "0.3.50"+version = "0.3.51"dependencies = ["accessibility-sys","anyhow",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 91e9ed71c..69ca2c999 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.0.257"+version = "2.0.258"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/apps/screenpipe-app-tauri/src-tauri/build.rs b/apps/screenpipe-app-tauri/src-tauri/build.rsindex e9d339689..7d606a3e7 100644--- a/apps/screenpipe-app-tauri/src-tauri/build.rs+++ b/apps/screenpipe-app-tauri/src-tauri/build.rs@@ -1,17 +1,5 @@fn main() {#[cfg(target_os = "macos")]- {- println!("cargo:rustc-link-lib=framework=AVFoundation");-- // whisper.cpp ggml uses std::filesystem::path which requires macOS 10.15+- // Set deployment target if not already set (CI sets its own values)- if std::env::var("MACOSX_DEPLOYMENT_TARGET").is_err() {- println!("cargo:rustc-env=MACOSX_DEPLOYMENT_TARGET=10.15");- std::env::set_var("MACOSX_DEPLOYMENT_TARGET", "10.15");- }- if std::env::var("CMAKE_OSX_DEPLOYMENT_TARGET").is_err() {- std::env::set_var("CMAKE_OSX_DEPLOYMENT_TARGET", "10.15");- }- }+ println!("cargo:rustc-link-lib=framework=AVFoundation");tauri_build::build()}diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex e578dc76a..879769307 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -924,7 +924,7 @@ async fn main() {.plugin(tauri_plugin_global_shortcut::Builder::new().build());// Only add Sentry plugin if telemetry is enabled- let app = if let Some(ref guard) = sentry_guard {+ let app = if let Some(ref _guard) = sentry_guard {let client = sentry::Hub::current().client().unwrap();app.plugin(tauri_plugin_sentry::init(&client))} else {diff --git a/crates/screenpipe-audio/src/transcription/whisper/model.rs b/crates/screenpipe-audio/src/transcription/whisper/model.rsindex 11cb3450b..4b8207b50 100644--- a/crates/screenpipe-audio/src/transcription/whisper/model.rs+++ b/crates/screenpipe-audio/src/transcription/whisper/model.rs@@ -41,7 +41,7 @@ pub fn download_whisper_model(engine: Arc<AudioTranscriptionEngine>) -> Result<P}pub fn create_whisper_context_parameters<'a>(- engine: Arc<AudioTranscriptionEngine>,+ _engine: Arc<AudioTranscriptionEngine>,) -> Result<WhisperContextParameters<'a>> {let mut context_param = WhisperContextParameters::default();