Allow content to stream when window loses focus

Author: taylorn-aiCreated Jul 18, 2024Updated Apr 8, 2026

This isn't really a bug, possibly more so a feature request?

When the chat content is being streamed to the UI and updateState is called, if you switch to another window/tab the content will stop streaming and only resume when the window regains focus. I assume the browser is suspending the script execution? Is there a way around this? ChatGPT handles this well...

Source: Azure-Samples/azure-search-openai-demo