# assistant edit tool: Improve bad search output \(\#27012\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 68a572873b2ee2dc6fc34894754b2083d7c2262f

Requested commit: 68a572873b2ee2dc6fc34894754b2083d7c2262f

Commit: 68a572873b2ee2dc6fc34894754b2083d7c2262f

Tree: 3c97f259a09f27cedc75fbf79e23f309e19ab46e

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant edit tool: Improve bad search output (#27012)

When we failed to match a search string, we were reporting the replace
string as not found, this confuses the model and can make it go into a
doom loop. This PR fixes that improves the error output in general to
help it recover faster.

Release Notes:

- N/A
```

## Parents

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

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