Avoid constantly scrolling thread history to top as agent generates (#54365)

Fixes two problems:

* We were not preserving scroll position in the thread history view when
the thread metadata store updated
* We were updating thread metadata on every single chunk streamed by the
agent, even though the content of the thread does not affect its
metadata.

Release Notes:

- N/A
aa5293de22Max Brunsfeld committed on 4/20/2026, 11:15:01 PM· committed by GitHubparentf2cead4
2 files changedLine totals unavailable