Skip to content

"Discard Changes" Only Runs if Window is Active #21700

@BossyCloud

Description

@BossyCloud

The problem

Since I'm working in angular, I always have tons of build artifacts to discard which takes a minute or two (also seems to be getting slower lately). As such, I used to start the discard process, then switch to another window and do something else, then it would be done when I returned. Recently it's changed so that it won't complete the process unless I remain in the GitHub Desktop window until it's finished.

UPDATE
I recently tried with a much smaller number of files, and it finished while I was in another window. Either the problem is dependent on the number/size of files being discarded, and/or it's just that the process is taking so long that it seems like the only way to complete it is to have the window open.

Release version

Version 3.5.5 (x64)

Operating system

Windows 11

Steps to reproduce the behavior

  1. Highlight files in the changes tab
  2. Right click → discard changes
  3. Switch to another window for a while
  4. Return to GitHub Desktop and see that the discard process is still running
  5. Remain in the window and it will finish (eventually..)

Log files

2026-02-26.desktop.production.log

Screenshots

Image

Additional context

In this project, build artifacts are intentionally tracked in Git due to deployment requirements. They cannot be added to .gitignore, as automated deployment scripts rely on committing these artifacts. Therefore, ignoring the build output is not a viable workaround.

Metadata

Metadata

Assignees

Labels

bugConfirmed bugs or reports that are very likely to be bugspriority-3Bugs that affect small number of users and/or relatively cosmetic in nature

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions