From bee4d9a8183f4aecf326b8d6e2b1d9cfdca96dd3 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sun, 8 Feb 2026 02:35:14 +0200 Subject: [PATCH] fix: sync swipes only when chat is not pristine to ensure macro resolution (#5106) --- public/script.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/script.js b/public/script.js index b94e82e39..e8308804b 100644 --- a/public/script.js +++ b/public/script.js @@ -6708,7 +6708,10 @@ export function syncMesToSwipe(messageId = null) { return false; } - targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes; + // Only sync swipes if the chat is not pristine, so that macros in the greeting can resolve again on swipe + if (chat_metadata.tainted || chat.length > 1) { + targetMessage.swipes[targetMessage.swipe_id] = targetMessage.mes; + } targetSwipeInfo.send_date = targetMessage.send_date; targetSwipeInfo.gen_started = targetMessage.gen_started;