diff --git a/src/interface/web/app/chat/page.tsx b/src/interface/web/app/chat/page.tsx index 53c4bd41..deb26105 100644 --- a/src/interface/web/app/chat/page.tsx +++ b/src/interface/web/app/chat/page.tsx @@ -42,6 +42,7 @@ function ChatBodyData(props: ChatBodyDataProps) { const [images, setImages] = useState([]); const [processingMessage, setProcessingMessage] = useState(false); const [agentMetadata, setAgentMetadata] = useState(null); + const [isInResearchMode, setIsInResearchMode] = useState(false); const chatInputRef = useRef(null); const setQueryToProcess = props.setQueryToProcess; @@ -70,6 +71,10 @@ function ChatBodyData(props: ChatBodyDataProps) { if (storedMessage) { setProcessingMessage(true); setQueryToProcess(storedMessage); + + if (storedMessage.trim().startsWith("/research")) { + setIsInResearchMode(true); + } } }, [setQueryToProcess, props.setImages]); @@ -130,6 +135,7 @@ function ChatBodyData(props: ChatBodyDataProps) { isMobileWidth={props.isMobileWidth} setUploadedFiles={props.setUploadedFiles} ref={chatInputRef} + isResearchModeEnabled={isInResearchMode} /> diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index 6aa61ff6..9e156142 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -71,7 +71,7 @@ function TrainOfThoughtComponent(props: TrainOfThoughtComponentProps) { ) : ( -
+
{imageUploaded && imagePaths.map((path, index) => ( @@ -490,8 +494,8 @@ export const ChatInputArea = forwardRef((pr