Composer Mode Continuously Adds Excessive <div>

Issue Description

When I use Composer mode to automatically edit HTML files, the AI starts adding a massive number of <div> tags. This process does not stop automatically, and it quickly fills the file with unnecessary elements. As a result, the generated code is cluttered, unmanageable, and completely unusable for my projects.

Steps to Reproduce

  1. Open an HTML file in Cursor.
  2. Enable Composer mode and request an automatic edit.
  3. Observe that the AI continuously adds <div> tags without stopping.

Expected Behavior

I expect the AI to make meaningful edits and stop once the task is complete. The generated code should be clean and functional.

Actual Behavior

The AI keeps adding <div> tags indefinitely, making the code unusable and requiring significant manual cleanup.

Impact

This issue severely disrupts my workflow and makes Composer mode unusable for HTML editing. I am unable to leverage the automatic editing feature due to this continuous and uncontrollable behavior.

System Information

  • Cursor Version: [0.45.15]
  • OS: [Windows11]

Additional Notes

I have tried the following troubleshooting steps without success:

  • Restarting Cursor and my computer.
  • Clearing cache and updating to the latest version.

Given the severity of this issue, I kindly request your immediate attention to resolve this bug. Cursor has been a valuable tool for me, and I hope to see this feature functioning correctly soon.