This commit is contained in:
Saoud Rizwan
2024-10-01 05:08:01 -04:00
parent 99108eaa50
commit 6b5f33c7e8
2 changed files with 22 additions and 22 deletions

View File

@@ -184,6 +184,11 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
}, [messages.length])
const isStreaming = useMemo(() => {
const isToolCurrentlyAsking = claudeAsk !== undefined && enableButtons && primaryButtonText !== undefined
if (isToolCurrentlyAsking) {
return false
}
const isLastMessagePartial = modifiedMessages.at(-1)?.partial === true
if (isLastMessagePartial) {
return true
@@ -199,7 +204,7 @@ const ChatView = ({ isHidden, showAnnouncement, hideAnnouncement, showHistoryVie
}
return false
}, [modifiedMessages])
}, [modifiedMessages, claudeAsk, enableButtons, primaryButtonText])
const handleSendMessage = useCallback(
(text: string, images: string[]) => {