We have deployed a chatbot streamlit app in snowpark container…Sometimes the conversation is disappearing without any user interaction and after asking question the conversation along with recent question and answer is being displayed on the chat screen.
It’s a little tricky to say for sure since a lot of things can impact this. Streamlit uses websockets, so an interruption in connection can appear to “refresh” the app and start a new session for the user. I asked internally if there were any additional considerations for SPCS that would play into this, but I haven’t found anyone who’s seen any additional impacts.
In general, it seems like file uploader tends to exacerbate the apparent refresh behavior. Otherwise, diagnosing and trying to improve it would require a much more detailed investigation. Here’s a thread discussing the issue as it occurs on Community Cloud.
There have been a few small improvements to the websocket handling in recent versions, so I’d at least make sure you’re on the latest Streamlit version since SPCS supports that. (It’s not available in SiS yet.)