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 authored and GitHub committed 2025-08-20 16:39:46 +00:00
1 parent 59249cf00c
commit af8ee2bdf4
1 file changed
-1
-1
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