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

UI search handle no audio path

cparish31236d58cb6eb3a
diff --git a/screenpipe-app-tauri/components/search-chat.tsx b/screenpipe-app-tauri/components/search-chat.tsx
index 8e1a183c2..5812c5e7f 100644
--- a/screenpipe-app-tauri/components/search-chat.tsx
+++ b/screenpipe-app-tauri/components/search-chat.tsx
@@ -681,13 +681,19 @@ export function SearchChat() {
</>
)}
{item.type === "Audio" && (
- <>
- <p className="mt-2">{item.content.transcription}</p>
- <div className="flex justify-center mt-4">
- <VideoComponent filePath={item.content.file_path} />
- </div>
- </>
- )}
+ <>
+ <p className="mt-2">{item.content.transcription}</p>
+ {item.content.file_path ? (
+ <div className="flex justify-center mt-4">
+ <VideoComponent filePath={item.content.file_path} />
+ </div>
+ ) : (
+ <p className="text-gray-500 italic mt-2">
+ No file path available for this audio.
+ </p>
+ )}
+ </>
+ )}
{item.type === "FTS" && (
<>
<p className="mt-2">{item.content.matched_text}</p>
diff --git a/screenpipe-app-tauri/lib/screenpipe.ts b/screenpipe-app-tauri/lib/screenpipe.ts
index f7789396d..c9dfecae7 100644
--- a/screenpipe-app-tauri/lib/screenpipe.ts
+++ b/screenpipe-app-tauri/lib/screenpipe.ts
@@ -18,7 +18,7 @@ export type AudioContent = {
chunk_id: number;
transcription: string;
timestamp: string;
- file_path: string;
+ file_path?: string;
offset_index: number;
tags: string[];
device_name: string;