Phantom header on initial chat bot post

Just fyi, this is called a stale element. When Streamlit reruns, it “stales” everything on the page and draws over everything in order. (This is for efficiency so it’s not reconstructing everything on the front end from scratch if it doesn’t have to.) Only when it gets to the end of the script run does Streamlit discard any leftover stale elements. That means when you remove an element from one run to the next and have a longer script run, you may see a lingering stale element. This often happens when you use spinners, for example, because they exist on one script run and not the next.