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

fix: meeting end time includes duration of last audio segment

Louis Beaumont99d1699fb974
diff --git a/apps/screenpipe-app-tauri/lib/hooks/use-meetings.tsx b/apps/screenpipe-app-tauri/lib/hooks/use-meetings.tsx
index 26e5f1843..98f1fedf8 100644
--- a/apps/screenpipe-app-tauri/lib/hooks/use-meetings.tsx
+++ b/apps/screenpipe-app-tauri/lib/hooks/use-meetings.tsx
@@ -87,7 +87,10 @@ function detectMeetings(frames: StreamTimeSeriesResponse[]): Meeting[] {
if (totalDuration < MIN_DURATION_SECS) continue;
const startTime = entries[0].frameTimestamp;
- const endTime = entries[entries.length - 1].frameTimestamp;
+ const lastEntry = entries[entries.length - 1];
+ const endTime = new Date(
+ lastEntry.frameTimestamp.getTime() + lastEntry.duration_secs * 1000
+ );
// Build speaker map
const speakers = new Map<