mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
#2308 Preserve itemized prompts for branches and checkpoints
This commit is contained in:
@ -7828,6 +7828,7 @@ function swipe_left() { // when we swipe left..but no generation.
|
|||||||
*/
|
*/
|
||||||
async function branchChat(mesId) {
|
async function branchChat(mesId) {
|
||||||
const fileName = await createBranch(mesId);
|
const fileName = await createBranch(mesId);
|
||||||
|
await saveItemizedPrompts(fileName);
|
||||||
|
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
await openGroupChat(selected_group, fileName);
|
await openGroupChat(selected_group, fileName);
|
||||||
|
@ -12,6 +12,7 @@ import {
|
|||||||
getCharacters,
|
getCharacters,
|
||||||
chat,
|
chat,
|
||||||
saveChatConditional,
|
saveChatConditional,
|
||||||
|
saveItemizedPrompts,
|
||||||
} from '../script.js';
|
} from '../script.js';
|
||||||
import { humanizedDateTime } from './RossAscends-mods.js';
|
import { humanizedDateTime } from './RossAscends-mods.js';
|
||||||
import {
|
import {
|
||||||
@ -199,6 +200,7 @@ async function createNewBookmark(mesId) {
|
|||||||
|
|
||||||
const mainChat = selected_group ? groups?.find(x => x.id == selected_group)?.chat_id : characters[this_chid].chat;
|
const mainChat = selected_group ? groups?.find(x => x.id == selected_group)?.chat_id : characters[this_chid].chat;
|
||||||
const newMetadata = { main_chat: mainChat };
|
const newMetadata = { main_chat: mainChat };
|
||||||
|
await saveItemizedPrompts(name);
|
||||||
|
|
||||||
if (selected_group) {
|
if (selected_group) {
|
||||||
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId);
|
await saveGroupBookmarkChat(selected_group, name, newMetadata, mesId);
|
||||||
|
Reference in New Issue
Block a user