diff --git a/src/components/chat-view/Chat.tsx b/src/components/chat-view/Chat.tsx index 3c8f07e..ea0eb57 100644 --- a/src/components/chat-view/Chat.tsx +++ b/src/components/chat-view/Chat.tsx @@ -1,5 +1,5 @@ import { useMutation } from '@tanstack/react-query' -import { History, Plus } from 'lucide-react' +import { CircleStop, History, Plus } from 'lucide-react' import { App, Notice } from 'obsidian' import { forwardRef, @@ -118,9 +118,9 @@ const Chat = forwardRef((props, ref) => { const [queryProgress, setQueryProgress] = useState({ type: 'idle', }) + const preventAutoScrollRef = useRef(false) const lastProgrammaticScrollRef = useRef(0) - const activeStreamAbortControllersRef = useRef([]) const chatUserInputRefs = useRef>(new Map()) const chatMessagesRef = useRef(null) @@ -594,6 +594,12 @@ const Chat = forwardRef((props, ref) => { ), )} + {submitMutation.isPending && ( + + )}