Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/exports/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding error handling around the call to saveConfig. If persisting the configuration fails, it could interrupt subsequent UI updates. Wrapping this call in try/catch (or ensuring errors are caught upstream) will improve robustness.

await this.sidebarProvider.postStateToWebview()
}

Expand Down