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): include audio days in picker check + style memories banner b&w
Louis Beaumont76a0c09a3d68
diff --git a/apps/screenpipe-app-tauri/components/settings/memories-section.tsx b/apps/screenpipe-app-tauri/components/settings/memories-section.tsxindex 037303354..05eaf2f54 100644--- a/apps/screenpipe-app-tauri/components/settings/memories-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/memories-section.tsx@@ -458,7 +458,7 @@ export function MemoriesSection() {{/* stale memories warning */}{isStale && (- <div className="flex items-start gap-2 rounded-md border border-yellow-500/30 bg-yellow-500/5 px-3 py-2 text-xs text-yellow-600 dark:text-yellow-400">+ <div className="flex items-start gap-2 rounded-md border border-border bg-muted/30 px-3 py-2 text-xs text-muted-foreground"><AlertCircle className="h-3.5 w-3.5 mt-0.5 shrink-0" /><span>memories haven't updated in {staleDays} day{staleDays !== 1 ? "s" : ""}.diff --git a/apps/screenpipe-app-tauri/lib/actions/has-frames-date.ts b/apps/screenpipe-app-tauri/lib/actions/has-frames-date.tsindex 8a4b57be1..dae183bc0 100644--- a/apps/screenpipe-app-tauri/lib/actions/has-frames-date.ts+++ b/apps/screenpipe-app-tauri/lib/actions/has-frames-date.ts@@ -6,23 +6,34 @@ import { isSameDay } from "date-fns";import { localFetch } from "@/lib/api";/**- * List the local-calendar days that have at least one frame in the DB.+ * List the local-calendar days that have ANY captured data — screen+ * frames OR audio chunks. Used by the timeline calendar picker to+ * disable empty days.*- * Returns a Set of "YYYY-MM-DD" local-day strings. Used by the timeline- * calendar picker to disable empty days, and by future "skip empty days"- * logic that wants to know the full set rather than walk one-by-one.+ * Returns a Set of "YYYY-MM-DD" local-day strings. SQL applies SQLite's+ * `'localtime'` modifier so days are bucketed in the user's local+ * timezone — matches what `format(date, "yyyy-MM-dd")` produces in+ * the UI. Without this, a UTC timestamp just past midnight could land+ * on the wrong calendar day in the picker.*- * SQL groups by `DATE(timestamp, 'localtime')` so days are returned in- * the user's local timezone — matches what `format(date, "yyyy-MM-dd")`- * produces in the UI. Without this conversion a UTC-stored timestamp- * just past midnight could be reported on the wrong calendar day.+ * Includes audio_chunks because users with audio-only recording days+ * (mic on, screen recording paused) would otherwise see those days+ * greyed out even though the timeline has audio to play.*/export async function listDaysWithFrames(): Promise<Set<string>> {try {+ // UNION ALL is fine — duplicates collapse via the outer DISTINCT.+ // Both branches use the timestamp index (frames + audio_transcriptions+ // both have one), so the query is sub-millisecond on typical DBs.+ // audio_chunks has no timestamp column itself; the recording time+ // lives on audio_transcriptions, which is what the timeline UI also+ // uses to render the audio track.const query = `- SELECT DISTINCT DATE(timestamp, 'localtime') AS day- FROM frames- WHERE timestamp IS NOT NULL+ SELECT DISTINCT DATE(timestamp, 'localtime') AS day FROM (+ SELECT timestamp FROM frames WHERE timestamp IS NOT NULL+ UNION ALL+ SELECT timestamp FROM audio_transcriptions WHERE timestamp IS NOT NULL+ )ORDER BY day`;const response = await localFetch("/raw_sql", {@@ -30,9 +41,15 @@ export async function listDaysWithFrames(): Promise<Set<string>> {headers: { "Content-Type": "application/json" },body: JSON.stringify({ query }),});- if (!response.ok) return new Set();+ if (!response.ok) {+ const text = await response.text().catch(() => "");+ console.error("listDaysWithFrames HTTP error:", response.status, text);+ return new Set();+ }const rows = (await response.json()) as Array<{ day: string }>;- return new Set(rows.map((r) => r.day).filter(Boolean));+ const set = new Set(rows.map((r) => r.day).filter(Boolean));+ console.log(`[timeline] listDaysWithFrames: ${set.size} days with data`);+ return set;} catch (e) {console.error("listDaysWithFrames failed:", e);return new Set();diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex cead16a63..5fb2109ee 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -87,7 +87,7 @@ dependencies = ["mime","percent-encoding","pin-project-lite",- "smallvec 1.15.1",+ "smallvec","tokio","tokio-util","tracing",@@ -186,7 +186,7 @@ dependencies = ["serde","serde_json","serde_urlencoded",- "smallvec 1.15.1",+ "smallvec","socket2 0.6.3","time","tracing",@@ -388,7 +388,7 @@ version = "1.1.5"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -399,13 +399,13 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"dependencies = ["anstyle","once_cell_polyfill",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]name = "antirez-asr-sys"version = "0.1.0"-source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"dependencies = ["cc",]@@ -831,7 +831,7 @@ dependencies = [[[package]]name = "audiopipe"version = "0.2.0"-source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"dependencies = ["antirez-asr-sys","half",@@ -1589,7 +1589,7 @@ version = "0.15.8"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d067ad48b8650848b989a59a86c6c36a995d02d2bf778d45c3c5d57bc2718f02"dependencies = [- "smallvec 1.15.1",+ "smallvec","target-lexicon 0.12.16",]@@ -1599,7 +1599,7 @@ version = "0.20.7"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3c6b04e07d8080154ed4ac03546d9a2b303cc2fe1901ba0b35b301516e289368"dependencies = [- "smallvec 1.15.1",+ "smallvec","target-lexicon 0.13.3",]@@ -2492,7 +2492,7 @@ dependencies = ["phf 0.10.1","proc-macro2","quote",- "smallvec 1.15.1",+ "smallvec","syn 1.0.109",]@@ -2506,7 +2506,7 @@ dependencies = ["dtoa-short","itoa","phf 0.13.1",- "smallvec 1.15.1",+ "smallvec",][[package]]@@ -2892,7 +2892,7 @@ dependencies = ["libc","option-ext","redox_users 0.5.2",- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -3293,7 +3293,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -3396,7 +3396,7 @@ dependencies = ["lebe","miniz_oxide","rayon-core",- "smallvec 1.15.1",+ "smallvec","zune-inflate",]@@ -4128,7 +4128,7 @@ dependencies = ["libc","once_cell","pin-project-lite",- "smallvec 1.15.1",+ "smallvec","thiserror 1.0.69",]@@ -4155,7 +4155,7 @@ dependencies = ["gobject-sys 0.21.5","libc","system-deps 7.0.7",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -4197,7 +4197,7 @@ dependencies = ["libc","memchr","once_cell",- "smallvec 1.15.1",+ "smallvec","thiserror 1.0.69",]@@ -4219,7 +4219,7 @@ dependencies = ["gobject-sys 0.21.5","libc","memchr",- "smallvec 1.15.1",+ "smallvec",][[package]]@@ -4792,7 +4792,7 @@ dependencies = ["itoa","pin-project-lite","pin-utils",- "smallvec 1.15.1",+ "smallvec","tokio","want",]@@ -4848,7 +4848,7 @@ dependencies = ["libc","percent-encoding","pin-project-lite",- "socket2 0.6.3",+ "socket2 0.5.10","tokio","tower-service","tracing",@@ -4937,7 +4937,7 @@ dependencies = ["icu_normalizer_data","icu_properties","icu_provider",- "smallvec 1.15.1",+ "smallvec","zerovec",]@@ -5001,7 +5001,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"dependencies = ["idna_adapter",- "smallvec 1.15.1",+ "smallvec","utf8_iter",]@@ -5293,7 +5293,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46"dependencies = ["hermit-abi","libc",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -5574,7 +5574,7 @@ checksum = "c62026ae44756f8a599ba21140f350303d4f08dcdcc71b5ad9c9bb8128c13c62"dependencies = ["arrayvec","euclid",- "smallvec 1.15.1",+ "smallvec",][[package]]@@ -6389,7 +6389,7 @@ dependencies = ["num_enum","parking_lot","paste",- "smallvec 1.15.1",+ "smallvec","strum","thiserror 2.0.18",]@@ -6420,7 +6420,7 @@ dependencies = ["futures-util","parking_lot","portable-atomic",- "smallvec 1.15.1",+ "smallvec","tagptr","uuid",]@@ -6766,7 +6766,7 @@ version = "0.50.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.59.0",][[package]]@@ -6807,7 +6807,7 @@ dependencies = ["num-traits","rand 0.8.5","serde",- "smallvec 1.15.1",+ "smallvec","zeroize",]@@ -7581,29 +7581,28 @@ dependencies = [[[package]]name = "ort"-version = "2.0.0-rc.10"+version = "2.0.0-rc.6"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1fa7e49bd669d32d7bc2a15ec540a527e7764aec722a45467814005725bcd721"+checksum = "a5f95fe501e1cb81dec2f66ee3129025759b602817aa2c77ff421390c418cc34"dependencies = ["half","libloading 0.8.9","ndarray","ort-sys",- "smallvec 2.0.0-alpha.10","tracing",][[package]]name = "ort-sys"-version = "2.0.0-rc.10"+version = "2.0.0-rc.6"source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "e2aba9f5c7c479925205799216e7e5d07cc1d4fa76ea8058c60a9a30f6a4e890"+checksum = "b4174960a7b93a17564a05b26e05889f0dea9ee70e68db5841f27b40c0c9804e"dependencies = ["flate2","pkg-config","sha2 0.10.9","tar",- "ureq 3.3.0",+ "ureq 2.12.1",][[package]]@@ -7629,7 +7628,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "7d8fae84b431384b68627d0f9b3b1245fcf9f46f6c0e3dc902e9dce64edd1967"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.45.0",][[package]]@@ -7762,7 +7761,7 @@ dependencies = ["cfg-if 1.0.4","libc","redox_syscall 0.5.18",- "smallvec 1.15.1",+ "smallvec","windows-link 0.2.1",]@@ -8580,7 +8579,7 @@ dependencies = ["quinn-udp","rustc-hash 2.1.1","rustls 0.23.37",- "socket2 0.6.3",+ "socket2 0.5.10","thiserror 2.0.18","tokio","tracing",@@ -8617,7 +8616,7 @@ dependencies = ["cfg_aliases 0.2.1","libc","once_cell",- "socket2 0.6.3",+ "socket2 0.5.10","tracing","windows-sys 0.60.2",]@@ -8640,7 +8639,7 @@ checksum = "478e0585659a122aa407eb7e3c0e1fa51b1d8a870038bd29f0cf4a8551eea972"[[package]]name = "qwen3-asr-sys"version = "0.1.0"-source = "git+https://github.com/divanshu-go/audiopipe.git?branch=main#2fd5c360651157a5df504394066e509ad4d1bdc9"+source = "git+https://github.com/screenpipe/audiopipe.git?rev=cce3776#cce37760c9006f4649006ca8b8eee78c1b32b052"dependencies = ["cc","cmake",@@ -9405,7 +9404,7 @@ dependencies = ["errno","libc","linux-raw-sys 0.12.1",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -9493,7 +9492,7 @@ dependencies = ["security-framework","security-framework-sys","webpki-root-certs",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -9555,7 +9554,7 @@ dependencies = ["bytemuck","core_maths","log",- "smallvec 1.15.1",+ "smallvec","ttf-parser","unicode-bidi-mirroring","unicode-ccc",@@ -9726,7 +9725,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.4.68"+version = "2.4.6"dependencies = ["anyhow","arboard",@@ -9831,7 +9830,7 @@ dependencies = [[[package]]name = "screenpipe-audio"-version = "0.3.294"+version = "0.3.285"dependencies = ["anyhow","audiopipe",@@ -9887,7 +9886,7 @@ dependencies = [[[package]]name = "screenpipe-config"-version = "0.3.294"+version = "0.3.285"dependencies = ["dirs 6.0.0","serde",@@ -9899,7 +9898,7 @@ dependencies = [[[package]]name = "screenpipe-connect"-version = "0.3.294"+version = "0.3.285"dependencies = ["anyhow","async-trait",@@ -9928,7 +9927,7 @@ dependencies = [[[package]]name = "screenpipe-core"-version = "0.3.294"+version = "0.3.285"dependencies = ["accessibility","accessibility-sys",@@ -9976,7 +9975,7 @@ dependencies = [[[package]]name = "screenpipe-db"-version = "0.3.294"+version = "0.3.285"dependencies = ["anyhow","chrono",@@ -10001,10 +10000,9 @@ dependencies = [[[package]]name = "screenpipe-engine"-version = "0.3.294"+version = "0.3.285"dependencies = ["anyhow",- "arc-swap","async-trait","axum 0.7.9","base64 0.22.1",@@ -10066,7 +10064,7 @@ dependencies = [[[package]]name = "screenpipe-events"-version = "0.3.294"+version = "0.3.285"dependencies = ["anyhow","chrono",@@ -10082,7 +10080,7 @@ dependencies = [[[package]]name = "screenpipe-screen"-version = "0.3.294"+version = "0.3.285"dependencies = ["accessibility-sys","anyhow",@@ -10135,7 +10133,7 @@ dependencies = [[[package]]name = "screenpipe-vault"-version = "0.3.294"+version = "0.3.285"dependencies = ["argon2","chacha20poly1305",@@ -10248,7 +10246,7 @@ dependencies = ["phf_codegen 0.8.0","precomputed-hash","servo_arc 0.2.0",- "smallvec 1.15.1",+ "smallvec",][[package]]@@ -10267,7 +10265,7 @@ dependencies = ["precomputed-hash","rustc-hash 2.1.1","servo_arc 0.4.3",- "smallvec 1.15.1",+ "smallvec",][[package]]@@ -10937,12 +10935,6 @@ version = "1.15.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"-[[package]]-name = "smallvec"-version = "2.0.0-alpha.10"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "51d44cfb396c3caf6fbfd0ab422af02631b69ddd96d2eff0b0f0724f9024051b"-[[package]]name = "smart-default"version = "0.7.1"@@ -10971,7 +10963,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3a766e1110788c36f4fa1c2b71b387a7815aa65f88ce0229841826633d93723e"dependencies = ["libc",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -11174,7 +11166,7 @@ dependencies = ["serde","serde_json","sha2 0.10.9",- "smallvec 1.15.1",+ "smallvec","sqlformat","thiserror 1.0.69","tokio",@@ -11258,7 +11250,7 @@ dependencies = ["serde","sha1 0.10.6","sha2 0.10.9",- "smallvec 1.15.1",+ "smallvec","sqlx-core","stringprep","thiserror 1.0.69",@@ -11298,7 +11290,7 @@ dependencies = ["serde_json","sha1 0.10.6","sha2 0.10.9",- "smallvec 1.15.1",+ "smallvec","sqlx-core","stringprep","thiserror 1.0.69",@@ -12566,7 +12558,7 @@ dependencies = ["getrandom 0.4.2","once_cell","rustix 1.1.4",- "windows-sys 0.61.2",+ "windows-sys 0.52.0",][[package]]@@ -13179,7 +13171,7 @@ dependencies = ["once_cell","regex-automata","sharded-slab",- "smallvec 1.15.1",+ "smallvec","thread_local","tracing","tracing-core",@@ -13280,7 +13272,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"dependencies = ["memoffset","tempfile",- "windows-sys 0.61.2",+ "windows-sys 0.60.2",][[package]]@@ -13493,7 +13485,6 @@ dependencies = ["percent-encoding","rustls 0.23.37","rustls-pki-types",- "socks","ureq-proto","utf8-zero","webpki-root-certs",@@ -13620,7 +13611,7 @@ dependencies = [[[package]]name = "vad-rs"version = "0.2.0"-source = "git+https://github.com/divanshu-go/vad-rs-1.git?branch=main#b14b26ec7093f5398ef6658020259cd7c130ea6c"+source = "git+https://github.com/screenpipe/vad-rs-1.git#dd4d7cdf97635d2e74fc0b11b3f1035ae91609fc"dependencies = ["eyre","ndarray",@@ -13872,7 +13863,7 @@ dependencies = ["downcast-rs","rustix 1.1.4","scoped-tls",- "smallvec 1.15.1",+ "smallvec","wayland-sys",]@@ -14218,7 +14209,7 @@ version = "0.1.11"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"dependencies = [- "windows-sys 0.61.2",+ "windows-sys 0.48.0",][[package]]