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(useSSE): Prevent 'New Chat' Title after Regenerating Initial Message (#2238)
Danny Avila0a8118deedeb
diff --git a/client/src/hooks/SSE/useSSE.ts b/client/src/hooks/SSE/useSSE.tsindex c5fefc8361..1f586abf99 100644--- a/client/src/hooks/SSE/useSSE.ts+++ b/client/src/hooks/SSE/useSSE.ts@@ -251,7 +251,8 @@ export default function useSSE(submission: TSubmission | null, index = 0) {let update = {} as TConversation;setConversation((prevState) => {let title = prevState?.title;- if (parentMessageId !== Constants.NO_PARENT && title?.toLowerCase()?.includes('new chat')) {+ const parentId = isRegenerate ? message?.overrideParentMessageId : parentMessageId;+ if (parentId !== Constants.NO_PARENT && title?.toLowerCase()?.includes('new chat')) {const convos = queryClient.getQueryData<ConversationData>([QueryKeys.allConversations]);const cachedConvo = getConversationById(convos, conversationId);title = cachedConvo?.title;