diff --git a/crates/assistant/src/slash_command/fetch_command.rs b/crates/assistant/src/slash_command/fetch_command.rs index e1a784f71a..e3b1b92aba 100644 --- a/crates/assistant/src/slash_command/fetch_command.rs +++ b/crates/assistant/src/slash_command/fetch_command.rs @@ -150,6 +150,10 @@ impl SlashCommand for FetchSlashCommand { let url = SharedString::from(url); cx.foreground_executor().spawn(async move { let text = text.await?; + if text.trim().is_empty() { + bail!("no textual content found"); + } + let range = 0..text.len(); Ok(SlashCommandOutput { text,