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
This commit is contained in:
Cole Miller 2025-08-08 19:50:59 -04:00 committed by GitHub
parent aedf195e97
commit c053923015
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -410,7 +410,7 @@ impl AcpThreadView {
}
if ix < text.len() {
let last_chunk = text[ix..].trim();
let last_chunk = text[ix..].trim_end();
if !last_chunk.is_empty() {
chunks.push(last_chunk.into());
}