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)
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.
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).