Browse Source

Prevent a noisy cloud agent exception (#8577)

Chris Estreich 4 months ago
parent
commit
520b2f63da
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/core/webview/ClineProvider.ts

+ 3 - 1
src/core/webview/ClineProvider.ts

@@ -1836,7 +1836,9 @@ export class ClineProvider
 		let cloudOrganizations: CloudOrganizationMembership[] = []
 
 		try {
-			cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
+			if (!CloudService.instance.isCloudAgent) {
+				cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
+			}
 		} catch (error) {
 			// Ignore this error.
 		}