Duplicate Agents section shows "No agents yet"; Remove from Sidebar hides chats

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Agents sidebar showed a second section for the same local folder (only one clone on disk): one section held my real agent chats; a twin for that same project showed “No agents yet.” Removing the empty twin from the sidebar made the real chats disappear from the Agents list (chat data still present locally under the original chat id). Related to known duplicate Agents-identity bugs (forum 171949 / 166321) but trigger was not Add Folder, Save As, path migration, or move_agent_to_root beforehand.

Steps to Reproduce

Best-effort (not a clean one-click repro):

  1. Open Agents Window on an existing single-folder git workspace that already has agent chats.
  2. Work in that agent for an extended session.
  3. In a different Agents chat rooted on another repo, discuss / read files under the first project’s path (cross-workspace).
  4. Observe Agents sidebar: an empty “ · No agents yet” section appears next to the section that still has the real chats (same folder, duplicate section).
  5. Right-click the empty section → Remove from Sidebar → real chats vanish from the list (transcripts still exist under the original chat id).

Expected Behavior

Renderer log showed WorkspaceCollection “Materialized workspace” for that project with reasons: Unknown, then later Scheduled service disposal / Disposed services for the same workspace id while working in the other repo chat. Project was already listed in glass.additionalProjects under that workspace id — not a second clone on disk.

Happy to share redacted log lines or workspace id privately with Cursor staff if useful.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 3.25.9
VSCode Version: 1.128.0
Commit: 5d4df965746c5d09740842fc0f1331ba1c157830
OS: Windows_NT x64 10.0.26300

For AI issues: which model did you use?

N/A — Agents Window UI / workspace grouping (not a model-output bug)

For AI issues: add Request ID with privacy disabled

N/A

Additional Information

Renderer log showed WorkspaceCollection “Materialized workspace” for that project with reasons: Unknown, then later Scheduled service disposal / Disposed services for the same workspace id while working in the other repo chat. Project was already listed in glass.additionalProjects under that workspace id — not a second clone on disk.

Happy to share redacted log lines or workspace id privately with Cursor staff if useful.

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey @Dins, thanks for the report.

Your chats aren’t deleted. Removing the empty duplicate hid them because both entries point at the same folder, so the hide applies to both. To bring them back:

  1. In the Agents Window sidebar, hover the header row above your projects and click the folder icon with the + (Open Workspace).
  2. Pick the same project folder you had before.

That re-adds the folder and should make the chats reappear. Until this is fixed, please don’t use Remove from Sidebar on an empty duplicate. If the duplicate gets in the way, switching the sidebar’s Customize menu → Grouping to Updated lists chats without project sections.

To help us pin down the trigger, could you try this and report back?

  1. Restart Cursor and open the Agents Window.
  2. Confirm the first project shows as a single section with your chats.
  3. Open a chat in a different repo.
  4. Ask that chat to read a file in the first project, using the file’s full path.
  5. Wait about a minute after it finishes.
  6. Check whether a second, empty section for the first project appears.

If it does, let us know which Grouping option your sidebar uses, and hover both sections and tell us whether they show the same path.