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: prevent ChevronDown click from triggering edit mode (#3251)

Harsh Kumarf682e1f143cf
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 9a93df47e..7b083566a 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -1091,7 +1091,11 @@ function CollapsibleUserMessage({ label, fullContent }: { label: string; fullCon
<div className="flex items-center gap-1.5">
<span className="flex-1 text-sm font-medium">{label}</span>
<button
- onClick={() => setExpanded(!expanded)}
+ onClick={(e) => {
+ e.stopPropagation();
+ setExpanded(!expanded);
+ }}
+ onMouseUp={(e) => e.stopPropagation()}
className="shrink-0 p-0.5 rounded hover:bg-background/20 text-background/60 hover:text-background/90 transition-colors"
title={expanded ? "Collapse prompt" : "Show full prompt"}
>