mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update displayed prompt bias when auto-saving edits.
When Auto-save Message Edits is enabled, the prompt bias string displayed beneath the textarea wasn't being updated.
This commit is contained in:
@ -6014,7 +6014,7 @@ function openMessageDelete(fromSlashCommand) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function messageEditAuto(div) {
|
function messageEditAuto(div) {
|
||||||
const { mesBlock, text, mes } = updateMessage(div);
|
const { mesBlock, text, mes, bias } = updateMessage(div);
|
||||||
|
|
||||||
mesBlock.find('.mes_text').val('');
|
mesBlock.find('.mes_text').val('');
|
||||||
mesBlock.find('.mes_text').val(messageFormatting(
|
mesBlock.find('.mes_text').val(messageFormatting(
|
||||||
@ -6024,6 +6024,8 @@ function messageEditAuto(div) {
|
|||||||
mes.is_user,
|
mes.is_user,
|
||||||
this_edit_mes_id,
|
this_edit_mes_id,
|
||||||
));
|
));
|
||||||
|
mesBlock.find('.mes_bias').empty();
|
||||||
|
mesBlock.find('.mes_bias').append(messageFormatting(bias, '', false, false, -1));
|
||||||
saveChatDebounced();
|
saveChatDebounced();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user