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(chat): preserve display when editing a user message (#3275)
Harsh Kumar9b3a6e039859
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex d969a70a9..372c5a879 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -1562,7 +1562,7 @@ export function StandaloneChat({const lastUserMessageRef = useRef<string>("");// Ref to sendMessage so useEffect callbacks can call it without stale closures- const sendMessageRef = useRef<(msg: string) => Promise<void>>();+ const sendMessageRef = useRef<(msg: string, displayLabel?: string) => Promise<void>>();// Bypass guard for auto-send from chat-prefill (Pi confirmed running but React state stale)const autoSendBypassRef = useRef(false);@@ -4886,7 +4886,7 @@ export function StandaloneChat({const idx = messages.findIndex((m) => m.id === message.id);if (idx === -1) return;setMessages((prev) => prev.slice(0, idx));- sendMessage(trimmed);+ sendMessage(trimmed, message.displayContent);}}onKeyDown={(e) => {if (e.key === "Escape") { e.preventDefault(); setEditingMessageId(null); }