Fix scrollbar flicker when streaming agent2 response (#36606)

This was caused by calling `list_state.splice` on updated entries. We
don't need to splice the entry, as we'll recompute its measurements
automatically when we render it.

Release Notes:

- N/A
This commit is contained in:
Antonio Scandurra 2025-08-20 18:39:46 +02:00 committed by GitHub
parent 699f58aeba
commit d0fb6120d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -793,7 +793,6 @@ impl AcpThreadView {
self.entry_view_state.update(cx, |view_state, cx| {
view_state.sync_entry(*index, thread, window, cx)
});
self.list_state.splice(*index..index + 1, 1);
}
AcpThreadEvent::EntriesRemoved(range) => {
self.entry_view_state