Agents Window cannot open Git repository

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The Agents Window are unable to open the Git repository—this affects all projects. However, the Editor Window can open it, indicating that the issue does not lie with the Git repository itself.

Steps to Reproduce

Open Panel

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.4.20 (user setup)
VSCode Version: 1.105.1
Commit: 0cf8b06883f54e26bb4f0fb8647c9500ccb43310
Date: 2026-05-15T02:26:10.351Z
Layout: editor
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Windows_NT x64 10.0.19045

Does this stop you from using Cursor

No - Cursor works, but with this issue

Exactly the same issue for me too, which is super annoying, as it also means I don’t get the summary in the chat to review.

This needs fixing ASAP!

Sorry about this! We’re working to fix this and should have an update soon. The fix is in progress, and we’ll let you know when it’s done.

While we work on the fix, the safest workaround is to open an Editor Window for Git operations: `Ctrl+Shift+P` → `Open Editor Window`. You can also use Git from the terminal or another Git client to review and commit changes.

We’ll update this thread once the fix is available.

The new version (3.5.17) still hasn’t fixed this bug.

same issue on mac

We’ll let you know when it’s fixed!

Same issue too.

In today’s new version (3.5.38), this bug still hasn’t been fixed.

Correct, this has not been fixed yet

Why hasn’t this bug been fixed yet?

This bug still exists; why hasn’t this important yet simple bug been fixed after a month?

Hi @codepower Thanks for following up. We do have a lot of competing priorities to balance including new features, and bug reports etc. It is a delicate balance and we strive to get it right.

We do need to ruthlessly prioritize bugs in order of severity, customer impact, and workarounds. E.g. if there are workarounds available, we might not rush to fix the issue. In this case we are aware of the bug, it is currently being tracked and in the queue to be fixed.

But given that there is an easy workaround (use git in the IDE view or use terminal) that may help to explain why a fix has not been rushed out for it.

Hey @codepower,

We’ve shipped some fixes in this area since you posted, could you confirm whether the empty Source Control panel (Cursor not recognizing your git repos in the Agents Window) still happens on the latest version (3.8.11+?)

Hi, I’ve updated to version 3.8.11, but the Agent window still fails to recognize the Git repository, as shown in the image below.

Thanks @codepower! We probably fixed some flavor of this, but not your specific one.

To help us learn more about why it’s failing, could you open a new Output window (Ctrl + Shift + P > New Output View) and navgiate to the Git output of the workspace you have open?

Let us know if you see any failures, and share them here.

Hi @Colin, the content in the panel is as follows:

2026-06-23 12:03:41.633 [info] [Model][doInitialScan] Initial repository scan started
2026-06-23 12:03:41.634 [info] [Model][doInitialScan] Initial repository scan completed - repositories (0), closed repositories (0), parent repositories (0), unsafe repositories (0)
2026-06-23 12:03:44.794 [info] > git config --get remote.origin.url [1886ms] 
2026-06-23 12:03:45.097 [info] > git log --skip=0 --max-count=1 --pretty=format:%H [292ms] 
2026-06-23 12:03:45.097 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:45.119 [info] > git symbolic-ref --short refs/remotes/origin/HEAD [302ms] 
2026-06-23 12:03:45.119 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:45.182 [info] > git config --get remote.origin.url [372ms] 
2026-06-23 12:03:46.667 [info] > git rev-parse --show-toplevel [1432ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.673 [info] > git rev-parse --show-toplevel [1481ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.673 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:46.674 [info] > git rev-parse --show-toplevel [1495ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.674 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:46.674 [info] > git rev-parse --show-toplevel [1470ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.678 [info] > git rev-parse --show-toplevel [1447ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.681 [info] > git rev-parse --show-toplevel [1483ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.685 [info] > git rev-parse --show-toplevel [1459ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.689 [info] > git rev-parse --show-toplevel [1468ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.692 [info] > git rev-parse --show-toplevel [1453ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.696 [info] > git rev-parse --show-toplevel [1487ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:03:46.699 [info] > git rev-parse --verify origin/main [1574ms] 
2026-06-23 12:03:46.699 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:48.678 [info] > git config --get remote.origin.url [1986ms] (getGitRemoteUrl)
2026-06-23 12:03:48.679 [info] > git config --get remote.origin.url [1984ms] (getGitRemoteUrl)
2026-06-23 12:03:48.679 [info] > git rev-parse --verify origin/master [1973ms] 
2026-06-23 12:03:48.679 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:48.686 [info] > git config --get remote.origin.url [2008ms] (getGitRemoteUrl)
2026-06-23 12:03:48.686 [info] > git config --get remote.origin.url [2013ms] (getGitRemoteUrl)
2026-06-23 12:03:48.686 [info] > git config --get remote.origin.url [1998ms] (getGitRemoteUrl)
2026-06-23 12:03:48.687 [info] > git config --get remote.origin.url [1988ms] (getGitRemoteUrl)
2026-06-23 12:03:48.687 [info] > git config --get remote.origin.url [2006ms] (getGitRemoteUrl)
2026-06-23 12:03:48.687 [info] > git config --get remote.origin.url [2002ms] (getGitRemoteUrl)
2026-06-23 12:03:49.562 [info] > git rev-parse --verify origin/develop [877ms] 
2026-06-23 12:03:49.562 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:50.587 [info] > git branch -r [1003ms] 
2026-06-23 12:03:50.587 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:50.593 [info] > git remote get-url --push origin [1164ms] 
2026-06-23 12:03:50.593 [info] fatal: not a git repository (or any of the parent directories): .git
2026-06-23 12:03:50.753 [info] > git config --get init.defaultBranch [160ms] 
2026-06-23 12:03:53.361 [info] > git config --global user.name [1600ms] 
2026-06-23 12:03:54.107 [info] > git config --global user.email [732ms] 
2026-06-23 12:03:54.107 [info] [main] Stored git author name in global state: abc <[email protected]>
2026-06-23 12:05:32.065 [info] > git rev-parse --show-toplevel [285ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.124 [info] > git rev-parse --show-toplevel [331ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.155 [info] > git rev-parse --show-toplevel [354ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.159 [info] > git rev-parse --show-toplevel [375ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.193 [info] > git rev-parse --show-toplevel [373ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.209 [info] > git rev-parse --show-toplevel [421ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.231 [info] > git rev-parse --show-toplevel [434ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.237 [info] > git rev-parse --show-toplevel [427ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.241 [info] > git rev-parse --show-toplevel [435ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.246 [info] > git rev-parse --show-toplevel [432ms] (getGitRepoPathForWorkspacePath)
2026-06-23 12:05:32.312 [info] > git config --get remote.origin.url [243ms] (getGitRemoteUrl)
2026-06-23 12:05:32.420 [info] > git config --get remote.origin.url [261ms] (getGitRemoteUrl)
2026-06-23 12:05:32.421 [info] > git config --get remote.origin.url [293ms] (getGitRemoteUrl)
2026-06-23 12:05:32.449 [info] > git config --get remote.origin.url [286ms] (getGitRemoteUrl)
2026-06-23 12:05:32.479 [info] > git config --get remote.origin.url [270ms] (getGitRemoteUrl)
2026-06-23 12:05:32.710 [info] > git config --get remote.origin.url [468ms] (getGitRemoteUrl)
2026-06-23 12:05:32.710 [info] > git config --get remote.origin.url [460ms] (getGitRemoteUrl)
2026-06-23 12:05:32.710 [info] > git config --get remote.origin.url [474ms] (getGitRemoteUrl)
2026-06-23 12:05:32.710 [info] > git config --get remote.origin.url [466ms] (getGitRemoteUrl)
2026-06-23 12:05:32.710 [info] > git config --get remote.origin.url [497ms] (getGitRemoteUrl)
  1. Is this a single root or a multi-root workspace?
  2. Are you using Remote SSH?
  3. If you open a terminal in that workspace (in the Agents Window) and run git log --skip=0 --max-count=1 --pretty=format:%H, what’s the output?
  1. Is this a single root or a multi-root workspace?
    multi-root workspace

  2. Are you using Remote SSH?
    no

  3. If you open a terminal in that workspace (in the Agents Window) and run git log --skip=0 --max-count=1 --pretty=format:%H, what’s the output?
    a1b2c3d4e5f6789012345678901234567890abcd

@Colin

Thanks @codepower

Booted up the old Windows VM and I can reproduce this (on both single and multi-root workspaces). I’ve filed a fresh bug report with the team.