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: Clear Nullable Queue Anchor (#15794)

Danny Avilaac2307b2efbd
diff --git a/client/src/hooks/Chat/useChatFunctions.ts b/client/src/hooks/Chat/useChatFunctions.ts
index 075dedbdfd..2229640beb 100644
--- a/client/src/hooks/Chat/useChatFunctions.ts
+++ b/client/src/hooks/Chat/useChatFunctions.ts
@@ -647,7 +647,7 @@ export default function useChatFunctions({
model: convo?.model,
error: false,
iconURL,
- clientQueueParentMessageId: regenerateShaped ? messageId : intermediateId,
+ clientQueueParentMessageId: regenerateShaped ? (messageId ?? undefined) : intermediateId,
/**
* Seed the assistant placeholder with the turn's manually-invoked
* skill names so `ContentParts` can render interim `SkillCall` cards