Agent editing breaks with null pointer (reading getHTMLElement)

Describe the Bug

Using the auto model I get the error: Cannot read properties of undefined (reading getHTMLElement) when cursors built in edit tool tries to make changes. This effectively renders cursor useless. It started happening today after I pulled the latest update.

Steps to Reproduce

My exact steps to replicate are:

  • Reference a markdown document in your prompt
  • Use the auto model setting
  • Instruct the AI to make a change that requires multiple edit tool calls. Any sufficiently complex change will trigger this.

I’m using a typescript codebase, nothing complex at all.

Expected Behavior

It should apply the changes to the file.

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.4.2
VSCode Version: 1.99.3
Commit: 07aa3b4519da4feab4761c58da3eeedd253a1670
Date: 2025-08-06T19:23:39.081Z (18 hrs ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.0.0

Additional Information

Please fix this ASAP, I really don’t like using Windsurf.

Does this stop you from using Cursor

Yes - Cursor is unusable

hi @Haemp and welcome to Cursor Forum.

Thank you for your bug report. Could you post a Request ID with privacy disabled so we can look into the details? Cursor – Getting a Request ID

Request ID: af7ecd2a-1f30-4ed7-8ea9-4244fdc32c1c

Thank you, are you using any MCPs?

Where do you see this error message? Share screenshot if possible.

I’ve got all my MCPs turned off at the moment but it doesn’t make a difference. I also tried downgrading to 1.4.1 but I’m getting issues there as well.

Here’s an example screenshot:

I’ve also had this issue with other models than the auto model. Claude Sonnet 4 called out the issue as the search or replace tool (don’t recall exactly).

Thank you, sent it to the team for review.

Thanks! Here is another instance of it happening with GPT-5:

And here is another one where it reflects on the issue a bit more:

This is completely preventing me from using Cursor

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.