Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When multiple Cursor agent/chat sessions are open on the same workspace, opening or switching a different git branch in one session silently changes the active branch metadata (and sometimes the working tree context) for other already-open sessions.
This happens without an explicit checkout in the affected session. The UI branch indicator and agent tooling (e.g. SetActiveBranch / merge-base diffs / PR context) can flip to the other session’s branch while the user still believes they are on the original branch.
Impact: agents and humans can edit, commit, or review against the wrong branch; Multitask/background workers inherit the wrong branch context; recovery requires manually re-asserting the intended branch.
Steps to Reproduce
- Open Session A on branch
main(or any branch) and leave it open. - Start a new Session B that checks out or is associated with a different branch (e.g. a feature branch).
- Return to Session A without manually changing branches.
- Observe Session A’s branch indicator / agent branch metadata — it has silently switched to Session B’s branch.
Expected Behavior
Session A remains on its original branch (main). Branch association is per-session (or at least does not change silently without user confirmation).
Operating System
MacOS
Version Information
Version: 3.10.20
Commit: 23b9fb205fe595ea2be29da7214e19762d037fc0
Arch: arm64
OS: macOS (darwin 25.5.0)
For AI issues: which model did you use?
Grok 4.5 (parent); Composer 2.5 (subagents)
Additional Information
Actual
Session A’s UI and/or working context silently switches to Session B’s branch. The user only notices later (e.g. branch indicator in the session UI). Git checkout may or may not have changed; the session branch metadata and UI can diverge from user intent.
Impact
- Agents may edit/commit on the wrong branch
- Review/fix loops can land work on unintended branches
- Risk of data loss or hard-to-recover branch confusion when multiple sessions run in parallel
Notes
- Reproduced across multiple sessions in the same workspace
- User did not request a branch switch in the older sessions
- Please treat as high severity: silent branch changes across sessions
- Observed with Multitask / background agents and SetActiveBranch / merge-base UI metadata
- Observing this for past 1 month at least
Does this stop you from using Cursor
YES
Screenshot:
