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
43ee604179Agus Zubiaga committed on 8/14/2025, 6:30:18 PM· committed by GitHubparent2acfa5e
13 files changedLine totals unavailable