mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
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:
parent
bf1aafad9b
commit
43c1de0d7e
1 changed files with 12 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue