Renderer crashes (code 5) during long agent sessions. Logs show repeating SQLITE_ERROR: cannot start a transaction within a transaction from AgentAnalyticsOperationsMainService immediately before each crash.
Steps to Reproduce
Run an extended agent session with multiple shell commands and file edits. Renderer becomes unresponsive then crashes. Happened 2-3 times in one session today.
Expected Behavior
Agent session should remain stable through long conversations with many tool calls.
it’s happened 3 more times. (and several yesterday)
this is further review for cursor, not sure if helpful
For the bug report, the key addition is: The main Cursor Electron process (PID 1378) sustains ~120% CPU for the entire session, not just during crashes. This likely causes the renderer to become unresponsive under any additional load (MCP calls, shell output, large file edits), leading to the code-5 crash. The ptyHost heartbeat failures before crash 3 suggest the main process is too busy to respond to keepalive pings.
Hey, thanks for the detailed report and the CPU load analysis. That’s really helpful.
This is a known issue. During long agent sessions, the renderer can crash. The SQLite nested transaction error from AgentAnalyticsOperationsMainService, together with the main process sitting around ~120% CPU, is a clear sign of what’s happening. The main process gets overloaded and stops responding, and then the renderer crashes.