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
Bump app to v2.2.53 — fix team-crypto TS build, audio transcript + main.rs changes
Louis Beaumont15055fc86bab
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsxindex d19a78eb3..0a80e2ca7 100644--- a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx@@ -588,49 +588,36 @@ export function AudioTranscript({const { data, hasMeeting, isOngoing, canSummarize } = summarizeInfo;if (!canSummarize) return;- // Build transcript lines, skip empty transcriptions- const lines = data.items- .filter((item) => item.audio.transcription && item.audio.transcription.trim().length > 0)- .map((item) => {- const { speakerName } = getSpeakerInfo(item.audio);- const time = item.audio.timestamp.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit", second: "2-digit" });- const name = speakerName || (item.audio.is_input ? "me" : "speaker");- return `[${time}] ${name}: ${item.audio.transcription}`;- });+ const timeRange = data.timeRange;+ if (!timeRange) return;- // Truncate very long transcripts (cap at 500 lines)- const MAX_LINES = 500;- let truncated = false;- let transcriptLines = lines;- if (lines.length > MAX_LINES) {- transcriptLines = lines.slice(-MAX_LINES);- truncated = true;- }+ const startUtc = timeRange.start.toISOString();+ const endUtc = timeRange.end.toISOString();+ const startLocal = timeRange.start.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });+ const endLocal = timeRange.end.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });- const timeRange = data.timeRange- ? `${data.timeRange.start.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })} – ${data.timeRange.end.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" })}`- : "";-- const label = hasMeeting- ? `meeting transcript (${timeRange})`- : `nearby audio transcript (${timeRange})`;-- const truncationNote = truncated- ? `\n\n(note: transcript was truncated to the most recent ${MAX_LINES} segments out of ${lines.length} total)`- : "";+ const speakers = data.participants+ .map((p) => p.name || `speaker-${p.id}`)+ .join(", ");- const ongoingNote = isOngoing ? " (meeting still in progress)" : "";+ const label = hasMeeting ? "meeting" : "audio";+ const ongoingNote = isOngoing ? " (still in progress)" : "";- const context = `here is my ${label}${ongoingNote}:\n\n${transcriptLines.join("\n")}${truncationNote}`;+ const context = [+ `${label} from ${startLocal} to ${endLocal}${ongoingNote}`,+ speakers ? `participants: ${speakers}` : "",+ `segments: ${data.items.length}`,+ `use screenpipe search API with content_type=audio, start_time=${startUtc}, end_time=${endUtc} to fetch the transcript`,+ ].filter(Boolean).join("\n");const meetingPipe = templatePipes.find((p) => p.name === "meeting-summary");const fallbackPrompt = isOngoing- ? "summarize this meeting so far with key takeaways and action items identified to this point"- : "summarize this meeting with key takeaways and action items";+ ? `query the audio transcriptions from ${startLocal} to ${endLocal} and summarize this meeting so far with key takeaways and action items`+ : `query the audio transcriptions from ${startLocal} to ${endLocal} and summarize this meeting with key takeaways and action items`;const prompt = meetingPipe?.prompt || fallbackPrompt;await showChatWithPrefill({ context, prompt, autoSend: true });- }, [summarizeInfo, getSpeakerInfo, templatePipes]);+ }, [summarizeInfo, templatePipes]);const isVisible = useMemo(() => {return conversationData.items.length > 0 || activeMeeting != null;diff --git a/apps/screenpipe-app-tauri/lib/team-crypto.ts b/apps/screenpipe-app-tauri/lib/team-crypto.tsindex 3d436e177..51760935f 100644--- a/apps/screenpipe-app-tauri/lib/team-crypto.ts+++ b/apps/screenpipe-app-tauri/lib/team-crypto.ts@@ -146,7 +146,7 @@ async function deriveKeyFromPassphrase(return crypto.subtle.deriveKey({name: "PBKDF2",- salt,+ salt: salt.buffer as ArrayBuffer,iterations: PBKDF2_ITERATIONS,hash: "SHA-256",},diff --git a/apps/screenpipe-app-tauri/src-tauri/src/main.rs b/apps/screenpipe-app-tauri/src-tauri/src/main.rsindex 5eb64c463..15c2646e0 100755--- a/apps/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/apps/screenpipe-app-tauri/src-tauri/src/main.rs@@ -1934,9 +1934,6 @@ async fn main() {let server_shutdown_tx = spawn_server(app_handle.clone(), 11435);app.manage(server_shutdown_tx);- // Dev mode check- let use_dev_mode = store.dev_mode;- info!("use_dev_mode: {}", use_dev_mode);// Startup permission gate: check permissions immediately after onboarding// and show recovery window if any critical permission is missing.@@ -1964,9 +1961,9 @@ async fn main() {}}- // Start embedded server in non-dev mode- // Use a dedicated thread with its own tokio runtime to avoid competing with Tauri's UI runtime- if !use_dev_mode {+ // Start embedded server on a dedicated thread with its own tokio runtime+ // to avoid competing with Tauri's UI runtime+ {let store_clone = store.clone();let data_dir_clone = data_dir.clone();let recording_state = app_handle.state::<RecordingState>();@@ -2078,8 +2075,6 @@ async fn main() {});}).expect("Failed to spawn server thread");- } else {- debug!("Skipping server start: dev_mode enabled");}// Initialize update check