Git not working in cursor's UI but works fine on WSL's terminal

Now I am not sure if cursor is the culprit here because the issue only happens when cursor is connected to windows’ WSL2 ubuntu environment.

Reproduce the bug

  1. Clean cursor installation.
  2. Get WSL extension and connect it to ubuntu
  3. Make sure git works in WSL
  4. Confirm git not working in cursor’s UI

When I click Source Control → Fetch I get this


I do not get this in ubuntu’s terminal and I do not get this in windows’ terminal.

Windows 10 + WSL2 Ubuntu
Cursor: 0.48.8
VSCode: 1.96.2

WSL Extension version: 0.81.8
VS Code version: Cursor 0.48.8 (7801■■■6824585b7f2721900066bc87c4a09b740, 2025-04-07T20:02:01.084Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Remote OS version: Linux x64 5.15.167.4-microsoft-standard-WSL2

Linking this to an issue I opened on WSL extension github: