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

chore: push local changes from parallel agents

Louis Beaumont6105389141cd
diff --git a/apps/screenpipe-app-tauri/components/conversation-bubble.tsx b/apps/screenpipe-app-tauri/components/conversation-bubble.tsx
index 622ad7c4d..c6293fd71 100644
--- a/apps/screenpipe-app-tauri/components/conversation-bubble.tsx
+++ b/apps/screenpipe-app-tauri/components/conversation-bubble.tsx
@@ -6,7 +6,8 @@
import { useState } from "react";
import { cn } from "@/lib/utils";
import { Button } from "@/components/ui/button";
-import { Play, Pause, Mic, Speaker } from "lucide-react";
+import { Play, Pause, Mic, Speaker, Check as CheckIcon } from "lucide-react";
+import { Checkbox } from "@/components/ui/checkbox";
import { SpeakerAssignPopover } from "@/components/speaker-assign-popover";
import { VideoComponent } from "@/components/rewind/video";
@@ -75,6 +76,9 @@ export interface ConversationBubbleProps {
onPlay: () => void;
onSpeakerAssigned: (newId: number, newName: string) => void;
onTimestampClick?: () => void;
+ selectionMode?: boolean;
+ isSelected?: boolean;
+ onToggleSelect?: () => void;
}
export function ConversationBubble({
@@ -94,14 +98,28 @@ export function ConversationBubble({
onPlay,
onSpeakerAssigned,
onTimestampClick,
+ selectionMode,
+ isSelected,
+ onToggleSelect,
}: ConversationBubbleProps) {
return (
<div
className={cn(
- "flex w-full",
+ "flex w-full items-start gap-1.5",
side === "right" ? "justify-end" : "justify-start"
)}
+ onClick={selectionMode ? onToggleSelect : undefined}
>
+ {selectionMode && (
+ <div className="pt-4 shrink-0">
+ <Checkbox
+ checked={isSelected}
+ onCheckedChange={() => onToggleSelect?.()}
+ onClick={(e) => e.stopPropagation()}
+ className="h-3.5 w-3.5"
+ />
+ </div>
+ )}
<div
className={cn(
"max-w-[85%] border border-border bg-background transition-all",
@@ -110,7 +128,9 @@ export function ConversationBubble({
isFirstInGroup ? "mt-3" : "mt-1",
// Brand style: sharp corners, 150ms transitions
"animate-in fade-in-0 slide-in-from-bottom-2 duration-150",
- highlighted && "ring-1 ring-foreground/20 bg-muted/30"
+ highlighted && "ring-1 ring-foreground/20 bg-muted/30",
+ selectionMode && "cursor-pointer",
+ isSelected && "ring-1 ring-foreground/40 bg-muted/20"
)}
>
{/* Header - only show for first in group */}
@@ -151,6 +171,23 @@ export function ConversationBubble({
</div>
)}
+ {/* Inline speaker chip for non-first-in-group bubbles */}
+ {!isFirstInGroup && (
+ <div className="px-3 pt-1.5">
+ <SpeakerAssignPopover
+ audioChunkId={audioChunkId}
+ speakerId={speakerId}
+ speakerName={speakerName}
+ audioFilePath={audioFilePath}
+ onAssigned={onSpeakerAssigned}
+ >
+ <span className="text-[10px] text-muted-foreground hover:text-foreground cursor-pointer transition-colors duration-150">
+ {speakerName || `speaker #${speakerId ?? "?"}`}
+ </span>
+ </SpeakerAssignPopover>
+ </div>
+ )}
+
{/* Content */}
<div className="px-3 pb-2 pt-2">
<TranscriptionText transcription={transcription} />
diff --git a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
index a9e099d0f..329d0a7a4 100644
--- a/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/current-frame-timeline.tsx
@@ -732,12 +732,17 @@ export const CurrentFrameTimeline: FC<CurrentFrameTimelineProps> = ({
const analyzeFailCountRef = useRef(0);
+ // Hide overlay immediately when raw frameId changes (before debounce settles),
+ // so stale text selection doesn't linger while scrolling.
useEffect(() => {
- if (!nativeLiveTextActive) return;
- if (!debouncedFrame?.frameId) {
+ if (nativeLiveTextActive) {
invoke("livetext_hide").catch(() => {});
- return;
}
+ }, [nativeLiveTextActive, frameId]);
+
+ useEffect(() => {
+ if (!nativeLiveTextActive) return;
+ if (!debouncedFrame?.frameId) return;
const info = renderedInfoRef.current;
if (!info) return;
diff --git a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
index 3485ff130..c485bd5df 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline.tsx
@@ -1724,37 +1724,7 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
/>
) : null}
- {/* Search result navigation indicator */}
- {inSearchReviewMode && (
- <div className="absolute bottom-24 left-1/2 -translate-x-1/2 z-50 flex items-center gap-3 px-4 py-2 rounded-full bg-black/70 backdrop-blur-sm border border-white/10 text-white text-sm shadow-lg">
- <span className="text-white/60 truncate max-w-[120px]">&ldquo;{searchQuery}&rdquo;</span>
- <button
- className="px-1.5 hover:text-white/80 disabled:text-white/30"
- disabled={searchResultIndex <= 0}
- onClick={() => navigateToSearchResult(searchResultIndex - 1)}
- >
- &#9664;
- </button>
- <span className="tabular-nums font-medium">
- {searchResultIndex + 1} / {searchResults.length}
- </span>
- <button
- className="px-1.5 hover:text-white/80 disabled:text-white/30"
- disabled={searchResultIndex >= searchResults.length - 1}
- onClick={() => navigateToSearchResult(searchResultIndex + 1)}
- >
- &#9654;
- </button>
- <button
- className="ml-1 text-white/50 hover:text-white/80"
- onClick={() => clearSearchHighlight()}
- title="Exit search review (Esc)"
- >
- <X className="w-3.5 h-3.5" />
- </button>
- </div>
- )}
-
+
{!currentFrame && !showBlockingLoader && !error && frames.length === 0 && !isLoading ? (
<div className="absolute inset-0 flex items-center justify-center bg-gradient-to-b from-background via-background to-muted/20">
<div className="text-center p-8 max-w-md">
@@ -1983,6 +1953,38 @@ export default function Timeline({ embedded = false }: { embedded?: boolean }) {
</div>
)}
+ {/* Search result navigation indicator — must be outside z-10 image container
+ so it sits above the z-40 timeline slider and receives clicks */}
+ {inSearchReviewMode && (
+ <div className="absolute bottom-24 left-1/2 -translate-x-1/2 z-[45] flex items-center gap-3 px-4 py-2 rounded-full bg-black/70 backdrop-blur-sm border border-white/10 text-white text-sm shadow-lg">
+ <span className="text-white/60 truncate max-w-[120px]">&ldquo;{searchQuery}&rdquo;</span>
+ <button
+ className="px-1.5 hover:text-white/80 disabled:text-white/30"
+ disabled={searchResultIndex <= 0}
+ onClick={() => navigateToSearchResult(searchResultIndex - 1)}
+ >
+ &#9664;
+ </button>
+ <span className="tabular-nums font-medium">
+ {searchResultIndex + 1} / {searchResults.length}
+ </span>
+ <button
+ className="px-1.5 hover:text-white/80 disabled:text-white/30"
+ disabled={searchResultIndex >= searchResults.length - 1}
+ onClick={() => navigateToSearchResult(searchResultIndex + 1)}
+ >
+ &#9654;
+ </button>
+ <button
+ className="ml-1 text-white/50 hover:text-white/80"
+ onClick={() => clearSearchHighlight()}
+ title="Exit search review (Esc)"
+ >
+ <X className="w-3.5 h-3.5" />
+ </button>
+ </div>
+ )}
+
{/* Meeting bar removed — meeting detection handled inside transcript panel */}
{/* Bottom Timeline - Overlay that doesn't cut off image */}
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 b35206d6d..d19a78eb3 100644
--- a/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx
+++ b/apps/screenpipe-app-tauri/components/rewind/timeline/audio-transcript.tsx
@@ -4,7 +4,7 @@
import { useState, useRef, useMemo, useCallback, useEffect } from "react";
import { AudioData, StreamTimeSeriesResponse, TimeRange } from "@/components/rewind/timeline";
import { Button } from "@/components/ui/button";
-import { GripHorizontal, X, Copy, Check, BotMessageSquare, Sparkles, MoreVertical, RefreshCw, Loader2 } from "lucide-react";
+import { GripHorizontal, X, Copy, Check, BotMessageSquare, Sparkles, MoreVertical, RefreshCw, Loader2, UserCheck } from "lucide-react";
import {
DropdownMenu,
DropdownMenuContent,
@@ -26,6 +26,7 @@ import {
TimeGapDivider,
ParticipantsSummary,
} from "@/components/conversation-bubble";
+import { SpeakerAssignPopover } from "@/components/speaker-assign-popover";
import { cn } from "@/lib/utils";
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
import { Meeting, deduplicateAudioItems } from "@/lib/hooks/use-meetings";
@@ -113,6 +114,8 @@ export function AudioTranscript({
const activeMeetingId = activeMeeting?.id;
useEffect(() => {
setMeetingPageSize(MEETING_PAGE_SIZE);
+ setSelectionMode(false);
+ setSelectedChunks(new Set());
}, [activeMeetingId]);
const [position, setPosition] = useState(() => ({
@@ -142,6 +145,10 @@ export function AudioTranscript({
Map<number, string>
>(new Map());
+ // Selection mode for bulk speaker reassign
+ const [selectionMode, setSelectionMode] = useState(false);
+ const [selectedChunks, setSelectedChunks] = useState<Set<number>>(new Set());
+
const handleRetranscribed = useCallback(
(audioChunkId: number, newText: string) => {
setTranscriptionOverrides((prev) => {
@@ -153,6 +160,23 @@ export function AudioTranscript({
[]
);
+ const toggleChunkSelection = useCallback((chunkId: number) => {
+ setSelectedChunks((prev) => {
+ const next = new Set(prev);
+ if (next.has(chunkId)) {
+ next.delete(chunkId);
+ } else {
+ next.add(chunkId);
+ }
+ return next;
+ });
+ }, []);
+
+ const exitSelectionMode = useCallback(() => {
+ setSelectionMode(false);
+ setSelectedChunks(new Set());
+ }, []);
+
const handleSpeakerAssigned = useCallback(
(audioChunkId: number, newSpeakerId: number, newSpeakerName: string) => {
setSpeakerOverrides((prev) => {
@@ -391,6 +415,38 @@ export function AudioTranscript({
return { items, participants, timeRange, totalDuration, firstChunkBySpeaker };
}, [activeMeeting, getSpeakerInfo]);
+ const handleBulkAssignToSelected = useCallback(
+ (firstChunkNewSpeakerId: number, firstChunkNewSpeakerName: string) => {
+ const chunks = Array.from(selectedChunks);
+ for (const chunkId of chunks) {
+ setSpeakerOverrides((prev) => {
+ const next = new Map(prev);
+ next.set(chunkId, { speakerId: firstChunkNewSpeakerId, speakerName: firstChunkNewSpeakerName });
+ return next;
+ });
+ }
+
+ // Fire API calls for all selected chunks (first was handled by popover, rest fire-and-forget)
+ const data = activeMeeting ? meetingConversationData : conversationData;
+ for (const chunkId of chunks) {
+ const audio = data.items.find((item) => item.audio.audio_chunk_id === chunkId)?.audio;
+ if (!audio) continue;
+ fetch("http://localhost:3030/speakers/reassign", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ audio_chunk_id: chunkId,
+ new_speaker_name: firstChunkNewSpeakerName,
+ propagate_similar: false,
+ }),
+ }).catch((err) => console.error("bulk reassign error:", err));
+ }
+
+ exitSelectionMode();
+ },
+ [selectedChunks, activeMeeting, meetingConversationData, conversationData, exitSelectionMode]
+ );
+
// Copy full transcript to clipboard (nearby or meeting depending on active tab)
const handleCopyTranscript = useCallback(() => {
const data = !!activeMeeting ? meetingConversationData : conversationData;
@@ -729,6 +785,14 @@ export function AudioTranscript({
<RefreshCw className="h-3 w-3" />
retranscribe
</DropdownMenuItem>
+ <DropdownMenuItem
+ onClick={() => setSelectionMode(true)}
+ disabled={selectionMode}
+ className="text-xs gap-2"
+ >
+ <UserCheck className="h-3 w-3" />
+ select &amp; reassign
+ </DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<Tooltip>
@@ -867,6 +931,9 @@ export function AudioTranscript({
)
: undefined
}
+ selectionMode={selectionMode}
+ isSelected={selectedChunks.has(item.audio.audio_chunk_id)}
+ onToggleSelect={() => toggleChunkSelection(item.audio.audio_chunk_id)}
/>
</div>
);
@@ -913,6 +980,9 @@ export function AudioTranscript({
newName
)
}
+ selectionMode={selectionMode}
+ isSelected={selectedChunks.has(item.audio.audio_chunk_id)}
+ onToggleSelect={() => toggleChunkSelection(item.audio.audio_chunk_id)}
/>
</div>
);
@@ -922,6 +992,52 @@ export function AudioTranscript({
)}
</div>
+ {/* Floating selection bar */}
+ {selectionMode && (
+ <div className="absolute bottom-5 left-3 right-3 flex items-center justify-between gap-2 px-3 py-2 bg-popover border border-border text-xs z-10">
+ {selectedChunks.size > 0 ? (
+ <>
+ <span className="text-muted-foreground shrink-0">
+ {selectedChunks.size} selected
+ </span>
+ {(() => {
+ const firstChunkId = Array.from(selectedChunks)[0];
+ const data = activeMeeting ? meetingConversationData : conversationData;
+ const firstAudio = data.items.find(
+ (item) => item.audio.audio_chunk_id === firstChunkId
+ )?.audio;
+ if (!firstAudio) return null;
+ return (
+ <SpeakerAssignPopover
+ audioChunkId={firstChunkId}
+ speakerId={firstAudio.speaker_id}
+ speakerName={firstAudio.speaker_name}
+ audioFilePath={firstAudio.audio_file_path}
+ onAssigned={(newId, newName) =>
+ handleBulkAssignToSelected(newId, newName)
+ }
+ >
+ <span className="px-2 py-1 border border-border hover:bg-accent cursor-pointer transition-colors duration-150">
+ assign to...
+ </span>
+ </SpeakerAssignPopover>
+ );
+ })()}
+ </>
+ ) : (
+ <span className="text-muted-foreground">click bubbles to select</span>
+ )}
+ <Button
+ variant="ghost"
+ size="sm"
+ className="h-6 px-2 text-xs shrink-0"
+ onClick={exitSelectionMode}
+ >
+ cancel
+ </Button>
+ </div>
+ )}
+
{/* Resize handle */}
<div
ref={resizerRef}
diff --git a/apps/screenpipe-app-tauri/components/speaker-assign-popover.tsx b/apps/screenpipe-app-tauri/components/speaker-assign-popover.tsx
index 0993b4839..ab1fc9951 100644
--- a/apps/screenpipe-app-tauri/components/speaker-assign-popover.tsx
+++ b/apps/screenpipe-app-tauri/components/speaker-assign-popover.tsx
@@ -26,6 +26,7 @@ interface SpeakerAssignPopoverProps {
speakerName?: string;
audioFilePath: string;
onAssigned?: (newSpeakerId: number, newSpeakerName: string) => void;
+ children?: React.ReactNode;
}
export function SpeakerAssignPopover({
@@ -34,6 +35,7 @@ export function SpeakerAssignPopover({
speakerName,
audioFilePath,
onAssigned,
+ children,
}: SpeakerAssignPopoverProps) {
const [open, setOpen] = useState(false);
const [searchTerm, setSearchTerm] = useState("");
@@ -236,13 +238,17 @@ export function SpeakerAssignPopover({
return (
<Popover open={open} onOpenChange={setOpen}>
<PopoverTrigger asChild>
- <span>
- <SpeakerBadge
- speakerId={speakerId}
- speakerName={speakerName}
- onClick={() => setOpen(true)}
- />
- </span>
+ {children ? (
+ <span onClick={() => setOpen(true)}>{children}</span>
+ ) : (
+ <span>
+ <SpeakerBadge
+ speakerId={speakerId}
+ speakerName={speakerName}
+ onClick={() => setOpen(true)}
+ />
+ </span>
+ )}
</PopoverTrigger>
<PopoverContent className="w-80 p-3 z-[9999] border border-border rounded-none shadow-none" align="start">
<div className="space-y-3">