mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Keep scroll up on welcome display
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
|||||||
getCharacters,
|
getCharacters,
|
||||||
getCurrentChatId,
|
getCurrentChatId,
|
||||||
getRequestHeaders,
|
getRequestHeaders,
|
||||||
|
getSystemMessageByType,
|
||||||
getThumbnailUrl,
|
getThumbnailUrl,
|
||||||
is_send_press,
|
is_send_press,
|
||||||
neutralCharacterName,
|
neutralCharacterName,
|
||||||
@@ -16,7 +17,6 @@ import {
|
|||||||
openCharacterChat,
|
openCharacterChat,
|
||||||
printCharactersDebounced,
|
printCharactersDebounced,
|
||||||
selectCharacterById,
|
selectCharacterById,
|
||||||
sendSystemMessage,
|
|
||||||
system_avatar,
|
system_avatar,
|
||||||
system_message_types,
|
system_message_types,
|
||||||
this_chid,
|
this_chid,
|
||||||
@@ -56,7 +56,7 @@ export async function openWelcomeScreen() {
|
|||||||
|
|
||||||
await sendWelcomePanel();
|
await sendWelcomePanel();
|
||||||
sendAssistantMessage();
|
sendAssistantMessage();
|
||||||
sendSystemMessage(system_message_types.WELCOME_PROMPT);
|
sendWelcomePrompt();
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendAssistantMessage() {
|
function sendAssistantMessage() {
|
||||||
@@ -75,7 +75,13 @@ function sendAssistantMessage() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
chat.push(message);
|
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() {
|
async function sendWelcomePanel() {
|
||||||
|
Reference in New Issue
Block a user