Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Cursor repeatedly becomes severely laggy or unresponsive during long-running agent workflows.
These workflows typically run for 60–90 minutes and follow a multi-stage pipeline defined in a command and using pre-defined agents at each step:
- Brainstorm
- Implement
- Review
- Finalize
Each stage may use several subagents. The agents also create multiple Git branches, commit changes, and switch between branches while working.
The affected process is consistently the workspace’s renderer—not an extension host, terminal, test process, or language server. Renderer memory grows without being reclaimed, macOS begins swapping heavily, and CPU usage rises to several hundred percent.
This has recurred across separate Cursor launches, so it is not one renderer process remaining from an earlier incident.
Steps to Reproduce
The issue is not instantaneous, but this usage pattern has triggered it repeatedly:
- Open a repository in the classic Editor layout.
- Start an agent workflow expected to run for 60–90 minutes.
- Have the workflow use multiple subagents across Brainstorm, Implement, Review, and Finalize stages.
- Allow agents to create, commit, and switch between multiple Git branches.
- Continue using the same conversation while the workflow performs many file reads, edits, diffs, tool calls, and Git operations.
- Eventually, the workspace becomes increasingly laggy and then effectively unresponsive.
Expected Behavior
Long-running agent and subagent workflows should have bounded renderer memory usage.
Completed tool calls, file context, diff state, subagent results, and previous workflow stages should be released or persisted without remaining indefinitely in the renderer heap. Git branch creation and switching should not cause renderer state to accumulate without bounds.
If memory pressure becomes excessive, Cursor should degrade gracefully or reload the affected surface rather than consuming more than 17 GB and causing system-wide swap pressure.
Operating System
MacOS
Version Information
Version: 3.12.17
VS Code Extension API: 1.128.0
Commit: 0fb762053c34788bb7760d5673f8a6d4c8589d50
Date: 2026-07-17T02:53:53.006Z
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: Darwin arm64 24.6.0
Additional Information
Two observed incidents:
Incident 1
- Renderer CPU: approximately 700%
- Renderer physical footprint: 17.6–17.8 GB
- Swapped memory: approximately 15.3 GB
- Extension hosts remained comparatively healthy
- Stopping the active chat reduced CPU to near zero, but the renderer retained approximately 17.7 GB
Incident 2
This happened again after Cursor had been fully restarted:
- Renderer CPU: sustained 610–640%
- Renderer physical footprint: 17.6 GB
- Swapped memory: approximately 14.9 GB
- Cursor’s RendererPing reported the window blocked continuously for more than 345 seconds
- Available system memory reached 0.2%
- File-watcher events began being dropped under the resulting resource pressure
- Another workspace’s renderer remained healthy at approximately 480 MB, isolating the problem to the workspace running the long agent workflow
The logs showed an agent loop being resumed without a corresponding completion/release event before the renderer became blocked.
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor