diff --git a/assets/javascripts/discourse/components/ai-search-discoveries.gjs b/assets/javascripts/discourse/components/ai-search-discoveries.gjs index 4dd14ef7..e3e2dcbd 100644 --- a/assets/javascripts/discourse/components/ai-search-discoveries.gjs +++ b/assets/javascripts/discourse/components/ai-search-discoveries.gjs @@ -186,6 +186,12 @@ export default class AiSearchDiscoveries extends Component { @action async triggerDiscovery() { + if (this.query?.length === 0) { + this.discobotDiscoveries.resetDiscovery(); + this.smoothStreamer.resetStreaming(); + return; + } + if (this.discobotDiscoveries.lastQuery === this.query) { this.hideDiscoveries = false; return;