I was using the if prompt := st.chat_input to collect chat input as shown in an example but sometimes (not all the time) the page view is reloaded… jumping to the top of the page and then to the bottom. When the chat gets long it is unsettling to suddenly see the whole content jump to the top and then scroll to the bottom.
Some of the comments in the forum suggest that if prompt := st.chat_input is the best way to get user input for chat. Any suggestions?
This happens even with the basic echo chat demo code… just keep adding a bunch of dummy messages and then it starts jumping to the top of the page (Chrome, streamlit 1.30). Build a basic LLM chat app - Streamlit Docs…
Seems a little better in 1.31… still checking though.