Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
When I run Developer: Delete Old Chats… from the Command Palette and enter 1 (delete chats older than 1 day), the command appears to delete chats but they come back after reload.
Steps to Reproduce
- Open a project in Cursor IDE via WSL2 (Windows host → Remote - WSL).
- Have multiple chats in history, including many older than 1 day.
- Ctrl+Shift+P → Developer: Delete Old Chats…
- Enter 1.
- Wait for GC to finish (156s in my case).
- Note completion message below.
- Reload window when prompted.
- Open chat history: deleted chats are back.
Expected Behavior
- Chats older than 1 day are permanently removed.
- GC summary should be consistent (deleted count matches, live <= total).
- state.vscdb should shrink after VACUUM.
- Deleted chats should not reappear after reload.
Screenshots / Screen Recordings
Operating System
Windows 10/11
Version Information
Version: 3.13.25 (system setup)
VS Code Extension API: 1.128.0
Commit: 31e8d61c448c7472e371505838a0fe34083dad50
Date: 2026-07-28T06:17:45.069Z
Layout: IDE
Build Type: Stable
Release Track: Default
Electron: 40.10.3
Chromium: 144.0.7559.236
Node.js: 24.15.0
V8: 14.4.258.32-electron.0
xterm.js: 6.1.0-beta.256
OS: Windows_NT x64 10.0.26200
Additional Information
Exact completion message:
“Deleted 175 chat(s) older than 1 days in 1.7s. GC complete in 156.1s (GC: 138.1s, VACUUM: 17.9s): 168,516 total, 168,578 live, 0 deleted”
The first line says 175 chats were deleted, but the GC summary reports 0 deleted and live (168,578) is greater than total (168,516) (looks like a bug in the cleanup path).
state.vscdb is currently 2.20 GB and not shrinking after this operation.
Per-chat delete does work (three-dot menu → Delete removes a chat from history). Only the bulk Developer: Delete Old Chats… path seems broken for me.
I’ve attached a screen recording (GC scanning portion sped up 16x because it takes a long time in real use).
Does this stop you from using Cursor
No - Cursor works, but with this issue