agent: Don't pass back the diff on successful edits (#59335)

Previous versions of the tool required passing the diff back because the
parent agent wouldn't have known the edits applied otherwise. Given that
we adapted this to use streaming tool calls now, this is redundant
information and wastes context windows, especially for local models.

We still pass the diff in the case that only some of the edits were
applied, but in the successful case, we just let the model know that the
edit was successful.

---

Release Notes:

- agent: Improve edit tool performance with more succinct success
response.
f16a46967bBen Brandt committed on 6/15/2026, 3:21:59 PM· committed by GitHubparent9622ae9
1 file changedLine totals unavailable