From bd891e39b0599d26f0264706aa6ab65d0077968c Mon Sep 17 00:00:00 2001 From: Spicy_Marinara Date: Thu, 13 Nov 2025 21:01:37 +0100 Subject: [PATCH] Fix: Quests now properly scoped per-chat Quests were bleeding through from other chats because loadChatData() wasn't resetting them when switching to a chat without RPG data. When loading a chat with no rpg_companion metadata, the function now resets quests to empty state (main: 'None', optional: []) along with other tracker data. This ensures each chat maintains its own quest state independently. --- src/core/persistence.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/persistence.js b/src/core/persistence.js index c3152a2..33a645c 100644 --- a/src/core/persistence.js +++ b/src/core/persistence.js @@ -204,6 +204,10 @@ export function loadChatData() { stored: {}, assets: "None" } + }, + quests: { + main: "None", + optional: [] } }); setLastGeneratedData({