Cursor crash when the agent completes the task and the application loses focus

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

The cursor crashes when the agent completes the task and the application loses focus (i.e. when I search something on chrome) Can 100% reproduce.

Steps to Reproduce

Open the Cursor application (new window), ask an arbitrary question, and then switch focus to another application (e.g., Chrome). Cursor then crashes, requiring a force-quit.

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Cursor: 0.23.9
VSCode: 1.105.1
Chromium: 138.0.7204.251

For AI issues: which model did you use?

All kinds of models (Auto/Codex/Sonnect/Opus)

Additional Information

Windows 11 Professional 25H2 26200.7171
I don’t think this is a Cursor-specific problem. I can replicate it with the agent mode in the latest VSCode too.
This issue occurs even in a completely new window. I do not have any MCP services running, nor is there a long chat history.

Does this stop you from using Cursor

Yes - Cursor is unusable

Thanks for the report - this looks critical. We need details for a quick escalation:

Please be sure to:

  • Record a short video/screencast showing the crash reproduction
  • Open Developer Tools (Help > Toggle Developer Tools) before reproducing and send the latest errors from the Console
  • On Windows: collect a report from Event Viewer about the Cursor crash (Faulting module, Exception code) and attach it. Include crash dumps if available
  • Provide the Request ID of the last AI action: in chat, open the menu (⋯) > Copy Request ID

Also check:

  • Whether the crash happens when switching not to Chrome but, for example, Notepad
  • Run Cursor without extensions: cursor --disable-extensions and repeat the steps
  • Open Task Manager during reproduction - watch memory and CPU usage at the moment of the crash
  • Restart your computer and try reproducing again

Related note: You mentioned this happens in VSCode with the agent too - this points to an issue in Electron/VSCode. If you can catch it, please send a screenshot of Task Manager at the crash moment.

Let us know the results - we will escalate to the engineers with high priority.

Update:

Thanks for your quick response. A system restart seems to have resolved the issue.
I noticed a significant difference compared to the state before the restart: Cursor/VSCode now correctly triggers a Windows notification when the Agent completes a task. Before the restart, I did not see these bottom-right notifications appear. I suspect the failure to push this notification might be related to the root cause of the freezing.
I have recorded a video demonstrating the bug. The issue manifests as the Cursor/VSCode window freezing completely—it becomes undraggable and unresponsive to interaction. Since the app hangs rather than crashes, no crash report is generated, and I was unable to capture any errors in Developer Tools or the Windows Event Viewer.
Since the restart fixed it, this no longer needs high priority, but I wanted to provide this context to assist the engineers with further troubleshooting.

Thanks for the update. Glad the system restart fixed the issue - agent notifications are now showing correctly.

I see the demo video, thanks. This will be helpful for the engineers: looks like window hanging when losing focus, related to Windows notifications (Electron/VSCode issue).

If the problem comes back:

  • Run Cursor without extensions: cursor --disable-extensions
  • Check Task Manager during the hang (memory/CPU)
  • Open Developer Tools before reproducing and share Console logs

I’ll pass the details and video to the engineers for analysis. Let me know if anything changes.