You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Github Desktop change list incorrectly renders with 50,000+ changes #21630
bugConfirmed bugs or reports that are very likely to be bugsinvestigation-neededLikely bugs, but haven't been reliably reproduced by a reviewerpriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
When Github Desktop loads a list of changes that has excessive numbers (I'm moving the file system to GIT for versioning and sharing), the bottom of the list seems to rise as one scrolls down.
It has the appearance of "cutting off", but the changes are still there.
I'd really just like to report the bug, this doesn't seem like a very standard test case.
Windows 10, Github Desktop, the only extension is Large File Storage.
Thank you for your issue! Unfortunately, we are unable to reproduce the issue you are experiencing. Please provide more information so we can help you.
Here are some tips for writing reproduction steps:
Step by step instructions accompanied by screenshots or screencasts are the best.
Be as specific as possible; include as much detail as you can.
If not already provided, include:
the version of the application you are using.
the operating system you are using
any environment factors you can think of.
any custom configuration you are using.
a log file from the day you experienced the issue (access log files via Help > Show Logs in Finder/Explorer).
If relevant and can be shared, provide the repository or code you are using.
I created a .txt file with "This is only a test.
In the event of an actual text document, this would have words."
Then copied it 9 times to make a folder with 10 files.
I copied that folder 10 times to make a folder with 100 files.
I copied that folder 10 times to make a folder with 1000 files.
I copied that folder 10 times to make a folder with 10,000 files.
I copied that folder 5 times to make a folder with 50,000 files.
Symptom was exhibited.
I removed 1 of the 10,000 file folders, and the symptom is no longer exhibited.
I replaced the 10,000 file folder and the symptom is exhibited.
If the virtual box system is too clean or performative, then I recommend adding more files until the symptom is exhibited.
I had tried with over 60K files in the same directory. Can you please tell me how is the structure of your repo directory? I mean, are all files in the root or are they spread over nested dirs?
As explained in my previous comment, I made folders of 10 files.
Those 10 folders are in a folder to make a 100 file folder.
Those 100 folders are in a folder to make a 1000 file folder.
Those 1000 folders are in a folder to make a 10,000 file folder.
So at the root of the repository, there are 5 folders for the 10,000 level, in each of those 10 folders, recursively until you get down to 10 files in a folder.
Additionally, I copied and pasted the 10 files up to 60,000 (apologies, got distracted at 30,000 and doubled it): the structure has no bearing on the symptom.
I tossed this to Copilot and it found that there's a twofold problem with our SectionList and React virtualized scaling when the list height exceeds 1.5M pixels
Root Cause
The bug is caused by incorrect browser detection in react-virtualized's maxElementSize.js, compounded by a double offset adjustment in the
two-level Grid architecture used by SectionList.
How it works
maxElementSize.js (in react-virtualized) detects Chrome via window.chrome.webstore, which was removed from Chrome in 2018. Since Electron
doesn't have this property either, it falls back to DEFAULT_MAX_ELEMENT_SIZE = 1,500,000px instead of the Chromium limit of ~16.7M pixels.
The changes list uses SectionList with one section containing all items. At 29px/row, the threshold is ~51,725 items (1,500,000 ÷ 29).
Beyond this, react-virtualized's ScalingCellSizeAndPositionManager activates scaling.
SectionList uses a two-level Grid — an outer Grid rendering sections, each containing an inner Grid rendering rows. When scaling
activates, both Grids independently apply verticalOffsetAdjustment to compress positions. These adjustments compound:
The outer Grid shifts the section cell up by N pixels
The inner Grid also shifts its rows up by N pixels
The result is rows displaced by 2N pixels from where they should be
Additionally, the inner Grid's style is { ...params.style, width: '100%' } where params.style.height is the unscaled section height (e.g.
1.74M). This overrides the Grid's own height in _extends({}, gridStyle, style), causing the inner Grid's DOM element to be taller than its
scaled content container — breaking the scroll relationship.
Visual effect
At scrollTop=0, both adjustments are 0 so everything renders. As the user scrolls, the adjustment grows linearly, pushing rendered rows
progressively higher above the viewport — making the visible area shrink from the bottom until nothing is visible.
bugConfirmed bugs or reports that are very likely to be bugsinvestigation-neededLikely bugs, but haven't been reliably reproduced by a reviewerpriority-3Bugs that affect small number of users and/or relatively cosmetic in nature
Activity
benjaminhampe commentedon Feb 22, 2026
Same bug here.
The more i scroll down the less lines are drawn until there are zero lines drawn anymore
Never had this problem before.
Win11 x64 3.5.4
github-actions commentedon Feb 23, 2026
Thank you for your issue! Unfortunately, we are unable to reproduce the issue you are experiencing. Please provide more information so we can help you.
Here are some tips for writing reproduction steps:
Help>Show Logs in Finder/Explorer).babakks commentedon Feb 23, 2026
Hi @benjaminhampe and @Kamurai, I tried to reproduce this on a VirtualBox machine and was not successful, hence the unable-to-reproduce label.
So, we'll appreciate it if you could provide us with more details to reproduce this. 🙏
Kamurai commentedon Feb 23, 2026
I'll try to remember to circle back to this.
The original scenario was that easy, granted mine was mostly pictures.
Kamurai commentedon Feb 23, 2026
I created a .txt file with "This is only a test.
In the event of an actual text document, this would have words."
Then copied it 9 times to make a folder with 10 files.
I copied that folder 10 times to make a folder with 100 files.
I copied that folder 10 times to make a folder with 1000 files.
I copied that folder 10 times to make a folder with 10,000 files.
I copied that folder 5 times to make a folder with 50,000 files.
Symptom was exhibited.
I removed 1 of the 10,000 file folders, and the symptom is no longer exhibited.
I replaced the 10,000 file folder and the symptom is exhibited.
If the virtual box system is too clean or performative, then I recommend adding more files until the symptom is exhibited.
babakks commentedon Feb 23, 2026
I had tried with over 60K files in the same directory. Can you please tell me how is the structure of your repo directory? I mean, are all files in the root or are they spread over nested dirs?
Kamurai commentedon Feb 23, 2026
As explained in my previous comment, I made folders of 10 files.
Those 10 folders are in a folder to make a 100 file folder.
Those 100 folders are in a folder to make a 1000 file folder.
Those 1000 folders are in a folder to make a 10,000 file folder.
So at the root of the repository, there are 5 folders for the 10,000 level, in each of those 10 folders, recursively until you get down to 10 files in a folder.
Additionally, I copied and pasted the 10 files up to 60,000 (apologies, got distracted at 30,000 and doubled it): the structure has no bearing on the symptom.
babakks commentedon Feb 26, 2026
Thanks, @Kamurai! I think I was able to reproduce it but I'm not sure how reliable this method is , or how much it depends on the setup/environment.
My setup:
What I did:
git initHere's the screen recording of the above steps:
gh-desktop-file-changes-too-long-repro.mp4
gh-desktop-file-changes-too-long.mp4
FWIW you can use this bash (git-bash) one-liner to create the files:
babakks commentedon Feb 26, 2026
Also, it still happens even if you scroll down slowly, or use Down or Page Down keys.
niik commentedon Apr 20, 2026
I've verified that this reproduces on macOS as well as Windows.
niik commentedon Apr 20, 2026
I tossed this to Copilot and it found that there's a twofold problem with our SectionList and React virtualized scaling when the list height exceeds 1.5M pixels
Root Cause
The bug is caused by incorrect browser detection in react-virtualized's maxElementSize.js, compounded by a double offset adjustment in the
two-level Grid architecture used by SectionList.
How it works
doesn't have this property either, it falls back to DEFAULT_MAX_ELEMENT_SIZE = 1,500,000px instead of the Chromium limit of ~16.7M pixels.
Beyond this, react-virtualized's ScalingCellSizeAndPositionManager activates scaling.
activates, both Grids independently apply verticalOffsetAdjustment to compress positions. These adjustments compound:
1.74M). This overrides the Grid's own height in _extends({}, gridStyle, style), causing the inner Grid's DOM element to be taller than its
scaled content container — breaking the scroll relationship.
Visual effect
At scrollTop=0, both adjustments are 0 so everything renders. As the user scrolls, the adjustment grows linearly, pushing rendered rows
progressively higher above the viewport — making the visible area shrink from the bottom until nothing is visible.
Key files
Potential fixes
items
Kamurai commentedon Apr 20, 2026
I can't say this is outright wrong, but this is for a standalone app, not a browser, unless the GITHub Desktop app has a browser in it?
niik commentedon Apr 21, 2026
GitHub Desktop is built on Electron which is based on Chromium so in a way GitHub Desktop is a browser 😄
Kamurai commentedon Jul 16, 2026
Was code actually implemented to fix this, or are we just done talking about it?