agent: Refresh UI when context or thread history changes (#28188)

I found a few more cases where the UI wasn't updated immediately after
an interaction.

Release Notes:

- agent: Fixed delay after removing threads from "Past Interactions"
- agent: Fixed delay after adding/remove context via keyboard
57669b4908Agus Zubiaga committed on 4/6/2025, 2:35:15 PM· committed by GitHubparentb1f7133
6 files changedLine totals unavailable