diff --git a/desktop/src/components/chat/ChatInput.tsx b/desktop/src/components/chat/ChatInput.tsx index 7ba03253..d41734ed 100644 --- a/desktop/src/components/chat/ChatInput.tsx +++ b/desktop/src/components/chat/ChatInput.tsx @@ -362,6 +362,14 @@ export function ChatInput({ variant = 'default' }: ChatInputProps) { return } + if (localSlashPanel) { + if (event.key === 'Escape') { + event.preventDefault() + setLocalSlashPanel(null) + return + } + } + if (slashMenuOpen && filteredCommands.length > 0) { if (event.key === 'ArrowDown') { event.preventDefault()