# sidebar: Don't block worktree archival on empty drafts \(\#57145\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 0535f472918935181dc7551a90304553c9347315

Requested commit: 0535f472918935181dc7551a90304553c9347315

Commit: 0535f472918935181dc7551a90304553c9347315

Tree: 92850757ad1814e7788e2375050bac1c40f8caef

Author: Ben Brandt

Committer: GitHub

## Message

```
sidebar: Don't block worktree archival on empty drafts (#57145)

If we have empty drafts, they don't show up in the UI, so you can't get
rid of them. But they currently blocked worktree archival. Which is
particularly troublesome with terminal agents in a few cases.

This should hopefully solve the issue for terminals, but I think I need
to do a follow-up to investigate what happens when the last draft is
closed.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- N/A
```

## Parents

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

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