diff --git a/ui/desktop/src/components/ChatInput.tsx b/ui/desktop/src/components/ChatInput.tsx index 3e9850be12..c3d8c6dbfc 100644 --- a/ui/desktop/src/components/ChatInput.tsx +++ b/ui/desktop/src/components/ChatInput.tsx @@ -4,9 +4,15 @@ import type { View } from '../App'; import Stop from './ui/Stop'; import { Attach, Send, Close } from './icons'; import { debounce } from 'lodash'; -import BottomMenu from './bottom_menu/BottomMenu'; import { LocalMessageStorage } from '../utils/localMessageStorage'; import { Message } from '../types/message'; +import { DirSwitcher } from './bottom_menu/DirSwitcher'; +import BottomMenuAlertPopover from './bottom_menu/BottomMenuAlertPopover'; +import ModelsBottomBar from './settings/models/bottom_bar/ModelsBottomBar'; +import { BottomMenuModeSelection } from './bottom_menu/BottomMenuModeSelection'; +import { ManualSummarizeButton } from './context_management/ManualSummaryButton'; +import { useAlerts } from './alerts'; +import { useToolCount } from './alerts/useToolCount'; interface PastedImage { id: string; @@ -41,11 +47,19 @@ export default function ChatInput({ commandHistory = [], initialValue = '', droppedFiles = [], + setView, + numTokens, + hasMessages, + messages = [], + setMessages, }: ChatInputProps) { const [_value, setValue] = useState(initialValue); const [displayValue, setDisplayValue] = useState(initialValue); // For immediate visual feedback const [isFocused, setIsFocused] = useState(false); const [pastedImages, setPastedImages] = useState([]); + const { alerts, addAlert, clearAlerts } = useAlerts(); + const dropdownRef = useRef(null); + const toolCount = useToolCount(); // Update internal value when initialValue changes useEffect(() => { @@ -434,7 +448,11 @@ export default function ChatInput({ : 'border-borderSubtle hover:border-borderStandard' } z-10`} > -
+ {/* DirSwitcher at the top */} +
+ 0} /> +
+