Comfy-Org / Comfy-Org/ComfyUI_frontend

The tab cannot be minimized after comfyui is started, and all minimization operations are blocked.

Open
#14,844 1 comment 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
TypeScript
Stars
2k
Forks
699
Avg merge
1d 7h
Merged PRs (30d)
490

Description

### What problem are you experiencing?

The tab cannot be minimized after startup, whether through shortcut keys or the browser's minimize button. I also tried the latest version v1.50.1, and it is still the same, as is the v1.48.6 version. I disabled all extensions and it still happens. Everything works fine when switching to other tabs. This only happens in the comfyui tab. Replenish: If you encounter it in edge browser, just switch to chrome.

### When does this problem occur?

After starting comfyui

### How often do you encounter this problem?

Multiple times per day

### How much does this problem affect your workflow?

Causes moderate inconvenience

### Current workarounds

Find the event listener in the console and remove an event in visibilitychange. After a simple troubleshooting. It seems to be caused by this code?
`function beforeUnloadListener() {
if (document.visibilityState === `hidden`) {
let {history: e} = window;
if (!e.state)
return;
e.replaceState(Z({}, e.state, {
scroll: computeScrollPosition()
}), ``)
}
}`

### Ideas for solutions (Optional)

_No response_

### Additional context

This is the screen recording I provided

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue after ComfyUI startup in Chrome and Edge, then trace the beforeUnloadListener and its visibilitychange registration in the frontend. Check whether removing that listener restores tab minimization; done means keyboard and browser minimize actions work normally without breaking the intended navigation or scroll behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.