diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 10f7c002..d3899037 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -795,6 +795,12 @@ export function Chat() { scrollToBottom={scrollToBottom} hitBottom={hitBottom} showPromptHints={() => { + // Click again to close + if (promptHints.length > 0) { + setPromptHints([]); + return; + } + inputRef.current?.focus(); setUserInput("/"); onSearch("");