-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Code Review hangs and shows millions of diff lines for a WSL Git repository #10193
Copy link
Copy link
Open
Labels
area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.Git diff views, review UI, review comments, and PR-focused agent flows.area:performanceGeneral application performance, responsiveness, and resource usage.General application performance, responsiveness, and resource usage.bugSomething isn't working.Something isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.More issue-specific reporter detail is needed before the problem can be confidently triaged.os:windowsWindows-specific behavior, regressions, or requests.Windows-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Metadata
Metadata
Assignees
Labels
area:code-reviewGit diff views, review UI, review comments, and PR-focused agent flows.Git diff views, review UI, review comments, and PR-focused agent flows.area:performanceGeneral application performance, responsiveness, and resource usage.General application performance, responsiveness, and resource usage.bugSomething isn't working.Something isn't working.needs-infoMore issue-specific reporter detail is needed before the problem can be confidently triaged.More issue-specific reporter detail is needed before the problem can be confidently triaged.os:windowsWindows-specific behavior, regressions, or requests.Windows-specific behavior, regressions, or requests.repro:mediumThe report suggests a plausible repro path, but some uncertainty remains.The report suggests a plausible repro path, but some uncertainty remains.triagedIssue has received an initial automated triage pass.Issue has received an initial automated triage pass.
Pre-submit Checks
Describe the bug
When using Warp on Windows with a Git repository located inside WSL, the Code Review / diff panel does not load correctly.
Initially, Warp showed a Git error related to dubious ownership / safe.directory for the WSL repository. I fixed that by adding the repository as a safe Git directory from PowerShell.
After that, the ownership error disappeared, but Warp’s Code Review panel still hangs on “Loading open changes...” and shows an extremely large diff count:
+2409976 -2409951
This does not match the actual repository state. My IDE shows only 3 changed files.
To reproduce
Open Warp on Windows.
Open a Git repository located inside WSL, for example:
\wsl$\Ubuntu\home\gp\GitHub\LE2
Try to open the Code Review / diff panel.
If the dubious ownership error appears, add the repo as a safe directory from PowerShell:
git config --global --add safe.directory '%(prefix)///WSL$/Ubuntu/home/gp/GitHub/LE2'
git config --global --add safe.directory '%(prefix)///wsl.localhost/Ubuntu/home/gp/GitHub/LE2'
Reopen Warp and try the Code Review / diff panel again.
The original ownership error no longer appears, but the Code Review panel stays stuck loading and shows millions of changed lines.
Expected behavior
Warp should correctly detect and display the actual Git changes in the repository.
In this case, it should show only the 3 modified files that are visible in my IDE and Git status, instead of calculating millions of changed lines or hanging indefinitely.
Screenshots, videos, and logs
I’m attaching:
Operating system (OS)
Windows
Operating system and version
Windows 11
Shell Version
Windows = PowerShell 7.5.5 / WSL = zsh 5.8.1 (x86_64-ubuntu-linux-gnu)
Current Warp version
v0.2026.04.29.08.57.stable_02
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
No response
Additional context
Relevant environment / command outputs:
Windows Git:
where.exe git
C:\Program Files\Git\cmd\git.exe
git --version
git version 2.51.1.windows.1
WSL Git:
which git
/usr/bin/git
git --version
git version 2.53.0
This seems related to Warp using Windows Git against a repository stored inside WSL through a UNC path.
The dubious ownership issue was resolved by adding safe.directory entries from PowerShell, but the Code Review panel still appears to miscalculate the working tree diff and hangs indefinitely.
The repository works correctly from WSL and the changes are also displayed correctly in my IDE. The issue seems specific to Warp’s Code Review / diff integration when working with a WSL-based repository from Windows.
Does this block you from using Warp daily?
No
Is this an issue only in Warp?
Yes, I confirmed that this only happens in Warp, not other terminals.
Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e
None