# zeta: Improve unified diff prompt \(\#42354\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/d420dd63ed1e8274691eaf8466d39fc9a4a60997)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: d420dd63ed1e8274691eaf8466d39fc9a4a60997

Requested commit: d420dd63ed1e8274691eaf8466d39fc9a4a60997

Commit: d420dd63ed1e8274691eaf8466d39fc9a4a60997

Tree: 0c6fe4f9766020159fa38a769bca930bd36f9aeb

Author: Agus Zubiaga

Committer: GitHub

## Message

```
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>
```

## Parents

- [42ed032f129fbb65e1e9ddb42ac9dcf9ae71eba6](https://git.cafe/gitcafe/zed/commit/42ed032f129fbb65e1e9ddb42ac9dcf9ae71eba6?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/d420dd63ed1e8274691eaf8466d39fc9a4a60997?format=markdown)
