Update src/core/persistence.js

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Spicy Marinara
2026-02-25 23:57:30 +01:00
committed by GitHub
parent bb202aca9c
commit 5b2cb331c8
+1 -1
View File
@@ -372,7 +372,7 @@ export function inheritSwipeDataFromPriorMessage(message, messageIndex) {
const swipeId = msg.swipe_id || 0; const swipeId = msg.swipe_id || 0;
const swipeData = getSwipeData(msg, swipeId); const swipeData = getSwipeData(msg, swipeId);
if (!swipeData) return false; // Prior assistant also has no data — nothing to inherit if (!swipeData) continue; // No data on this assistant message; keep searching further back
// Write inherited data into this swipe slot. // Write inherited data into this swipe slot.
if (!message.extra) message.extra = {}; if (!message.extra) message.extra = {};