Thanks for reporting this. I have a feeling this is related to line endings.
When edits are applied to a file, there may be a mismatch between your file’s original line endings (CRLF on Windows) and what the agent outputs (LF). Since the diff algorithm compares raw bytes, every line registers as “changed” even though the visible content is identical, hence the inflated deletion count.
A few things that might help narrow this down:
Check your file’s line endings. In VS Code/Cursor, look at the bottom-right status bar. Does it show CRLF or LF?
After the agent makes changes, does the line ending indicator change?