From a97ecd9e887c257e3ed5560524bb5dfc4b3b87f3 Mon Sep 17 00:00:00 2001 From: Thibault Jaigu Date: Fri, 17 Oct 2025 11:51:36 +0100 Subject: [PATCH] fix: create new Requesty profile during OAuth instead of updating default --- src/core/webview/ClineProvider.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 0f888e975a92..230775b7cde3 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1457,16 +1457,13 @@ export class ClineProvider // Requesty async handleRequestyCallback(code: string) { - let { apiConfiguration, currentApiConfigName = "default" } = await this.getState() - const newConfiguration: ProviderSettings = { - ...apiConfiguration, apiProvider: "requesty", requestyApiKey: code, - requestyModelId: apiConfiguration?.requestyModelId || requestyDefaultModelId, + requestyModelId: requestyDefaultModelId, } - await this.upsertProviderProfile(currentApiConfigName, newConfiguration) + await this.upsertProviderProfile("Requesty", newConfiguration) } // Task history