Comfy-Org / Comfy-Org/ComfyUI_frontend
% progress does not update in tab title while viewing another tab, or while browser is minimized
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 702
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 512
Description
### Prerequisites
- [x] I am running the latest version of ComfyUI
- [ ] I have custom nodes enabled
### What happened?
If a different browser tab has focus, the percent progress text in ComfyUI's tab title does not update itself. (This worked properly in previous versions of ComfyUI.) Switching back to the ComfyUI tab makes the title update.
Notes:
- No difference with/without subgraphs in the workflow.
- I am on Windows 11 and primarily Chrome. When testing with Firefox, the bug mostly occurs too, but can sometimes update the text with a delay (comparing to progress in the commandline window). Not sure about Firefox behavior with previous ComfyUI versions.
- The bug also occurs if the window is minimized while the ComfyUI tab is in front. If you have taskbar text labels enabled, you can see the % progress does not update there.
- The bug also occurs if the window is open, but a different window is maximized in front of it.
- If a different window is open in front but NOT maximized, the progress text updates properly.
### Steps to Reproduce
1. Start a gen that doesn't finish instantly.
2. Switch to a different browser tab.
3. Watch the tab title for ComfyUI's background tab as the gen proceeds. The % progress text does not change.
### Workflow
N/A
### How is this affecting you?
Visual/UI issue only
### ComfyUI Frontend Version
1.51.10
### Browser
Chrome/Chromium
### Console Errors
```javascript
```
### Logs
```shell
```
### Additional Context
_No response_
Contributor guide
Research direction
Reproduce the issue in Chrome using the listed steps, including a background tab and a minimized window. Then locate the frontend path responsible for updating the ComfyUI document title during generation and compare its behavior while the page is visible and hidden. Done means the percentage in the title continues updating in those states.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100