Tolerate edits ending with `</edits>` instead of `</new_text>` (#31453)

Release Notes:

- Improve reliability of the agent when a model outputs malformed edits.
4acb4730a5Antonio Scandurra committed on 5/26/2025, 7:36:58 PM· committed by GitHubparent4567360
1 file changedLine totals unavailable