diff --git a/templates/index.html b/templates/index.html index d4e3396..e1f2f89 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1078,7 +1078,7 @@ async function loadConversation(convId) { container.innerHTML = ''; conversationHistory = []; data.messages.forEach(msg => { appendMessage(msg.role, msg.content, false); conversationHistory.push({ role: msg.role, content: msg.content }); }); - scrollToBottom(); + scrollToTop(); await loadConversations(); } catch(e) {} } @@ -1151,7 +1151,7 @@ async function sendSearch() { if (data.error) { textEl.textContent = 'Error: ' + data.error; setStreamingState(false); return; } if (data.conversation_id && !currentConvId) { currentConvId = data.conversation_id; await loadConversations(); } if (data.search_results) { textEl.innerHTML = '