Ghost double text bug

Hi @mathcatsand, thank you for the answer.

As mentioned before, in the previous version of Streamlit (1.32), the chat interface worked as expected without any ghosting of the messages. Not changing my code, the ghosting started appearing after updating to the version 1.39 (I believe the issue started appearing in 1.33 onwards). Hence, something on the side of Streamlit implementation must have changed, causing this issue to start appearing.

I have read similar reports of “ghosting” across different threads - all started appearing at a similar time around March/April/May 2024 when the versions 1.33/1.34 were released:

Screen ghosting with chat_input inside container plus multiple columns · Issue #8480 · streamlit/streamlit

Ghosting of container in streamlit - Using Streamlit - Streamlit

Bug making double image-text generation - Using Streamlit - Streamlit

Chatbot message appears twice - LLMs and AI - Streamlit

Also, the posts of this thread suggest the ghosting behavior of st.char_message() elements appear when spinner is used and that is not the expected or correct behavior as it used to be in the version 1.32.

Could you please verify this is really a known issue that is planned to be reverted back to the previous state when the ghosting during chat interface didn’t appear?