# assistant edit tool: Report when file is empty or doesn't exist \(\#27190\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 2e8c0ff244baf2dc71d7ba68cfd057a92d67b6e2

Requested commit: 2e8c0ff244baf2dc71d7ba68cfd057a92d67b6e2

Commit: 2e8c0ff244baf2dc71d7ba68cfd057a92d67b6e2

Tree: 8f457839274042532f9dc04ad406104e4838663f

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant edit tool: Report when file is empty or doesn't exist (#27190)

Instead of just reporting a search match failure, we'll now indicate
whether the file is empty or exists to help the model recover better
from bad edits.


Release Notes:

- N/A
```

## Parents

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

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