From 416813452eafd4b9497fe7f4b36d5000b51c969d Mon Sep 17 00:00:00 2001
From: Miguel Solorio <miguel.solorio07@gmail.com>
Date: Wed, 14 May 2025 16:01:29 -0700
Subject: Improvements to suggestions & slash commands (#344)

Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
---
 packages/cli/src/ui/components/InputPrompt.tsx | 1 +
 1 file changed, 1 insertion(+)

(limited to 'packages/cli/src/ui/components/InputPrompt.tsx')

diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx
index 8ec67ec7..1c3d2a07 100644
--- a/packages/cli/src/ui/components/InputPrompt.tsx
+++ b/packages/cli/src/ui/components/InputPrompt.tsx
@@ -76,6 +76,7 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
         const newValue = base + selectedSuggestion.value;
         onChangeAndMoveCursor(newValue);
         onSubmit(newValue); // Execute the command
+        onChangeAndMoveCursor(''); // Clear query after submit
       } else {
         // Handle @ command completion
         const atIndex = query.lastIndexOf('@');
-- 
cgit v1.2.3

