# assistant edit tool: Create file when search/replace is empty \(\#27009\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 48fe134408250ea82d3bac72d0a52b352d23169b

Requested commit: 48fe134408250ea82d3bac72d0a52b352d23169b

Commit: 48fe134408250ea82d3bac72d0a52b352d23169b

Tree: 13002f25535e2e1d7955df44275f21b5dcbdbf5c

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant edit tool: Create file when search/replace is empty (#27009)

We used to fail when this happened, but we saw the model use it as a way
to create empty files, which makes sense.

Release Notes:

- N/A
```

## Parents

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

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