diff --git a/crates/assistant/src/slash_command/fetch_command.rs b/crates/assistant/src/slash_command/fetch_command.rs index e1a784f71aee4379fd57c9dfa210b2df156e0639..e3b1b92aba12c4eb3dbffbdf15c1d1aef415bab2 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,