From 14db385a741d3a49e565894d231c9910d6b71c1e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 20:32:31 +0000 Subject: [PATCH] Prevent auto-create on agent select Remove automatic new conversation creation when selecting an agent; now new conversations are only created by clicking the "Nova Conversa" button. --- src/pages/TestPrompt.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pages/TestPrompt.tsx b/src/pages/TestPrompt.tsx index 50d5804..6dfae44 100644 --- a/src/pages/TestPrompt.tsx +++ b/src/pages/TestPrompt.tsx @@ -69,11 +69,6 @@ export default function TestPrompt() { } }, [messages]); - // Limpa a conversa ao trocar de agente - useEffect(() => { - handleNewConversation(); - }, [selectedAgent]); - const handleNewConversation = () => { if (!selectedAgent) return;