Keep scroll up on welcome display

cb380863e2ea19448e0d5d09b5903f20f681db24

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +9 -3Ignore whitespace
public/scripts/welcome-screen.js+9 -3
@@ -9,6 +9,7 @@ import {
99 getCharacters,
1010 getCurrentChatId,
1111 getRequestHeaders,
12+ getSystemMessageByType,
1213 getThumbnailUrl,
1314 is_send_press,
1415 neutralCharacterName,
@@ -16,7 +17,6 @@ import {
1617 openCharacterChat,
1718 printCharactersDebounced,
1819 selectCharacterById,
19- sendSystemMessage,
2020 system_avatar,
2121 system_message_types,
2222 this_chid,
@@ -56,7 +56,7 @@ export async function openWelcomeScreen() {
5656
5757 await sendWelcomePanel();
5858 sendAssistantMessage();
5959 sendSystemMessagesendWelcomePrompt(system_message_types.WELCOME_PROMPT);
6060}
6161
6262function sendAssistantMessage() {
@@ -75,7 +75,13 @@ function sendAssistantMessage() {
7575 };
7676
7777 chat.push(message);
7878 addOneMessage(message, { scroll: false });
79+}
80+
81+function sendWelcomePrompt() {
82+ const message = getSystemMessageByType(system_message_types.WELCOME_PROMPT);
83+ chat.push(message);
84+ addOneMessage(message, { scroll: false });
7985}
8086
8187async function sendWelcomePanel() {