agent: Thread history update improvements (#30415)

- Try to preserve previously selected item on update
- Do not clear list items while updating to avoid a frame with no items
rendered

Release Notes:

- agent: Preserve previously selected item in Thread History on update

---------

Co-authored-by: Danilo Leal <daniloleal09@gmail.com>
Co-authored-by: Richard Feldman <oss@rtfeldman.com>
82d271cb5bAgus Zubiaga committed on 5/9/2025, 7:13:50 PM· committed by GitHubparent77ad6d7
2 files changedLine totals unavailable