Skip to content

Commit ac2d5ae

Browse files
committed
feat: log out from cloud when resetting extension state
When users click the Reset button in settings, they are now automatically logged out from Roo Code Cloud to ensure a complete reset of the extension state. This prevents any lingering cloud authentication after reset.
1 parent bf1aafa commit ac2d5ae

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.tmp/Roo-Code

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 86debeef43acbea9bdc1aa4b38d514541e164c91

src/core/webview/ClineProvider.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2255,6 +2255,18 @@ export class ClineProvider
22552255
return
22562256
}
22572257

2258+
// Log out from cloud if authenticated
2259+
if (CloudService.hasInstance() && CloudService.instance.isAuthenticated()) {
2260+
try {
2261+
await CloudService.instance.logout()
2262+
} catch (error) {
2263+
this.log(
2264+
`Failed to logout from cloud during reset: ${error instanceof Error ? error.message : String(error)}`,
2265+
)
2266+
// Continue with reset even if logout fails
2267+
}
2268+
}
2269+
22582270
await this.contextProxy.resetAllState()
22592271
await this.providerSettingsManager.resetAllConfigs()
22602272
await this.customModesManager.resetCustomModes()

0 commit comments

Comments
 (0)