Cursor agents window unexpectedly crashes after clicking file link

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Clicking on a file link in the agents chat window is causing the window to crash.

Steps to Reproduce

User click on a presented file (in this case HTML file or .md file) and the window freezes and crashes. On restart of full program, and full computer reboot the same thing occurs. Have been able to reproduce 6 times.

Expected Behavior

Open file in the preview window

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 3.6.6
VS Code Extension API: 1.105.1
Commit: 3f10403086781d5b0f56e42812ba28c053a44ec0
Date: 2026-05-25T06:45:30.850Z
Layout: editor
Build Type: Stable
Release Track: Nightly
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
xterm.js: 6.1.0-beta.220
OS: Darwin arm64 25.5.0

Additional Information

this was occuring on the stable build (not nightly), I upgraded to the nightly build and it is still occuring.

Does this stop you from using Cursor

No - Cursor works, but with this issue

i got a "The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)" if that helps

This is a confirmed bug. When you click a file link in the agents chat, the file-open operation can hang indefinitely, and in your case that hang is severe enough to crash the renderer process.

Our team has identified the root cause and a fix is actively in code review. Once it ships (expected in an upcoming update), the file-open path will have a proper timeout so it can no longer hang or crash the window.

Unfortunately there’s no reliable workaround for this in the meantime. The issue is in how the agents window resolves the workspace reference when opening files, so restarting or rebooting won’t help (as you’ve already found).

We’ll follow up here once the fix has shipped. Thank you for your patience!

I’ve got a different since I updated cursor this morning; currently reinstalling the previous version to see if its related

Looking at your error, this appears to be a different issue from what this thread covers. The original bug here is specifically about clicking file links in the agents chat causing a hang that crashes the window (code 5). Your error (reason: 'oom', code: '-536870904') after a Cursor update points to a different mechanism.

Could you create a new thread for this with the following details? That way our team can track and investigate your specific issue properly:

  1. Your full Version Information (Help > About, or Cursor: About in the Command Palette)

  2. Which version you updated from (if you remember)

  3. What you were doing when the crash happened (opening a project, running an agent, idle, etc.)

  4. Whether the crash happens on every launch or only during specific actions

  5. Your state.vscdb file size — check at %APPDATA%\Cursor\User\globalStorage\state.vscdb

The state.vscdb size is particularly relevant for OOM crashes on Windows. If it’s over 500MB, that’s likely contributing.

Hi @artistickatt / @Dave_Pinchen !

This should be fixed in the latest v3.6 patch. Can you give it a try and let us know?