Update src/systems/integration/sillytavern.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Spicy Marinara
2026-02-26 00:40:22 +01:00
committed by GitHub
parent 32280d60ef
commit 9213d264a0
+1 -1
View File
@@ -74,7 +74,7 @@ function syncLastGeneratedDataFromSwipeStore(currentChat) {
if (swipeData) { if (swipeData) {
lastGeneratedData.userStats = swipeData.userStats || null; lastGeneratedData.userStats = swipeData.userStats || null;
lastGeneratedData.infoBox = swipeData.infoBox || null; lastGeneratedData.infoBox = swipeData.infoBox || null;
// Normalise characterThoughts to string (backward compat with old object format). // Normalize characterThoughts to string (backward compat with old object format).
if (swipeData.characterThoughts && typeof swipeData.characterThoughts === 'object') { if (swipeData.characterThoughts && typeof swipeData.characterThoughts === 'object') {
lastGeneratedData.characterThoughts = JSON.stringify(swipeData.characterThoughts, null, 2); lastGeneratedData.characterThoughts = JSON.stringify(swipeData.characterThoughts, null, 2);
} else { } else {