Improvements to suggestions & slash commands (#344)

Co-authored-by: N. Taylor Mullen <ntaylormullen@google.com>
This commit is contained in:
Miguel Solorio
2025-05-14 16:01:29 -07:00
committed by GitHub
parent 89aa1cad41
commit 416813452e
5 changed files with 46 additions and 25 deletions

View File

@@ -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('@');