Ignoring a rerun

Hi Streamlit community,

if i have the same script open twice in streamlit i essentially have two users that run on different threads as the session id seems to indicate. From my understanding, a rerun spawns a set of new threads.
I was wondering if i can do a conditional rerun where user 1 refreshes his app and user 2 can stay on his thread. Caching doesnt seem to cover my usecase in that scenario as far as i understand it. Where would i have to start digging when i would want to look at that at the underlying implementation?