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
chore: include other agents' changes (empty transcription guard, subtitle bar)
Louis Beaumont1ed05dd245fd
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsxindex d1e9eaef6..67a322925 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/subtitle-bar.tsx@@ -224,11 +224,12 @@ function SubtitleLine({});const text = entry.transcription.trim();- // Only show "transcribing..." for recent chunks (< 2 min old).- // Older empty chunks are just silence — hide them entirely.- const ageMs = currentTime - entry.timestamp.getTime();- const isPending = !text && ageMs < 120_000;- if (!text && ageMs >= 120_000) return null;+ // Only show "transcribing..." for chunks < 2 min old in *wall clock* time.+ // Using Date.now() instead of timeline position so old empty chunks+ // don't forever show as "transcribing..." when browsing history.+ const wallAgeMs = Date.now() - entry.timestamp.getTime();+ const isPending = !text && wallAgeMs < 120_000;+ if (!text && wallAgeMs >= 120_000) return null;return (<divdiff --git a/crates/screenpipe-db/src/db.rs b/crates/screenpipe-db/src/db.rsindex 89b06f202..3ae6b7c63 100644--- a/crates/screenpipe-db/src/db.rs+++ b/crates/screenpipe-db/src/db.rs@@ -759,14 +759,19 @@ impl DatabaseManager {audio_chunk_id: i64,transcription: &str,) -> Result<i64, sqlx::Error> {- let text_length = transcription.len() as i64;+ // Never overwrite a transcription with empty text (overlap cleanup can produce "")+ let trimmed = transcription.trim();+ if trimmed.is_empty() {+ return Ok(0);+ }+ let text_length = trimmed.len() as i64;let mut tx = self.begin_immediate_with_retry().await?;// Insert the full transcriptionlet affected = sqlx::query("UPDATE audio_transcriptions SET transcription = ?1, text_length = ?2 WHERE audio_chunk_id = ?3",)- .bind(transcription)+ .bind(trimmed).bind(text_length).bind(audio_chunk_id).execute(&mut **tx.conn())