Recently, I’ve noticed that when I use Sonnet 3.5 (normal version) for refactoring code or fixing something, it provides the original complete code or snippet from the file I asked it to refactor or debug, followed by a message like ‘replace the above with the following.’ It then provides the refactored or debugged version of the same snippet. While some might find this useful, I don’t like it. I’ve set explicit Rules for AI to only provide the updated, debugged, or refactored code, but it still provides both the original and the refactored versions.
I also have a subscription to Claude’s web UI and haven’t faced the same issue there, nor in the long-context version of Claude in Cursor. This issue with Sonnet started just recently, no more than a week ago."