# acp: Clean up entry views on rewind \(\#36197\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 43ee604179ccda222eed29a173ac19e0514e8679

Requested commit: 43ee604179ccda222eed29a173ac19e0514e8679

Commit: 43ee604179ccda222eed29a173ac19e0514e8679

Tree: 902d56b1c710f881b2a96ef2ece86150d1de46d5

Author: Agus Zubiaga

Committer: GitHub

## Message

```
acp: Clean up entry views on rewind (#36197)

We were leaking diffs and terminals on rewind, we'll now clean them up.
This PR also introduces a refactor of how we mantain the entry view
state to use a `Vec` that's kept in sync with the thread entries.

Release Notes:

- N/A
```

## Parents

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

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