fix: update duplicate tool name error message

This commit is contained in:
Viktor Avelino
2026-04-13 16:52:48 -04:00
parent 39b8e52937
commit 49e5d8f65a

View File

@ -200,7 +200,10 @@ export default function StepReview() {
// Check against existing provider tools (skip for pre-existing flows in edit mode)
if (!errors.has(item.flowId) && existingToolNames.has(normalized)) {
if (!(isEditMode && preExistingFlowIds.has(item.flowId))) {
errors.set(item.flowId, "Tool name already exists in the provider");
errors.set(
item.flowId,
"Edit tool name (already exists in provider)",
);
}
}
}