on_user_message_expansion_changed(
self,
event: UserMessage.ExpansionChanged,
) -> NoneKeep long-prompt expansion state across transcript virtualization.
Also re-measures the row: expanding a collapsed prompt can add hundreds
of lines, and the spacer math that sizes the scrollbar reads a cached
height that refresh(layout=True) alone does not update.