# Stop automatically deleting agent drafts \(\#53862\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 6d2944b001fcdd6588d570c75fd78d031fb6737a

Requested commit: 6d2944b001fcdd6588d570c75fd78d031fb6737a

Commit: 6d2944b001fcdd6588d570c75fd78d031fb6737a

Tree: 8875b2a26f8f391d054c3ebb049effa48fd971cf

Author: Nathan Sobo

Committer: GitHub

## Message

```
Stop automatically deleting agent drafts (#53862)

This was leftover from trying to hold the invariant of one empty draft,
which was dropped in #53852.

Removes all automatic draft deletion:

- `retain_running_thread` discarded empty drafts when navigating away
- `remove_empty_draft` cleaned up all retained drafts when loading from
history
- `open_external_thread_with_server` removed empty drafts when opening
external threads

Release Notes:

- Fixed agent drafts being silently discarded when navigating between
threads
```

## Parents

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

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