agent_ui: Fix redundant check after #51953 (#51956)

Follow up to #51953

Release Notes:

- N/A

---------

Co-authored-by: Marshall Bowers <git@maxdeviant.com>
This commit is contained in:
Bennet Bo FennerandMarshall Bowers authored and GitHub committed 2026-03-19 17:22:03 +00:00
1 parent b0e35b6599
commit dbfde8f648
1 file changed
-10
@@ -1719,16 +1719,6 @@ impl MentionCompletion {
let last_mention_start = last_mention_start?;
// Must be a word boundary before '@'
if last_mention_start > 0
&& line[..last_mention_start]
.chars()
.last()
.is_some_and(|c| !c.is_whitespace())
{
return None;
}
let rest_of_line = &line[last_mention_start + 1..];
let mut mode = None;