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
fix(speakers): organize-with-ai now opens home chat, not empty /settings pane
Louis Beaumont108e52807618
diff --git a/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx b/apps/screenpipe-app-tauri/components/settings/speakers-section.tsxindex e66cc4f5c..62a023017 100644--- a/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/speakers-section.tsx@@ -33,8 +33,7 @@ import {AlertCircle,} from "lucide-react";import { localFetch } from "@/lib/api";-import { useQueryState } from "nuqs";-import { emit } from "@tauri-apps/api/event";+import { showChatWithPrefill } from "@/lib/chat-utils";interface AudioSample {path: string;@@ -835,7 +834,6 @@ export function SpeakersSection() {);const [clusters, setClusters] = useState<SpeakerCluster[]>([]);const [clusterLoading, setClusterLoading] = useState(false);- const [, setSection] = useQueryState("section");const { toast } = useToast();const fetchSpeakers = useCallback(async () => {@@ -1176,20 +1174,14 @@ export function SpeakersSection() {}).join("\n");- const prefillData = {+ await showChatWithPrefill({context: `here are my current speakers:\n${speakerSummary}\n\nYou have access to the screenpipe API to manage speakers:\n- POST /speakers/update {id, name} to rename\n- POST /speakers/merge {speaker_to_keep_id, speaker_to_merge_id} to merge duplicates\n- POST /speakers/delete {speaker_id} to delete\n- POST /speakers/hallucination {speaker_id} to mark false detections`,prompt:"look at my speakers and help me organize them. find likely duplicates to merge, suggest better names for vague ones, and flag any that look like false detections. make the changes directly via the API.",autoSend: true,source: "speakers-organize",- };-- sessionStorage.setItem(- "pendingChatPrefill",- JSON.stringify(prefillData)- );- await setSection("home");- setTimeout(() => emit("chat-prefill", prefillData), 300);+ useHomeChat: true,+ });}}><Sparkles className="h-3 w-3" />