# Agents Window cannot open Git repository

**URL:** <https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902>\
**Category:** Bug Reports\
**Tags:** agents-window\
**Created:** [May 18, 2026, 9:01am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902 "2026-05-18T09:01:10Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [May 18, 2026, 9:01am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/1 "2026-05-18T09:01:10Z")

</div>

### 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

 ![ScreenShot_2026-05-18_170052_373.png](https://us1.discourse-cdn.com/cursor1/original/3X/0/a/0a5bd92d0a77f6ecc17d100ef59bd8e93ca17e56.png)

### 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

---

<div class="post-metadata">

**Author:** ![scolari](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@scolari](https://forum.cursor.com/u/scolari)\
**Post date:** [May 18, 2026, 7:59pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/5 "2026-05-18T19:59:34Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 18, 2026, 9:10pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/9 "2026-05-18T21:10:04Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 18, 2026, 9:15pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/10 "2026-05-18T21:15:32Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [May 21, 2026, 8:12am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/11 "2026-05-21T08:12:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![\_Hui\_Ye](https://avatars.discourse-cdn.com/v4/letter/_/71e660/32.png) [@\_Hui\_Ye](https://forum.cursor.com/u/_Hui_Ye)\
**Post date:** [May 21, 2026, 12:19pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/12 "2026-05-21T12:19:45Z")

</div>

same issue on mac

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 21, 2026, 6:33pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/13 "2026-05-21T18:33:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![NikXpro](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/nikxpro/32/109447_2.png) [@NikXpro](https://forum.cursor.com/u/NikXpro)\
**Post date:** [May 23, 2026, 8:57am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/14 "2026-05-23T08:57:50Z")

</div>

Same issue too.

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [May 28, 2026, 10:11am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/15 "2026-05-28T10:11:16Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [May 28, 2026, 7:35pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/16 "2026-05-28T19:35:09Z")

</div>

Correct, this has not been fixed yet

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [June 7, 2026, 12:00pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/17 "2026-06-07T12:00:31Z")

</div>

Why hasn’t this bug been fixed yet?

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [June 18, 2026, 1:28am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/19 "2026-06-18T01:28:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![kevinn](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/kevinn/32/101206_2.png) [@kevinn](https://forum.cursor.com/u/kevinn)\
**Post date:** [June 18, 2026, 1:43am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/21 "2026-06-18T01:43:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 19, 2026, 10:45am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/24 "2026-06-19T10:45:11Z")

</div>

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+?)

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [June 19, 2026, 11:24am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/26 "2026-06-19T11:24:33Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/4/f/4fef3605c98df308b03238bd891f17a6d6e17801.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 23, 2026, 10:35am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/27 "2026-06-23T10:35:55Z")

</div>

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?

 ![Screenshot 2026-06-23 at 12.34.27](https://us1.discourse-cdn.com/cursor1/original/3X/6/4/64a50c082d96d0fff56c0a09e3dd3ebf5970821a.png)

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

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [June 23, 2026, 11:15am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/28 "2026-06-23T11:15:42Z")

</div>

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

```auto
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 <abc@def.com>
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)

```

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 23, 2026, 11:19am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/29 "2026-06-23T11:19:35Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![codepower](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@codepower](https://forum.cursor.com/u/codepower)\
**Post date:** [June 24, 2026, 1:57am UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/30 "2026-06-24T01:57:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Colin](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/colin/32/90452_2.png) [@Colin](https://forum.cursor.com/u/Colin)\
**Post date:** [June 25, 2026, 1:10pm UTC](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902/34 "2026-06-25T13:10:22Z")

</div>

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.

[Next page](https://forum.cursor.com/t/agents-window-cannot-open-git-repository/160902.md?page=2)
