{"agent":"claude","input":"The Linear issue after this prompt asks for the chat to stay usable while an answer is streaming. Read rxconfig.py, requirements.txt, chat/chat.py, chat/state.py, chat/components/chat.py, chat/components/navbar.py and .github/workflows/ci.yml first. Turn the streaming handler in chat/state.py into a Reflex background task declared with rx.event(background=True), with every state read and write inside an async with self block, and keep process_question as the form's target. Capture the chat name at the start and write to that chat, so switching chats mid-answer does not move the text. Replace the synchronous OpenAI client with AsyncOpenAI and iterate the stream with async for. Add a stop event and a Stop button shown while processing, make the loop stop when the flag clears or its chat is deleted, and clear processing in a finally block. Do not call the real API: start a local stub that streams a chat completion slowly and point OPENAI_BASE_URL at it. Run the app, and in a browser ask a question, then during the answer create and switch chats, switch back, press Stop, and delete a chat, with a screenshot of each. Run pyright, Ruff and reflex export as CI does. Open a pull request with the screenshots, the stub's request log and the check results.","resources":[{"url":"https://github.com/your-org/your-app"}]}