Agents/Glass UI reports wrong branch

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

In the new UI, branch handling can be very confusing.

Here is my buggy state: (see screenshots)

As you can see the UI is stuck on the wrong branch and is not picking up the existing PR either when it should.

Steps to Reproduce

I got here as follows

  1. New agent 1 and branch in main repo, work, create pr
  2. New agent 2in HOME folder, agent decides to create a branch forking from the current and commits there
  3. I switch to agent 2 and see that I am now on the new branch so I ask it to return to the old one. Git works, agent does, but UI doesn’t pick it up

Expected Behavior

  • The UI should refresh along git.
  • Also the UI should guide the user better to create completely fresh branches (from remote master, not from whatever is local) with the chips and let user choose between new branch in existing repo/worktree or new worktree

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.1.15
VSCode Version: 1.105.1
Commit: 3a67af7b780e0bfc8d32aefa96b8ff1cb8817f80
Date: 2026-04-15T01:46:06.515Z
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

For AI issues: which model did you use?

Opus 4.7

Does this stop you from using Cursor

Yes - Cursor is unusable

Hi Alexandros!

This is a known bug in the Glass layout. The branch label in the diff header shows a stored snapshot from when the conversation was created, rather than the live git branch, so it doesn’t update when you or the agent switches branches externally. The PR detection has the same root cause – it looks at the stored branch association rather than the current one.

A few other users have reported the same class of issue:

The team is actively working on improving branch visibility and management in Glass. For now, switching to the Editor view (which you can do from the layout picker) gives you the standard branch/git UI as a workaround.

1 Like