# Avoid panicking when edit agent emits an empty old_text tag \(\#30030\) · gitcafe/zed

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

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

Visibility: public

Requested revision: c92b2e31e177f35407f9dbcfc216c320d68e1742

Requested commit: c92b2e31e177f35407f9dbcfc216c320d68e1742

Commit: c92b2e31e177f35407f9dbcfc216c320d68e1742

Tree: 201bda82c2d1ca39a45a0fa53943120abb85139c

Author: Antonio Scandurra

Committer: GitHub

## Message

```
Avoid panicking when edit agent emits an empty old_text tag (#30030)

Release Notes:

- Fixed a panic that could sometimes occur when the agent applies edits.

Co-authored-by: Nathan <nathan@zed.dev>
```

## Parents

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

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