feat: log out from cloud when resetting extension state (#8312)

Co-authored-by: Roo Code <roomote@roocode.com>
Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
This commit is contained in:
roomote[bot] 2025-09-25 12:24:46 -04:00 committed by GitHub
parent bf1aafad9b
commit 43c1de0d7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2255,6 +2255,18 @@ export class ClineProvider
return
}
// Log out from cloud if authenticated
if (CloudService.hasInstance()) {
try {
await CloudService.instance.logout()
} catch (error) {
this.log(
`Failed to logout from cloud during reset: ${error instanceof Error ? error.message : String(error)}`,
)
// Continue with reset even if logout fails
}
}
await this.contextProxy.resetAllState()
await this.providerSettingsManager.resetAllConfigs()
await this.customModesManager.resetCustomModes()