agent: Fix autoscrolling to history entry (#30321)

We were still using entry indexes to scroll, but the list now includes
the separators as items, so the indexes need to be translated

Release Notes:

- agent: Fix autoscrolling to history entry when navigating via keyboard
9810745465Agus Zubiaga committed on 5/8/2025, 11:48:57 PM· committed by GitHubparent4b61d4b
1 file changedLine totals unavailable