mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-03-10 22:21:22 -07:00
fix(cli): Prevent Tab from auto-executing incomplete slash commands (#2919)
Co-authored-by: matt korwel <matt.korwel@gmail.com>
This commit is contained in:
@@ -132,8 +132,11 @@ export const InputPrompt: React.FC<InputPromptProps> = ({
|
||||
}
|
||||
} else {
|
||||
const newValue = base + suggestion;
|
||||
buffer.setText(newValue);
|
||||
handleSubmitAndClear(newValue);
|
||||
if (newValue === query) {
|
||||
handleSubmitAndClear(newValue);
|
||||
} else {
|
||||
buffer.setText(newValue);
|
||||
}
|
||||
}
|
||||
} else {
|
||||
const atIndex = query.lastIndexOf('@');
|
||||
|
||||
Reference in New Issue
Block a user