diff --git a/public/script.js b/public/script.js index 80113ebf6..9e5cec987 100644 --- a/public/script.js +++ b/public/script.js @@ -6036,7 +6036,7 @@ export function cleanUpMessage({ getMessage, isImpersonate, isContinue, displayI if (wrongName) { // If the message starts with the wrong name, delete the entire response - let startIndex = getMessage.indexOf(`${wrongName}`); + let startIndex = getMessage.indexOf(`${wrongName}:`); if (startIndex === 0) { getMessage = ''; console.debug(`Message started with the wrong name: "${wrongName}" - response was deleted.`);