diff --git a/public/scripts/PromptManager.js b/public/scripts/PromptManager.js index 30801532..cbf3eed3 100644 --- a/public/scripts/PromptManager.js +++ b/public/scripts/PromptManager.js @@ -1286,7 +1286,7 @@ class PromptManager { } else if (!entry.enabled && entry.identifier === 'main') { // Some extensions require main prompt to be present for relative inserts. // So we make a GMO-free vegan replacement. - const prompt = this.getPromptById(entry.identifier); + const prompt = structuredClone(this.getPromptById(entry.identifier)); prompt.content = ''; if (prompt) promptCollection.add(this.preparePrompt(prompt)); }