This commit is contained in:
Timothy Jaeryang Baek 2025-04-05 05:57:25 -06:00
parent 807b208418
commit fe4f760b4a

View File

@ -1322,6 +1322,10 @@
history.messages[messages.at(-1).id].childrenIds.push(userMessageId);
}
if (autoScroll) {
scrollToBottom();
}
// focus on chat input
const chatInput = document.getElementById('chat-input');
chatInput?.focus();