|
@@ -795,6 +795,12 @@ export function Chat() {
|
|
scrollToBottom={scrollToBottom}
|
|
scrollToBottom={scrollToBottom}
|
|
hitBottom={hitBottom}
|
|
hitBottom={hitBottom}
|
|
showPromptHints={() => {
|
|
showPromptHints={() => {
|
|
|
|
+ // Click again to close
|
|
|
|
+ if (promptHints.length > 0) {
|
|
|
|
+ setPromptHints([]);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
inputRef.current?.focus();
|
|
inputRef.current?.focus();
|
|
setUserInput("/");
|
|
setUserInput("/");
|
|
onSearch("");
|
|
onSearch("");
|