Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
fix: dont clear the input message if conversationId changed.
Wentao Lyua641a0e3732d
diff --git a/client/src/components/Input/index.jsx b/client/src/components/Input/index.jsxindex f1788d94c1..bec0b3850f 100644--- a/client/src/components/Input/index.jsx+++ b/client/src/components/Input/index.jsx@@ -1,7 +1,6 @@-import React, { useEffect, useRef, useState } from 'react';+import React, { useEffect, useRef } from 'react';import { useRecoilValue, useRecoilState } from 'recoil';import SubmitButton from './SubmitButton';-import AdjustToneButton from './AdjustToneButton';import OpenAIOptions from './OpenAIOptions';import ChatGPTOptions from './ChatGPTOptions';import BingAIOptions from './BingAIOptions';@@ -19,7 +18,6 @@ export default function TextChat({ isSearchView = false }) {const conversation = useRecoilValue(store.conversation);const latestMessage = useRecoilValue(store.latestMessage);- const messages = useRecoilValue(store.messages);const [text, setText] = useRecoilState(store.text);// const [text, setText] = useState('');@@ -38,7 +36,7 @@ export default function TextChat({ isSearchView = false }) {// auto focus to input, when enter a conversation.useEffect(() => {if (conversation?.conversationId !== 'search') inputRef.current?.focus();- setText('');+ // setText('');}, [conversation?.conversationId]);// // controls the height of Bing tone style tabs