Worktree change count

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor is adding the changes across all the git worktrees of a repo and showing it on the git bubble count

Steps to Reproduce

  1. Create multiple worktrees in a repo.
  2. Make few changes in different files in those worktrees.
  3. See the count on source control (ctrl+shift+G) bubble.

Expected Behavior

Source control bubble should show only the changes of the selected worktree

Operating System

MacOS

Version Information

Version: 3.7.12
VS Code Extension API: 1.105.1
Commit: b887a26c4f70bd8136bfffeda812b24194ec9ce0
Date: 2026-06-05T01:45:12.918Z
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

hey @rgudivada, thanks for the post, we will check on this, tho would you mind sharing some screenshot of the comportment that is happening right now? Tho, good catch, the SCM badge shouldn’t be summing changes across every worktree in the repo. And as of my testing, I was able to reproduce the issue too.

Thanks for the clear repro steps! As @Tom_Coustols noted, we were able to reproduce this on our end - the Source Control badge is summing changes across every worktree of the repo instead of just the active one.

While we dig into it, you can make the badge reflect only the worktree you’re currently in by adding this to your settings.json:

"scm.countBadge": "focused"

That switches the badge from “sum of all detected repositories” (the default) to just the focused one, which matches what you’re after. You can revert to "all" (or use "off") whenever you like.

We’ll keep tracking it from here.