https://discord.gg/botpress logo
User message duplication bug
# šŸ¤help
d
Hello, good afternoon. I’m having an issue with user messages showing up duplicated — one of them appears with a ā€œdeliveredā€ tag underneath. When I refresh the page, the duplicate disappears. This happens after I republish my existing bot and add the new version of inject.js (3.2 or 3.3). Does anyone have an idea why this happens or how to fix it? Thanks! https://cdn.discordapp.com/attachments/1420574845011230851/1420574845288185866/Captura_de_pantalla_2025-09-24_184653.png?ex=68d5e4ec&is=68d4936c&hm=c4d6045a08105ee42780da1de9b38ab9773846d0f263be35e047b5133e9cd38e& https://cdn.discordapp.com/attachments/1420574845011230851/1420574845850357851/Captura_de_pantalla_2025-09-24_185045.png?ex=68d5e4ec&is=68d4936c&hm=fc7ef71f91855272fd76d91bd98eb8e57e25c83b25de2da4f1af0d28e1e8b5bb&
I just submitted a bug report regarding the Botpress Webchat v3.2. Here is my Report ID: report_01K5ZZPMHRAXKJDRFPD6D3779C Issue: When sending a message through the webchat, the user message appears duplicated: One bubble is shown immediately after pressing Enter. Another identical bubble appears with the "Delivered" status. This happens even on the official shareable link, so it’s not related to my embed code. Steps to reproduce: Open the shareable link: https://cdn.botpress.cloud/webchat/v3.2/shareable.html?configUrl=https://files.bpcontent.cloud/2025/09/24/22/20250924220042-T44SWM0B.json Type any message (e.g., ā€œholaā€). Two bubbles are displayed for the same user message. Expected behavior: the ā€œDeliveredā€ status should update the same bubble, not create a duplicate. Thanks for looking into this šŸ™
f
Hi, good afternoon! I can help you resolve this duplication issue. It seems related to how inject.js v3.2/3.3 handles message acknowledgment, causing the "Delivered" bubble to create a duplicate instead of updating the existing one. Quick question: Have you tested with v3.1 to see if the duplication still occurs? Knowing this will help pinpoint whether it’s a version-specific bug or a configuration issue. I can then suggest a concrete fix or workaround. @dry-controller-10199
d
Hi, good day. Thank you very much for your help. I’ve already tested with versions 3.3, 3.2, and 3.1, and the duplicate message issue still occurs. With version 3.0, the message is still duplicated but without the ā€œDeliveredā€ bubble. I rolled back to version 2.2, and in that case the message is no longer duplicated, but it takes longer for the bot’s message to appear.
l
can you share a screenshot of your workflow
d
Sure! I didn’t modify anything in the flow — I just republished my bot and changed the version of inject.js in my web.
l
wow - that is some workflow can you do a simple test connect the start to an autonomous node and give prompt to act like a sales representative of ABC corp, greet the users with a smile see if you send a hola it repeats hola back? - if it does check if any policy agents causing this behavior if it does not, then your revisit your prompt
d
I already tried it, and it keeps showing the previous information and still duplicating the message. I also exported it and imported it into another workspace. As a critical measure, in that workspace these errors do not occur. I will keep trying anyway to see what happens. Thank you very much. https://cdn.discordapp.com/attachments/1420574845011230851/1420848042957082745/image.png?ex=68d6e35b&is=68d591db&hm=aff58a7ecb959eff6f7a1ba5fbed9ad01ae7e7444bc793633c08ba9d761c74e6& https://cdn.discordapp.com/attachments/1420574845011230851/1420848043355410442/image.png?ex=68d6e35b&is=68d591db&hm=3829cad5016ab49d5dc8b0ec8630578f6af8c2b7f4d80d572dabb76b21295f9c&
l
"in that workspace these errors do not occur" - this is an example of corrupt bot, if you create a new bot and upload the imported bot image, this issue should not occur in the current workspace in the new bot
d
yes, what I did is that I created a new workspace, because when I did the same in another workspace I already had, it kept duplicating the message.
d
p
Ensure to publish your bot once you have updated the integration
d
Oh, thanks, I'll do that. šŸ˜€
p
Let me know how it goes!