mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-05-19 16:13:19 +00:00
fix claude code suggestions
This commit is contained in:
parent
1e1737efaf
commit
61fd8a0a1a
1 changed files with 2 additions and 2 deletions
|
|
@ -561,10 +561,10 @@ export function ChatSidebar({
|
|||
const lastMessage = messages[messages.length - 1]
|
||||
const isLastMessageFromAssistant = lastMessage?.role === "assistant"
|
||||
|
||||
if (isStreaming && isLastMessageFromAssistant && isScrolledToBottom) {
|
||||
if (isStreaming && isLastMessageFromAssistant && isScrolledToBottomRef.current) {
|
||||
scrollToBottom()
|
||||
}
|
||||
}, [status, messages, isScrolledToBottom, scrollToBottom])
|
||||
}, [status, messages, scrollToBottom])
|
||||
|
||||
useEffect(() => {
|
||||
const container = messagesContainerRef.current
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue