From 9079326ac53eba8c8139fa910ac8192dd8d0dfe7 Mon Sep 17 00:00:00 2001 From: simos Date: Thu, 30 Oct 2025 14:37:09 +0000 Subject: [PATCH] feat: Inform users about slash commands on chat interface --- src/components/ChatInterface.jsx | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/src/components/ChatInterface.jsx b/src/components/ChatInterface.jsx index 3ab6f73..0a217d9 100644 --- a/src/components/ChatInterface.jsx +++ b/src/components/ChatInterface.jsx @@ -4228,20 +4228,11 @@ function ChatInterface({ selectedProject, selectedSession, ws, sendMessage, mess const isExpanded = e.target.scrollHeight > lineHeight * 2; setIsTextareaExpanded(isExpanded); }} - placeholder={`Ask ${provider === 'cursor' ? 'Cursor' : 'Claude'} to help with your code...`} + placeholder={`Type / for commands, @ for files, or ask ${provider === 'cursor' ? 'Cursor' : 'Claude'} anything...`} disabled={isLoading} className="chat-input-placeholder block w-full pl-12 pr-20 sm:pr-40 py-1.5 sm:py-4 bg-transparent rounded-2xl focus:outline-none text-gray-900 dark:text-gray-100 placeholder-gray-400 dark:placeholder-gray-500 disabled:opacity-50 resize-none min-h-[50px] sm:min-h-[80px] max-h-[40vh] sm:max-h-[300px] overflow-y-auto text-sm sm:text-base leading-[21px] sm:leading-6 transition-all duration-200" style={{ height: '50px' }} /> - {/* Custom placeholder overlay that can wrap */} - {!input.trim() && !isInputFocused && ( -
- Type / for commands, @ for files, or ask {provider === 'cursor' ? 'Cursor' : 'Claude'} anything... -
- )} {/* Image upload button */}