Issues with Agent Mode in Claude 4.0 Sonnet – Formatting & Indentation Problems

:lady_beetle: Bug Description:

When using Claude 4.0 Sonnet in Agent Mode, file formatting is frequently incorrect. This includes:

  • Missing line breaks
  • Incorrect or inconsistent indentation
  • Structural formatting errors across various file types

:counterclockwise_arrows_button: How to Reproduce:
Use Agent Mode with Claude 4.0 Sonnet on supported files. The formatting issues seem to occur intermittently, particularly after multi-step edits.

:open_file_folder: Affected File Types:
.py, .svelte, .html

:laptop: Environment:

  • Operating System: Windows 11
  • Cursor Version: 0.50.6
  • Model: Claude 4.0 Sonnet
2 Likes

already created a topic about it but ye its super broken now

Hey, could you share the request ID? For this, you need to disable privacy mode if it’s enabled, then reproduce the issue when it happens again and copy the ID.

Hey, apologies for this, this should be resolved now, but you may have to start a new chat!