# sidebar: Show pending/unread state in project header when collapsed \(\#57322\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 7ec36d3661e99d33b00bace2cbfeffff7bd56772

Requested commit: 7ec36d3661e99d33b00bace2cbfeffff7bd56772

Commit: 7ec36d3661e99d33b00bace2cbfeffff7bd56772

Tree: b1f25e6e97482b919a692a4a19e61f97c7b4b154

Author: Danilo Leal

Committer: GitHub

## Message

```
sidebar: Show pending/unread state in project header when collapsed (#57322)

Closes AI-285

Similar to how we display whether there are running threads or a thread
waiting for permission in the collapsed version of the project's header
in the sidebar, I was missing the "unread" state from being shown. I had
to change the approach here as to how we extract this information
because the previous method was relying on observing the state of the
list entries within the sidebar at every `rebuild_contents` run, and
given there aren't any list entires when the project is collapsed, it
wouldn't work.
Release Notes:

- Agent: Added the notification indicator on collapsed project headers
in the sidebar when a thread completes.
```

## Parents

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

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