mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00: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 {
|
} else {
|
||||||
const newValue = base + suggestion;
|
const newValue = base + suggestion;
|
||||||
buffer.setText(newValue);
|
if (newValue === query) {
|
||||||
handleSubmitAndClear(newValue);
|
handleSubmitAndClear(newValue);
|
||||||
|
} else {
|
||||||
|
buffer.setText(newValue);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
const atIndex = query.lastIndexOf('@');
|
const atIndex = query.lastIndexOf('@');
|
||||||
|
|||||||
Reference in New Issue
Block a user