zeta: Improve unified diff prompt (#42354)

Extract some of the improvements from to the unified diff prompt from
https://github.com/zed-industries/zed/pull/42171 and adds some other
about how context work to improve the reliability of predictions.

We also now strip the `<|user_cursor|>` marker if it appears in the
output rather than failing.

Release Notes:

- N/A

---------

Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
d420dd63edAgus Zubiaga committed on 11/10/2025, 2:58:42 PM· committed by GitHubparent42ed032
4 files changedLine totals unavailable