()
| 136 | }; |
| 137 | |
| 138 | const clearChat = () => { |
| 139 | lastQuestionRef.current = ""; |
| 140 | error && setError(undefined); |
| 141 | setActiveCitation(undefined); |
| 142 | setActiveAnalysisPanelTab(undefined); |
| 143 | setAnswers([]); |
| 144 | setStreamedAnswers([]); |
| 145 | setIsLoading(false); |
| 146 | setIsStreaming(false); |
| 147 | }; |
| 148 | |
| 149 | useEffect(() => { chatMessageStreamEnd.current?.scrollIntoView({ behavior: "smooth" }); }, [isLoading]); |
| 150 | useEffect(() => { chatMessageStreamEnd.current?.scrollIntoView({ behavior: "auto" }); }, [streamedAnswers]); |
nothing calls this directly
no outgoing calls
no test coverage detected