-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When the AI chat is active, other processes become noticeably slower. This happens because the streaming response generates a large number of small updates that keep the event loop busy even though the code uses async.
To prevent this event loop starvation, we can periodically yield control back to the event loop by adding:
await asyncio.sleep(0.01)This allows other pending tasks to run, improving responsiveness while maintaining the streaming flow.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working