mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 02:48:13 -05:00
[PR #1829] [MERGED] fix: fluid streaming was "pausing" when tab was not visible #20807
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/1829
Author: @cheahjs
Created: 4/28/2024
Status: ✅ Merged
Merged: 4/28/2024
Merged by: @tjbck
Base:
dev← Head:fix/fluid-streaming-background📝 Commits (1)
ed9e99efix: fluid streaming was "pausing" when tab was not visible📊 Changes
1 file changed (+5 additions, -1 deletions)
View changed files
📝
src/lib/apis/streaming/index.ts(+5 -1)📄 Description
Pull Request Checklist
Description
Check if the the page is visible (https://developer.mozilla.org/docs/Web/API/Page_Visibility_API) before sleeping. When the page is not visible, Javascript timers are throttled to once a second, so if the fluid streaming option was turned on, it would barely make any progress when not visible.
Changelog Entry
Fixed
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.