From e245057822c347a518ccfe8c0e671b47019468e2 Mon Sep 17 00:00:00 2001 From: Mustafa Sayyed <162483528+mustafa-sayyed@users.noreply.github.com> Date: Mon, 11 May 2026 15:38:19 +0530 Subject: [PATCH] fix: update message and rename conversation triggers (#2439) * fix: update message and rename conversation triggers * fix trim comparison * fix ts error * (chore)fe: linter --------- Co-authored-by: ManishMadan2882 --- frontend/src/agents/workflow/WorkflowBuilder.tsx | 10 ++++++++-- frontend/src/conversation/Conversation.tsx | 2 +- frontend/src/conversation/ConversationBubble.tsx | 8 +++++++- frontend/src/conversation/ConversationTile.tsx | 5 ++++- 4 files changed, 20 insertions(+), 5 deletions(-) diff --git a/frontend/src/agents/workflow/WorkflowBuilder.tsx b/frontend/src/agents/workflow/WorkflowBuilder.tsx index 486529b4..fec42022 100644 --- a/frontend/src/agents/workflow/WorkflowBuilder.tsx +++ b/frontend/src/agents/workflow/WorkflowBuilder.tsx @@ -813,7 +813,11 @@ function WorkflowBuilderInner() { const response = await userService.getWorkflow(workflowId, token); if (!response.ok) throw new Error('Failed to fetch workflow'); const responseData = await response.json(); - const { workflow, nodes: apiNodes, edges: apiEdges } = responseData.data; + const { + workflow, + nodes: apiNodes, + edges: apiEdges, + } = responseData.data; const nextWorkflowName = workflow.name; const nextWorkflowDescription = workflow.description || ''; const mappedNodes = apiNodes.map((n: WorkflowNode) => { @@ -1472,7 +1476,9 @@ function WorkflowBuilderInner() { {t('agents.form.advanced.systemPromptOverride')}

- {t('agents.form.advanced.systemPromptOverrideDescription')} + {t( + 'agents.form.advanced.systemPromptOverrideDescription', + )}

diff --git a/frontend/src/conversation/ConversationTile.tsx b/frontend/src/conversation/ConversationTile.tsx index 7ef329f5..6b9c9a1f 100644 --- a/frontend/src/conversation/ConversationTile.tsx +++ b/frontend/src/conversation/ConversationTile.tsx @@ -64,7 +64,10 @@ export default function ConversationTile({ } function handleSaveConversation(changedConversation: ConversationProps) { - if (changedConversation.name.trim().length) { + if ( + changedConversation.name.trim().length && + changedConversation.name.trim() !== conversation.name.trim() + ) { onSave(changedConversation); setIsEdit(false); } else {