diff --git a/crates/agent/src/context_picker.rs b/crates/agent/src/context_picker.rs index 6d82ea60d822f7..124d72ac904321 100644 --- a/crates/agent/src/context_picker.rs +++ b/crates/agent/src/context_picker.rs @@ -756,6 +756,10 @@ pub(crate) fn insert_crease_for_mention( let ids = editor.insert_creases(vec![crease.clone()], cx); editor.fold_creases(vec![crease], false, window, cx); + + let end_offset = end.to_offset(&snapshot); + editor.edit([(end_offset..end_offset, " ")], cx); + Some(ids[0]) }) }