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.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-11 20:32:31 +00:00
parent 218cfafb26
commit 14db385a74
-5
View File
@@ -69,11 +69,6 @@ export default function TestPrompt() {
}
}, [messages]);
// Limpa a conversa ao trocar de agente
useEffect(() => {
handleNewConversation();
}, [selectedAgent]);
const handleNewConversation = () => {
if (!selectedAgent) return;