Agents Window opens wrong chat after GlassTabPersistence promote_noop

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Where: Cursor IDE — Agents Window / Glass
OS: macOS
Version: 3.24.12 (37b865941ccb31e2fc90c685157534efca87f960)

Bug: Clicking a history chat opens a different conversation. Target chat data is fine on disk.

  • Wanted: af001ce2-0559-4f9a-bfc1-82e0b8c873a7 (“LocalDiffChanges token usage”, 5 turns)
  • Also loaded on reopen: 0aaf666e-1335-412b-8ab9-12d68cf4d018 (“Navigator location issue”)

Actual: Wrong focus; phantom draft promoted into real ID.

Logs:

ensureLoaded: 8f602d31-… is not a loadable session (draft, ephemeral, phantom…); not hydrating

GlassTabPersistenceService migration_tab_transition.promote_noop
  sourceAgentId=8f602d31-f393-461a-8ea3-05f41d942c60
  targetAgentId=af001ce2-0559-4f9a-bfc1-82e0b8c873a7
  reason=no_tabs_or_active_fallback_to_promote
  activeTabKind=browser

Agent store for af001ce2 is kind: self; transcript exists once — UI/handoff bug, not missing data.

Related: Agents Window opens a second chat for work already running
Agents Window opens focused on another workspace/thread

Steps to Reproduce

Repro: Agents Window + multi-root workspace → create/use a chat → later click it in history → wrong chat focuses.

Can attach more renderer.log if needed.
Does not block Cursor; history navigation is unreliable.

Expected Behavior

Expected: Open exact conversation ID.

Operating System

MacOS

Version Information

Cursor IDE 3.24.12
Commit: 37b865941ccb31e2fc90c685157534efca87f960
macOS

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey @TrembakAndrii, thanks for the report and the IDs.

Both conversations are intact on our side, so nothing is lost. The two log lines you pasted are normal: they’re written once when a New Agent draft is sent and becomes a real chat (that’s how the “LocalDiffChanges token usage” chat was created). They don’t change which chat gets focused, so the cause is somewhere else.

To pin it down, could you try this and tell us what you see?

  1. Fully quit Cursor (Cmd+Q) and reopen it on the same multi-root workspace.
  2. Open the Agents Window.
  3. Click “New Chat” so the New Agent page is showing.
  4. Open a browser tab in the right-hand panel (your log showed one was active).
  5. Type a short prompt and send it, then wait for the reply.
  6. Click a different, older chat in the sidebar.
  7. Click the chat you created in step 5.

Does step 7 open the chat you clicked, or a different one? Also, does the wrong chat show up right after a click, or only after you restart Cursor?

If it reproduces, please also tell us:

  • Where you clicked: the sidebar list, the chat search, or somewhere else
  • Whether the chat title at the top matches the conversation that loaded
  • The renderer.log lines from a minute before and after the wrong click (Cmd+Shift+P, then “Developer: Open Logs Folder”)