diff --git a/web/client/src/components/chat/ChatInput.tsx b/web/client/src/components/chat/ChatInput.tsx index c4c19d6..a07dc18 100644 --- a/web/client/src/components/chat/ChatInput.tsx +++ b/web/client/src/components/chat/ChatInput.tsx @@ -15,7 +15,7 @@ export interface ImageAttachment { preview: string; } -export function ChatInput({ onSend, disabled, connecting }: { onSend: (content: string, images?: Array<{ data: string; mimeType: string }>) => void; disabled?: boolean; connecting?: boolean }) { +export function ChatInput({ onSend, disabled, connecting }: { onSend: (content: string, images?: Array<{ type: 'image'; data: string; mimeType: string }>) => void; disabled?: boolean; connecting?: boolean }) { const [input, setInput] = useState(''); const [showCmds, setShowCmds] = useState(false); const [cmdIdx, setCmdIdx] = useState(0); diff --git a/web/client/src/components/chat/ChatView.tsx b/web/client/src/components/chat/ChatView.tsx index 19e1c26..78d62a3 100644 --- a/web/client/src/components/chat/ChatView.tsx +++ b/web/client/src/components/chat/ChatView.tsx @@ -108,7 +108,7 @@ export function ChatView() { }, [removeMessage]); // Delayed conversation creation - const handleSendNew = useCallback(async (content: string, images?: Array<{ data: string; mimeType: string }>) => { + const handleSendNew = useCallback(async (content: string, images?: Array<{ type: 'image'; data: string; mimeType: string }>) => { if (creatingRef.current) return; creatingRef.current = true; setPendingMessage({ content, images }); @@ -126,7 +126,7 @@ export function ChatView() { creatingRef.current = false; }, [createConversation, selectedAccountId]); - const handleSend = useCallback((content: string, images?: Array<{ data: string; mimeType: string }>) => { + const handleSend = useCallback((content: string, images?: Array<{ type: 'image'; data: string; mimeType: string }>) => { if (quote) { content = `> ${quote}\n\n${content}`; setQuote(null); } if (conversationId) { send(content, images);