Skip to content

Commit

Permalink
feat: add auto-scroll for agent messages
Browse files Browse the repository at this point in the history
  • Loading branch information
klungg committed Nov 5, 2024
1 parent 1728d42 commit 687d93a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ async function addStreamedMessage(uuid, messagePart) {
// Concat ChatPart on message with uuid
element.innerHTML += messagePart;
}

// Add auto-scroll
let chat_history = document.getElementById("chat_history")
chat_history.scrollTop = chat_history.scrollHeight;
}

addUserMessage = (message) => {
Expand Down

0 comments on commit 687d93a

Please sign in to comment.