A weird thing I have encountered

On one chat, it shows my latest prompt and it says that it had a connection error and I had to regenerate. I regenerated and it wouldn’t finish generating after a while even though it had already evidently completed it so I pressed the stop generation button and when I refresh the site it goes back to my latest prompt that I mentioned in the beginning so I edit a previous prompt and submit but it does the same thing and goes back to the latest prompt again