From dbfde8f648e1565cbbb4796cb6965dbae89c7014 Mon Sep 17 00:00:00 2001 From: Bennet Bo Fenner Date: Thu, 19 Mar 2026 18:22:03 +0100 Subject: [PATCH] agent_ui: Fix redundant check after #51953 (#51956) Follow up to #51953 Release Notes: - N/A --------- Co-authored-by: Marshall Bowers --- crates/agent_ui/src/completion_provider.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/crates/agent_ui/src/completion_provider.rs b/crates/agent_ui/src/completion_provider.rs index 094c55b71aa14fd943a88c816542377927e72793..96660ee0e58598cea423c0416719f3fe174f58cc 100644 --- a/crates/agent_ui/src/completion_provider.rs +++ b/crates/agent_ui/src/completion_provider.rs @@ -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;