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

clean up

Wentao Lyu0ff3bbb28f8b
diff --git a/client/src/components/Main/TextChat.jsx b/client/src/components/Main/TextChat.jsx
index 759d045c07..aeae024c22 100644
--- a/client/src/components/Main/TextChat.jsx
+++ b/client/src/components/Main/TextChat.jsx
@@ -35,7 +35,7 @@ export default function TextChat({ messages }) {
const { error, latestMessage } = convo;
const { ask, regenerate, stopGenerating } = useMessageHandler();
- const isNotAppendable = (!isSubmitting && latestMessage?.cancelled) || latestMessage?.error;
+ const isNotAppendable = latestMessage?.cancelled || latestMessage?.error;
// auto focus to input, when enter a conversation.
useEffect(() => {