From cb380863e2ea19448e0d5d09b5903f20f681db24 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Wed, 14 May 2025 00:25:35 +0300 Subject: [PATCH] Keep scroll up on welcome display --- public/scripts/welcome-screen.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/public/scripts/welcome-screen.js b/public/scripts/welcome-screen.js index 82986985a..6aa67e8cb 100644 --- a/public/scripts/welcome-screen.js +++ b/public/scripts/welcome-screen.js @@ -9,6 +9,7 @@ import { getCharacters, getCurrentChatId, getRequestHeaders, + getSystemMessageByType, getThumbnailUrl, is_send_press, neutralCharacterName, @@ -16,7 +17,6 @@ import { openCharacterChat, printCharactersDebounced, selectCharacterById, - sendSystemMessage, system_avatar, system_message_types, this_chid, @@ -56,7 +56,7 @@ export async function openWelcomeScreen() { await sendWelcomePanel(); sendAssistantMessage(); - sendSystemMessage(system_message_types.WELCOME_PROMPT); + sendWelcomePrompt(); } function sendAssistantMessage() { @@ -75,7 +75,13 @@ function sendAssistantMessage() { }; chat.push(message); - addOneMessage(message); + addOneMessage(message, { scroll: false }); +} + +function sendWelcomePrompt() { + const message = getSystemMessageByType(system_message_types.WELCOME_PROMPT); + chat.push(message); + addOneMessage(message, { scroll: false }); } async function sendWelcomePanel() {