Fix rejecting overwritten files if the agent previously edited them (#30744)

Release Notes:

- Fixed rejecting overwritten files if the agent had previously edited them.
47f6d4e5a7Antonio Scandurra committed on 5/15/2025, 9:47:54 AM· committed by GitHubparente60f029
1 file changedLine totals unavailable