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(Input): fix isNotAppendable condition to include isSubmitting variable fix(Input): prevent submitting message when isSubmitting is true and Enter key is pressed
Daniel Avila78ae220f7e16
diff --git a/client/src/components/Input/index.jsx b/client/src/components/Input/index.jsxindex 8f98a4339e..a21ccc6f93 100644--- a/client/src/components/Input/index.jsx+++ b/client/src/components/Input/index.jsx@@ -33,7 +33,7 @@ export default function TextChat({ isSearchView = false }) {// const bingStylesRef = useRef(null);const [showBingToneSetting, setShowBingToneSetting] = useState(false);- const isNotAppendable = latestMessage?.unfinished || latestMessage?.error;+ const isNotAppendable = (latestMessage?.unfinished & !isSubmitting) || latestMessage?.error;// auto focus to input, when enter a conversation.useEffect(() => {@@ -69,12 +69,16 @@ export default function TextChat({ isSearchView = false }) {};const handleKeyDown = e => {+ if (e.key === 'Enter' && isSubmitting) {+ return;+ }+if (e.key === 'Enter' && !e.shiftKey) {e.preventDefault();}- if (e.key === 'Enter' && !e.shiftKey) {- if (!isComposing?.current) submitMessage();+ if (e.key === 'Enter' && !e.shiftKey && !isComposing?.current) {+ submitMessage();}};