# assistant2: Fail find-replace tool if both strings are equal \(\#27783\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e6c64ebf7edc53155b7e8ee647d1cb381cb45edb

Requested commit: e6c64ebf7edc53155b7e8ee647d1cb381cb45edb

Commit: e6c64ebf7edc53155b7e8ee647d1cb381cb45edb

Tree: 52e2512bd280d2ef5b9fd38a632d59f6f5368e15

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant2: Fail find-replace tool if both strings are equal (#27783)

Models seem to do this ever so often and get very confused. Failing here
helps them recover.

Release Notes:

- N/A

Co-authored-by: Richard Feldman <richard@zed.dev>
```

## Parents

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

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