diff --git a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx index f4fca7209a..e624bb96a9 100644 --- a/src/renderer/src/pages/home/Inputbar/Inputbar.tsx +++ b/src/renderer/src/pages/home/Inputbar/Inputbar.tsx @@ -1,6 +1,5 @@ import { ClearOutlined, - ControlOutlined, FormOutlined, FullscreenExitOutlined, FullscreenOutlined, @@ -17,7 +16,6 @@ import { modelGenerating, useRuntime } from '@renderer/hooks/useRuntime' import { useMessageStyle, useSettings } from '@renderer/hooks/useSettings' import { useShortcut, useShortcutDisplay } from '@renderer/hooks/useShortcuts' import { useSidebarIconShow } from '@renderer/hooks/useSidebarIcon' -import { useShowTopics } from '@renderer/hooks/useStore' import { addAssistantMessagesToTopic, getDefaultTopic } from '@renderer/services/AssistantService' import { EVENT_NAMES, EventEmitter } from '@renderer/services/EventService' import FileManager from '@renderer/services/FileManager' @@ -76,7 +74,6 @@ const Inputbar: FC = ({ assistant: _assistant, setActiveTopic }) => { const [files, setFiles] = useState(_files) const { t } = useTranslation() const containerRef = useRef(null) - const { showTopics, toggleShowTopics } = useShowTopics() const { searching } = useRuntime() const { isBubbleStyle } = useMessageStyle() const dispatch = useAppDispatch() @@ -569,16 +566,6 @@ const Inputbar: FC = ({ assistant: _assistant, setActiveTopic }) => { - - { - !showTopics && toggleShowTopics() - setTimeout(() => EventEmitter.emit(EVENT_NAMES.SHOW_CHAT_SETTINGS), 0) - }}> - - - {showKnowledgeIcon && (