Skip to content

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

fix: don't reset isSubmitting in useEffect of submission

Wentao Lyue8611a1d0783
diff --git a/client/src/components/Main/TextChat.jsx b/client/src/components/Main/TextChat.jsx
index 969a6222ac..759d045c07 100644
--- a/client/src/components/Main/TextChat.jsx
+++ b/client/src/components/Main/TextChat.jsx
@@ -267,7 +267,6 @@ export default function TextChat({ messages }) {
events.stream();
return () => {
- dispatch(setSubmitState(false));
events.removeEventListener('message', onMessage);
const isCancelled = events.readyState <= 1;
events.close();