Replace AtomicBool polling (only checked between chunks) with tokio::sync::Notify + tokio::select!, so the stop button takes effect immediately even when the LLM is thinking.
Replace AtomicBool polling (only checked between chunks) with tokio::sync::Notify + tokio::select!, so the stop button takes effect immediately even when the LLM is thinking.