mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-21 12:51:17 -05:00
fix: prevent unnecessary config operations when renaming to same name
- Add validation in UI to early return when renaming config to current name - Add server-side validation to prevent config save/delete operations
This commit is contained in:
@@ -1215,6 +1215,10 @@ export class ClineProvider implements vscode.WebviewViewProvider {
|
||||
try {
|
||||
const { oldName, newName } = message.values
|
||||
|
||||
if (oldName === newName) {
|
||||
break
|
||||
}
|
||||
|
||||
await this.configManager.saveConfig(newName, message.apiConfiguration)
|
||||
await this.configManager.deleteConfig(oldName)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user