Describe the Bug
I use Cursor on Windows, and use WSL and the WSL VSCode extension to code and test on a Linux environment that matches the other devs at my company.
I would like to configure my snapshots for background agents, but the Background Agents section of Cursor Settings says “Background agents only work in folders with a git repository.” and deny further access to these config options. My folder does have a git repository.
If I create a similar folder in a Windows directory and sync the repository there, Cursor unlocks these config options for me, but that doesn’t work for the rest of my development flow. It appears to be an issue with detecting the git client when on WSL. I have no trouble actually spawning and using background agents in this environment–the Cursor Settings module just won’t let me configure them in detail.
Steps to Reproduce
- Use Windows
- Install Cursor and WSL
- Sync a git repo to a folder in WSL
- Open that repo in Cursor
- Cursor Settings > Background Agents
Expected Behavior
I expect to have access to the full Background Agent configuration, including snapshot management. Instead, I get told that my folder does not have a git repository, which is false.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.2.4 (user setup)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T17:09:01.383Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.26100
Does this stop you from using Cursor
No - Cursor works, but with this issue