Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

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

Cole Millerc05392301543
diff --git a/crates/agent_ui/src/acp/thread_view.rs b/crates/agent_ui/src/acp/thread_view.rs
index 6411abb84fb..c811878c21f 100644
--- a/crates/agent_ui/src/acp/thread_view.rs
+++ b/crates/agent_ui/src/acp/thread_view.rs
@@ -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());
}