# agent: Fix path checks in edit_file \(\#30909\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 875d1ef2639d01215c6aa5e85059edf38a015f4a

Requested commit: 875d1ef2639d01215c6aa5e85059edf38a015f4a

Commit: 875d1ef2639d01215c6aa5e85059edf38a015f4a

Tree: 43d3de560bc3da7ad68f39c884fa2a18afde1fd2

Author: Oleksiy Syvokon

Committer: GitHub

## Message

```
agent: Fix path checks in edit_file (#30909)

- Fixed bug where creating a file failed when the root path wasn't
provided

- Many new checks for the edit_file path

Closes #30706

Release Notes:

- N/A
```

## Parents

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

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