diff --git a/src/web/consoles/workbench/components/chat/ChatPanel.tsx b/src/web/consoles/workbench/components/chat/ChatPanel.tsx index 9a444ff..7d2d5d7 100644 --- a/src/web/consoles/workbench/components/chat/ChatPanel.tsx +++ b/src/web/consoles/workbench/components/chat/ChatPanel.tsx @@ -140,8 +140,9 @@ export function ChatPanel({ conversationId, onConversationCreated, projectId }: if (!conversationId) { try { - const conv = await createConversation(projectId); + const conv = await createConversation(projectId, displayModelId ?? undefined); skipHistoryLoadRef.current = conv.id; + void queryClient.invalidateQueries({ queryKey: ["conversations", projectId] }); void sendMessage({ text }, { body: { conversationId: conv.id } }); onConversationCreated(conv.id); } catch (err: unknown) { @@ -153,7 +154,7 @@ export function ChatPanel({ conversationId, onConversationCreated, projectId }: } void sendMessage({ text }, { body: { conversationId } }); - }, [input, sendMessage, conversationId, projectId, onConversationCreated, message]); + }, [input, sendMessage, conversationId, projectId, onConversationCreated, message, queryClient, displayModelId]); const extractText = useCallback((msg: UIMessage) => { return msg.parts