Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
I have several sibling git repos (childA, childB, childC) under one parent directory. I open a multi-root workspace from that parent, with each child listed in folders.
When I do that, only the first entry (childA) is treated as the effective workspace root:
Agent write access works only in childA (source files and .git). I can read the other repos, but writes fail.
Git Graph commit details work only when I click commits belonging to childA. Clicks on childB / childC nodes fail to load commit info.
Workaround: add a prefix folder { “name”: “parent”, “path”: “.” } as the first entry. That restores agent write access across all children, but breaks Git Graph commit inspection for every child repo — git show runs from the parent path, which is not a git repository.
Steps to Reproduce
- Create a parent directory with three sibling git repos, e.g. parent/childA, parent/childB, parent/childC (each with its own .git and at least a few commits).
- Create parent/parent.code-workspace:
{
“folders”: [
{ “path”: “childA” },
{ “path”: “childB” },
{ “path”: “childC” }
]
} - Open that workspace in Cursor (File → Open Workspace from File…).
Bug A — Agent git access + Git Graph details broken for all but first repo
-
In Agent mode, ask the agent to create or edit a file in childB (or run git status / git commit there).
-
Observe: read works; write fails (Operation not permitted or similar).
-
Repeat for childC — same result.
-
Repeat for childA — write succeeds.
-
Open Git Graph (or Source Control graph) for childB.
-
Click a commit node that belongs to childB.
-
Observe: commit details fail - error text shown in tab
-
Click a commit node in childA’s graph.
-
Observe: commit details load correctly.
Bug B — Parent prefix workaround breaks Git Graph for all children
- Edit the workspace to put a non-git parent first:
{
“folders”: [
{ “name”: “parent”, “path”: “.” },
{ “path”: “childA” },
{ “path”: “childB” },
{ “path”: “childC” }
]
}
14. Reload the window.
15. In Agent mode, edit a file or run git in childB / childC — writes should now succeed.
16. Open Git Graph for childA, childB, or childC.
17. Click any commit node in any of those graphs.
18. Observe: commit details fail - error text shown in tab
Expected Behavior
Cursor should switch cwd to childX depending upon the repo where the activity is occurring, there should be no need for a paren entry in the workspace folders list.
Operating System
MacOS
Version Information
Version: 3.7.36 (Universal)
VS Code Extension API: 1.105.1
Commit: 776d1f9d76df50a4e0aeca61819a88e7c1b861e0
Date: 2026-06-13T00:31:56.287Z
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
xterm.js: 6.1.0-beta.256
OS: Darwin arm64 25.5.0
Does this stop you from using Cursor
No - Cursor works, but with this issue