Describe the Bug
The edit_file tool is unable to reliably apply changes to files (espescially large XML files, but in small too).
Suggested Solution:
Implement a search_and_replace tool for precise, literal string manipulation, as edit_file is not suitable for this use case. Alternatively, significantly improve edit_file’s context-matching accuracy for structured text formats.
Steps to Reproduce
Target a large XML (1000+ lines) file with many repetitive sibling nodes.
Use edit_file to modify a single, specific node.
Observe that the edit is not applied.
Expected Behavior
Same as Sonnet - easy edit right lines in file.
Operating System
Windows 10/11
Current Cursor Version (Menu → About Cursor → Copy)
Version: 1.1.3 (user setup)
VSCode Version: 1.96.2
Commit: 979ba33804ac150108481c14e0b5cb970bda3260
Date: 2025-06-15T06:55:04.603Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Windows_NT x64 10.0.22631
Additional Information
Gemini said that it haven’t search_replace tool (as Sonnet do).
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor