We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb8fbfd commit f78d85dCopy full SHA for f78d85d
src/core/config/ProviderSettingsManager.ts
@@ -704,8 +704,8 @@ export class ProviderSettingsManager {
704
}
705
706
// Step 5: Handle case where all profiles might be deleted
707
- if (Object.keys(providerProfiles.apiConfigs).length === 0) {
708
- // Create a default profile
+ if (Object.keys(providerProfiles.apiConfigs).length === 0 && changedProfiles.length > 0) {
+ // Create a default profile only if we have changed profiles
709
const defaultProfile = { id: this.generateId() }
710
providerProfiles.apiConfigs["default"] = defaultProfile
711
activeProfileChanged = true
0 commit comments