Describe the bug
When you click on "New Chat" while the message is being streamed, "New Chat" will be created per word streamed it seems.
To Reproduce
Steps to reproduce the behavior:
- Choose any model and generate a message
- While generating, Click on 'New Chat'
- You will see a creation of New Chat, which stop when the answer stream stops.
Expected behavior
Message generation stops and the new chat starts.
Screenshots

Desktop (please complete the following information):
- OS: MacOS
- Browser Edge
- Version 119.0.2151.72 (Official build) (arm64)
Additional context
I'm just using frontend. I am NOT using Docker. I am NOT using the backend.
Instead, I'm using the regular ollama previously installed.
I'm running it via npm run dev and ollama via ollama serve.
Frontend .env points to OLLAMA_API_BASE_URL='http://127.0.0.1:11434/api'