[PR #1829] [MERGED] fix: fluid streaming was "pausing" when tab was not visible #20807

Closed
opened 2026-04-20 03:11:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 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: devHead: fix/fluid-streaming-background


📝 Commits (1)

  • ed9e99e fix: 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: Briefly describe the changes in this pull request.
  • Changelog: Ensure a changelog entry following the format of Keep a Changelog is added at the bottom of the PR description.
  • Documentation: Have you updated relevant documentation Open WebUI Docs, or other documentation sources?
  • Dependencies: Are there any new dependencies? Have you updated the dependency versions in the documentation?
  • Testing: Have you written and run sufficient tests for the changes?
  • Code Review: Have you self-reviewed your code and addressed any coding standard issues?

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

  • The fluid streaming response option will better handle when the page is not visible.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-webui/pull/1829 **Author:** [@cheahjs](https://github.com/cheahjs) **Created:** 4/28/2024 **Status:** ✅ Merged **Merged:** 4/28/2024 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `fix/fluid-streaming-background` --- ### 📝 Commits (1) - [`ed9e99e`](https://github.com/open-webui/open-webui/commit/ed9e99e946b5458946f341bbee9a004049c1a233) fix: fluid streaming was "pausing" when tab was not visible ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/apis/streaming/index.ts` (+5 -1) </details> ### 📄 Description ## Pull Request Checklist - [x] **Description:** Briefly describe the changes in this pull request. - [x] **Changelog:** Ensure a changelog entry following the format of [Keep a Changelog](https://keepachangelog.com/) is added at the bottom of the PR description. - [ ] **Documentation:** Have you updated relevant documentation [Open WebUI Docs](https://github.com/open-webui/docs), or other documentation sources? - [ ] **Dependencies:** Are there any new dependencies? Have you updated the dependency versions in the documentation? - [x] **Testing:** Have you written and run sufficient tests for the changes? - [x] **Code Review:** Have you self-reviewed your code and addressed any coding standard issues? --- ## 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 - The fluid streaming response option will better handle when the page is not visible. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 03:11:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#20807