Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
With no agent running and every IDE window closed, the Agents window alone keeps Cursor at about 4 CPU cores. The Agents window renderer and the main process do all of it. The cause looks like the Claude Code conversation import: the main process keeps opening Claude Code transcript files under ~/.claude/projects/, some of them hundreds of MB, while nothing changes in the UI.
Measurements (macOS top, 31 samples 10 s apart, Cursor idle, no agent chat running, IDE windows closed):
| Process | %CPU min / median / max |
|---|---|
| All Cursor processes together | 148 / 440 / 574 |
| Agents window renderer | 106 / 351 / 482 |
| Main process | 40 / 63 / 123 |
| Every other Cursor process | below 12 each |
- Main process: in 15
lsof -p <main pid>snapshots over about 5 seconds, it opened 14 different Claude Code transcripts (~/.claude/projects/<project>/<session>.jsonl), each seen in only one or two snapshots, so opened and closed in between. Their sizes: 0.5, 0.8, 2.7, 12, 12, 19, 22, 50, 52, 52, 219, 242, 310 and 659 MB. Several belong to Claude Code sessions running in a terminal, so they grow all the time. My~/.claude/projectsholds 3,598 transcripts (20 GB). Insample <main pid>, the libuv worker threads spend their non-idle time inread(). - Agents window renderer: in a 3 s
sample, its main thread was busy in 2,075 of 2,163 samples. Its resident memory went 1.88 GB → 2.73 GB → 1.32 GB within 10 seconds (peak footprint 5.6 GB). The hot native frames are buffer allocation and copies (memmove,ArrayBuffer::New,Buffer::New,bzero,mmap), and about a dozen V8 worker threads are each 25-30% busy. That looks like large payloads parsed and dropped over and over. - The load is not constant. About 3 minutes into the measurement it started to fall without any setting change, and a later 1-minute sample read a median of 47% total, with fewer transcript opens (6 in 15 s instead of 14 in 5 s). My guess is that the import re-reads a whole transcript whenever it changes, so the cost follows how many large Claude Code sessions are writing at the moment.
The feature is Cursor Settings → Third-Party Imports → “Import Claude Code Conversations” (“Sync chats and continue them in Cursor”). In the bundle it reads the importClaudeCodeAgents storage key, with its default taken from the import_cc_conversation_default flag, so it may be on for users who never enabled it.
Steps to Reproduce
- Use Claude Code on the same machine for a while, so that
~/.claude/projects/holds many transcripts, some over 100 MB, and keep one or two Claude Code sessions running in a terminal so their transcripts keep growing. - Make sure Cursor Settings → Third-Party Imports → “Import Claude Code Conversations” is on.
- Open Cursor with only the Agents window. Start no agent, do not type.
- Watch
top -o cpu: the Agents window renderer and the main process stay at several cores. lsof -p <main pid> | grep .claude/projects, repeated a few times a second, shows transcripts being opened again and again.
Expected Behavior
The import costs close to nothing while idle. Claude Code transcripts are append-only JSONL, so a transcript can be read incrementally from the last offset, and only when the file changes. Very large transcripts are capped or skipped, and the renderer gets only the new entries instead of whole conversations again.
Operating System
MacOS
Version Information
Version: 3.25.9
VSCode Version: 1.128.0
Commit: 5d4df965746c5d09740842fc0f1331ba1c157830
Date: 2026-10-15T21:52:24.891Z
Electron: 42.10.0
Chromium: 148.0.7778.280
OS: Darwin arm64 25.3.0 (macOS 26.3.1)
Additional Information
state.vscdbdoes not look like the driver: real disk I/O of every Cursor process is near zero (the transcripts are in the page cache), and the main-process stacks show almost no SQLite work in 3 seconds.- All measurements were read-only:
top,ps,sample,lsof,vmmap, andproc_pid_rusagedisk counters. - I have not yet switched the setting off to confirm. I will add the before/after numbers here when I do.
Does this stop you from using Cursor
No - Cursor works, but with this issue