thread_view: Trim only trailing whitespace from last chunk of user message (#35902)

This fixes internal whitespace after the last @mention going missing
from the user message as displayed in history.

Release Notes:

- N/A
c053923015Cole Miller committed on 8/8/2025, 11:50:59 PM· committed by GitHubparentaedf195
1 file changedLine totals unavailable