From dd3ae1e21158b41d78b9f726107432e6e971b5a3 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Sun, 22 Mar 2026 09:03:55 -0700 Subject: [PATCH] fix: don't parse command if output is detected Signed-off-by: Chapman Pendery --- src/ui/suggestionManager.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ui/suggestionManager.ts b/src/ui/suggestionManager.ts index 6d75ca0a..a45b61f4 100644 --- a/src/ui/suggestionManager.ts +++ b/src/ui/suggestionManager.ts @@ -48,11 +48,12 @@ export class SuggestionManager { private async _loadSuggestions(): Promise { this.#abortController?.abort(); - const commandText = this.#term.getCommandState().commandText; + const commandState = this.#term.getCommandState(); + const commandText = commandState.commandText; if (!commandText) { this.#command = ""; } - if (!commandText || this.#hideSuggestions) { + if (!commandText || this.#hideSuggestions || commandState.hasOutput) { this.#suggestBlob = undefined; this.#activeSuggestionIdx = 0; return;