From 259ca26dfe958176b7a81a833f003fac69637745 Mon Sep 17 00:00:00 2001 From: Sheikh Limon Date: Mon, 23 Mar 2026 18:28:11 +0600 Subject: [PATCH] fix: remove configured marker when deleting oauth provider configuration (#7887) Signed-off-by: sheikhlimon --- .../settings/providers/modal/ProviderConfiguationModal.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/desktop/src/components/settings/providers/modal/ProviderConfiguationModal.tsx b/ui/desktop/src/components/settings/providers/modal/ProviderConfiguationModal.tsx index b98ea32e32..f46bef1b8f 100644 --- a/ui/desktop/src/components/settings/providers/modal/ProviderConfiguationModal.tsx +++ b/ui/desktop/src/components/settings/providers/modal/ProviderConfiguationModal.tsx @@ -213,6 +213,12 @@ export default function ProviderConfigurationModal({ for (const param of params) { await remove(param.name, param.secret); } + + const hasOAuthKey = params.some((key) => key.oauth_flow); + if (hasOAuthKey) { + const configuredMarker = `${provider.name}_configured`; + await remove(configuredMarker, false); + } } onClose();