| 755 | const message = structuredClone(context.chat[messageId]); | 755 | const message = structuredClone(context.chat[messageId]); |
| 756 | const hashNew = getStringHash(message?.mes ?? ''); | 756 | const hashNew = getStringHash(message?.mes ?? ''); |
| 757 | | 757 | |
| | 758 | // Ignore prompt-hidden messages |
| | 759 | if (message.is_system) { |
| | 760 | return; |
| | 761 | } |
| | 762 | |
| 758 | // if no new messages, or same message, or same message hash, do nothing | 763 | // if no new messages, or same message, or same message hash, do nothing |
| 759 | if (hashNew === lastMessageHash) { | 764 | if (hashNew === lastMessageHash) { |
| 760 | return; | 765 | return; |