TTS: Ignore prompt-hidden messages on auto narration
| @@ -755,6 +755,11 @@ async function onMessageEvent(messageId, lastCharIndex) { | ||
| 755 | 755 | const message = structuredClone(context.chat[messageId]); |
| 756 | 756 | const hashNew = getStringHash(message?.mes ?? ''); |
| 757 | 757 | |
| 758 | + // Ignore prompt-hidden messages | |
| 759 | + if (message.is_system) { | |
| 760 | + return; | |
| 761 | + } | |
| 762 | + | |
| 758 | 763 | // if no new messages, or same message, or same message hash, do nothing |
| 759 | 764 | if (hashNew === lastMessageHash) { |
| 760 | 765 | return; |