diff --git a/webview-ui/src/components/settings/ApiConfigManager.tsx b/webview-ui/src/components/settings/ApiConfigManager.tsx index 0a60f6036e1..87c779b3f36 100644 --- a/webview-ui/src/components/settings/ApiConfigManager.tsx +++ b/webview-ui/src/components/settings/ApiConfigManager.tsx @@ -58,7 +58,9 @@ const ApiConfigManager = ({ if (editState === "new") { onUpsertConfig(trimmedValue) } else if (editState === "rename" && currentApiConfigName) { - onRenameConfig(currentApiConfigName, trimmedValue) + if (currentApiConfigName !== trimmedValue) { + onRenameConfig(currentApiConfigName, trimmedValue) + } } setEditState(null)