From 57c95e3192058685bf79b4624d7402f0bb9962a7 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 16 Aug 2026 13:07:10 +0200 Subject: [PATCH] Scroll chat to bottom on startup --- gui/ChatPane.qml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/gui/ChatPane.qml b/gui/ChatPane.qml index 44df646..2795f7c 100644 --- a/gui/ChatPane.qml +++ b/gui/ChatPane.qml @@ -6,15 +6,22 @@ Item { id: chatPane property bool sidebarVisible: true signal toggleSidebar() + function scrollToBottom() { + chatView.positionViewAtEnd() + } function loadChat() { chatModel.reset() if (ollie.activeSessionId && ollie.activeAgentId) { var log = ollie.readLogForSession(ollie.activeSessionId, ollie.activeAgentId) if (log) { chatModel.appendData(log); chatModel.trimFront(20) } } + scrollToBottom() } - Component.onCompleted: loadChat() + Component.onCompleted: { + loadChat() + scrollToBottom() + } ColumnLayout { anchors.fill: parent @@ -117,6 +124,8 @@ Item { anchors.margins: 4 visible: ollie.daemonConnected && ollie.activeAgentId !== "" + Component.onCompleted: chatPane.scrollToBottom() + delegate: ChatBlockDelegate { width: chatView.width - 8 }