Skip to content

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

Bump app to v2.0.601

Louis Beaumontbbb759ca92c1
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx
index c885b3c1c..893e90587 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx
@@ -419,6 +419,7 @@ export function AudioTranscript({
const { toast } = useToast();
const handleRetranscribe = useCallback(async () => {
+ if (isRetranscribing) return; // prevent double-submit
const data = tabMode === "meeting" ? meetingConversationData : conversationData;
if (!data.items.length || !data.timeRange) return;
@@ -434,6 +435,8 @@ export function AudioTranscript({
body.prompt = retranscribePrompt.trim();
}
+ console.log("[retranscribe] request:", JSON.stringify(body));
+
const res = await fetch("http://localhost:3030/audio/retranscribe", {
method: "POST",
headers: { "Content-Type": "application/json" },
@@ -446,17 +449,21 @@ export function AudioTranscript({
}
const result = await res.json();
+ console.log("[retranscribe] response:", JSON.stringify(result));
// Apply all new transcriptions as overrides
- for (const t of result.transcriptions ?? []) {
+ const transcriptions = result.transcriptions ?? [];
+ for (const t of transcriptions) {
handleRetranscribed(t.audio_chunk_id, t.new_text);
}
+ const count = result.chunks_processed ?? 0;
toast({
title: "retranscribed",
- description: `${result.chunks_processed} chunk${result.chunks_processed !== 1 ? "s" : ""} updated`,
+ description: `${count} chunk${count !== 1 ? "s" : ""} updated`,
});
} catch (e: any) {
+ console.error("[retranscribe] error:", e);
toast({
title: "retranscribe failed",
description: e.message,
@@ -466,7 +473,7 @@ export function AudioTranscript({
setIsRetranscribing(false);
setRetranscribePrompt("");
}
- }, [tabMode, meetingConversationData, conversationData, retranscribePrompt, handleRetranscribed, toast]);
+ }, [tabMode, meetingConversationData, conversationData, retranscribePrompt, isRetranscribing, handleRetranscribed, toast]);
const handleSendToChat = useCallback(async () => {
const data = tabMode === "meeting" ? meetingConversationData : conversationData;
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
index ef96ebbac..fad9d46bb 100644
--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -8183,7 +8183,7 @@ dependencies = [
[[package]]
name = "screenpipe-app"
-version = "2.0.600"
+version = "2.0.601"
dependencies = [
"anyhow",
"arboard",
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml
index dde71f6c7..3f078de52 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.600"
+version = "2.0.601"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/crates/screenpipe-server/src/routes/retranscribe.rs b/crates/screenpipe-server/src/routes/retranscribe.rs
index e278a4fd2..0d410600a 100644
--- a/crates/screenpipe-server/src/routes/retranscribe.rs
+++ b/crates/screenpipe-server/src/routes/retranscribe.rs
@@ -13,7 +13,7 @@ use serde::{Deserialize, Serialize};
use serde_json::json;
use std::path::Path;
use std::sync::Arc;
-use tracing::{error, info};
+use tracing::{debug, error, info};
use crate::server::AppState;
@@ -72,13 +72,16 @@ pub async fn retranscribe_handler(
};
if chunks.is_empty() {
- return JsonResponse(json!(RetranscribeResponse {
- chunks_processed: 0,
- transcriptions: vec![],
+ info!("retranscribe: no audio chunks found in range");
+ return JsonResponse(json!({
+ "chunks_processed": 0,
+ "transcriptions": []
}))
.into_response();
}
+ debug!("retranscribe: found {} raw rows (may include dupes)", chunks.len());
+
// 2. Get transcription config from audio manager
let audio_manager = &state.audio_manager;
let vocabulary = request.vocabulary.unwrap_or_default();
@@ -266,11 +269,11 @@ pub async fn retranscribe_handler(
processed += 1;
}
- info!("retranscribe complete: {} chunks processed", processed);
+ info!("retranscribe complete: {} chunks processed, {} transcription results", processed, results.len());
- JsonResponse(json!(RetranscribeResponse {
+ let response = RetranscribeResponse {
chunks_processed: processed,
transcriptions: results,
- }))
- .into_response()
+ };
+ JsonResponse(json!(response)).into_response()
}