# sidebar: Fix stale sidebar thread header state \(\#57017\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ad437c93c23f356f1466be3efa4b25a176f76636

Requested commit: ad437c93c23f356f1466be3efa4b25a176f76636

Commit: ad437c93c23f356f1466be3efa4b25a176f76636

Tree: 6b7eb4097f716e281fddf223bd6ef2ae93023c07

Author: Ben Brandt

Committer: GitHub

## Message

```
sidebar: Fix stale sidebar thread header state (#57017)

There was a case where if you archived or closed all threads, you
wouldn't see the empty state again.

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

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

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