Bug using Claude Sonnet 4.0 as agent

This is the bug

Improve description with IA.

That problem is just happining with claude sonnet 4.0

This is my cursor version to reproduce the error:

Version: 0.50.7 (Universal)

VSCode Version: 1.96.2

Commit: 02270c8441bdc4b2fdbc30e6f470a589ec78d600

Date: 2025-05-24T18:21:21.538Z (1 wk ago)

Electron: 34.3.4

Chromium: 132.0.6834.210

Node.js: 20.18.3

V8: 13.2.152.41-electron.0

OS: Darwin arm64 24.4.0

Ip: you don’t need it

brief summary: almost every time that error occurrs the model fix the issue but the issue is still present since the launch of model claude 4.0, is better to fix the root cause instead of fix just when the error ocurrs, please help

Now in version 1.0 error persist and its worse, now sonnet 4.0 is also having problems with string finder.

image

Sudently the agent decided to create a full new document : Wrong!