I am using the agent window and connect over ssh to a VM.
For development I open a folder with this rough layout:
workspace/
├── .cursor/
├── repo1/ git repo
│ ├── third-party/
│ │ └── submodule1/ git submodule of repo1
│ └── repo3/ nested git repo, gitignored, not a submodule
├── repo2/ git repo
├── worktrees/
│ ├── repo1-other-branch/ worktree of repo1
│ └── repo2-other-branch/ worktree of repo2
└── other-non-git-folders/
All of this works quite well, except the Changes tab.
The changes tab doesn’t show e.g. the repository name + branch but rather it has two dropdowns, where the first shows “workspace” N times and the second shows a subset of the checked out branches (without naming the repository name). It doesnt show all of them but rather some subset. See attached screenshots.
Steps to Reproduce
Use the described layout above and open it via ssh.
Expected Behavior
The changes dropdown(s) should show the checked out branches and label them with the repository where they are checked out. E.g. repo-1/ branch-1. That way I can select, which changes I want to see. Same for worktrees, it should just use the name of the worktree + the checked out branch.
In addition it should show all the repositories / worktrees all the time and not just a random subset.
Hey @Tobi042, thanks for the report and the screenshots!
There are two separate things going on here.
When the folder you open isn’t a Git repository itself, Cursor doesn’t scan inside it by default. Repos inside it get picked up one at a time as Git activity happens in them, which is why the list looks like a random subset (and why the worktrees may not appear at all). You can turn on a full scan:
In the Agents Window, press Ctrl+Shift+N to open an Editor Window on the same workspace.
In that window, press Ctrl+Shift+P and run “Preferences: Open User Settings (JSON)”.
Fully quit Cursor (all windows) and reconnect to the VM. The change only takes effect on the next start.
We tried this on a copy of your layout (two repos, a submodule, a gitignored nested repo and two worktrees) over SSH, and after the restart all six were listed in the Changes menu straight away.
Every entry is labeled “workspace”. That part is on our side. The Changes menus name each entry after the folder you opened instead of the repo or worktree itself. With your layout you’ll see “workspace / workspace” for repo1 and repo2, “workspace / worktrees” for both worktrees, “workspace / third-party” for the submodule and “workspace / repo1” for repo3. Until that’s fixed, the branch name shown next to the menu is the quickest way to tell which one you’re looking at. I’ve passed this to the team along with your request for “repo / branch” style labels.
One more thing you may run into: after switching between repos that contain a file with the same path (a worktree and its main repo, for example), that file’s diff can keep showing the previous repo’s content. Closing the Changes tab and reopening it with Ctrl+E brings it up to date. I’ve included that in the same report.
Hey @Tobi042, quick update on the two Changes menu issues from my earlier reply.
Labels. Each entry in the repository menu is now named after its own repo or worktree folder (for example repo1, repo2, repo1-other-branch, submodule1), and the branch menu groups use the same names.
Stale diff after switching repos. When you switch to a repo or worktree that has a file at the same path as the one you were looking at, that file now shows the selected repo’s diff right away. You won’t need to close and reopen the Changes tab with Ctrl+E anymore.
Both changes will be in an upcoming version of Cursor (3.26). You’ll still want the scan settings from my earlier reply, since those are what make every repo show up at startup.
Once you’re on a version that includes them, let me know if anything still looks off.