diff --git a/public/scripts/extensions/tts/index.js b/public/scripts/extensions/tts/index.js index 74306062e..9b4ce71ea 100644 --- a/public/scripts/extensions/tts/index.js +++ b/public/scripts/extensions/tts/index.js @@ -755,6 +755,11 @@ async function onMessageEvent(messageId, lastCharIndex) { const message = structuredClone(context.chat[messageId]); const hashNew = getStringHash(message?.mes ?? ''); + // Ignore prompt-hidden messages + if (message.is_system) { + return; + } + // if no new messages, or same message, or same message hash, do nothing if (hashNew === lastMessageHash) { return;