Add storage caps for Cursor's chat agent database

Feature request for product/service

Cursor IDE

Describe the request

Problem

With heavy overnight Agent use and many subagents, Cursor’s local SQLite DB (state.vscdb under globalStorage) grew to ~100GB+ from agent chat history, KV blobs, and checkpoints. Disk fills up. Archiving or deleting project media does not free that space, because growth is in the global chat/agent DB—not the project tree.

Request

Configurable storage management for the chat/agent DB, analogous to worktree disk controls:

  1. Size cap (e.g. 50–60GB) with automatic purge of oldest chats/blobs when exceeded, and/or
  2. Time-based retention with automatic GC

Today

Only manual: Delete Old Chats… then GC Agent KV Blobs. Worktrees have size/cleanup controls; chat DB does not. Auto-expire is on the backlog with no ETA — please prioritize a user-facing cap + auto-purge.