diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index 469a4ec5..763d4e7e 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -132,8 +132,11 @@ export const InputPrompt: React.FC = ({ } } else { const newValue = base + suggestion; - buffer.setText(newValue); - handleSubmitAndClear(newValue); + if (newValue === query) { + handleSubmitAndClear(newValue); + } else { + buffer.setText(newValue); + } } } else { const atIndex = query.lastIndexOf('@');