From 7eba5141fa396b272bf7f61518410bde90fe8899 Mon Sep 17 00:00:00 2001 From: shekohex Date: Wed, 18 Feb 2026 11:51:25 +0200 Subject: [PATCH] fix(chat): prevent accidental abort on mobile touch send (#440) Mobile touch send was firing on pointerdown and then same gesture click landed on stop button after UI switched to abort state. Removed pointerdown-based send/queue handlers and dedupe ref. Mobile send/queue now trigger from click path, avoiding retargeted click to stop. --- packages/ui/src/components/chat/ChatInput.tsx | 38 ------------------- 1 file changed, 38 deletions(-) diff --git a/packages/ui/src/components/chat/ChatInput.tsx b/packages/ui/src/components/chat/ChatInput.tsx index f28bda3b..8254d5f0 100644 --- a/packages/ui/src/components/chat/ChatInput.tsx +++ b/packages/ui/src/components/chat/ChatInput.tsx @@ -127,7 +127,6 @@ export const ChatInput: React.FC = ({ onOpenSettings, scrollToBo const [showAbortStatus, setShowAbortStatus] = React.useState(false); const abortTimeoutRef = React.useRef | null>(null); const prevWasAbortedRef = React.useRef(false); - const sendTriggeredByPointerDownRef = React.useRef(false); // Message queue const queueModeEnabled = useMessageQueueStore((state) => state.queueModeEnabled); @@ -1660,30 +1659,11 @@ export const ChatInput: React.FC = ({ onOpenSettings, scrollToBo