fix: persist settings on api.setConfiguration (#2341)

Values weren't being saved to the settings store, preventing
switching to newly created profiles.

Co-authored-by: Greg Taylor <gregtaylor@netflix.com>
This commit is contained in:
Greg Taylor 2025-04-06 08:19:30 -07:00 committed by GitHub
parent 5fb9af40fb
commit 57d97319dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -172,6 +172,7 @@ export class API extends EventEmitter<RooCodeEvents> implements RooCodeAPI {
public async setConfiguration(values: RooCodeSettings) {
await this.sidebarProvider.setValues(values)
await this.sidebarProvider.providerSettingsManager.saveConfig(values.currentApiConfigName || "default", values)
await this.sidebarProvider.postStateToWebview()
}