Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
The Cursor UI showed the wrong active Git branch in the status bar (displayed main) while the repository was actually checked out on staging. Integrated terminal output from Git matched staging (git branch --show-current, git status -sb). After restarting Cursor, the UI matched Git again. Single-folder workspace, one repo root.
Steps to Reproduce
- Open a local Git repo in Cursor (single workspace folder).
- Check out branch
staging(verify in terminal:git branch --show-current). - Compare branch name shown in the Cursor status bar / SCM UI with Git output.
- (Optional) Have GitHub PR / diff views open; unclear if related.
- Observe mismatch; restart Cursor and compare again.
Expected Behavior
The branch shown in the UI (status bar / source control) should always match the current HEAD branch reported by Git in the same workspace.
Operating System
MacOS
Version Information
Version: 3.2.11
VSCode Version: 1.105.1
Layout: glass
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: Darwin arm64 25.3.0
Does this stop you from using Cursor
No - Cursor works, but with this issue