Deleted agents / composer sessions reappear; hundreds of empty rows in Agents list

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After deleting agents from the Agents sidebar (grouped by Today / Yesterday / Last 7 days), many sessions come back empty or accumulate again. Updating Cursor to the latest version did not fix this. At scale (~200+) the list becomes unusable.

Steps to Reproduce

Open Agents list for a workspace with many past sessions.
Delete several agents (including ones that appear empty).
Navigate away or restart Cursor / wait for sync.
Observe that many deleted sessions reappear or multiply.
Local diagnostics (read-only inspection of Cursor global state):
On macOS, composer.composerHeaders in ~/Library/Application Support/Cursor/User/globalStorage/state.vscdb contained 347 allComposers entries; 282 had isArchived: false; 292 matched a simple “no line/file edit stats” heuristic (added/removed/lines/files all zero). Multiple distinct rows shared the same display name “(no name)”, suggesting duplicate shell entries rather than one canonical row.

Expected Behavior

Deleting an agent/session should permanently remove it from the list or move it to an explicit Trash/Bin bucket and never merge it back into date groups as an empty placeholder.

Operating System

MacOS

Version Information

Version: 3.2.11 (Universal)
VSCode Version: 1.105.1
Commit: e9ee1339915a927dfb2df4a836dd9c8337e17cc0
Date: 2026-04-24T14:36:47.933Z
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
OS: Darwin arm64 25.3.0

Additional Information

Deleted items return to the list (often showing as empty or duplicate “New chat” / unnamed rows). The problem persists across app updates.

I tried renaming the agents, and then deleting them - same results
the deleted agent keep returning

this is very frustrating, and very hard to manage 300 agents

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

This is a known issue that our team is actively investigating. Deleted agent sessions and chats come back due to a bug in local state management — stale state overwrites the deletion on startup. It affects users across all platforms.

Unfortunately, there’s no reliable workaround at the moment — manually clearing caches or local storage doesn’t resolve it.

You can follow the main thread tracking this issue here: Deleted past chats will appear again after the new recent update

The diagnostic data you shared about the state.vscdb entries is helpful — thank you for taking the time to dig into that.