Skip to content

Commit 520b2f6

Browse files
authored
Prevent a noisy cloud agent exception (#8577)
1 parent 06a5c2d commit 520b2f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1836,7 +1836,9 @@ export class ClineProvider
18361836
let cloudOrganizations: CloudOrganizationMembership[] = []
18371837

18381838
try {
1839-
cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
1839+
if (!CloudService.instance.isCloudAgent) {
1840+
cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
1841+
}
18401842
} catch (error) {
18411843
// Ignore this error.
18421844
}

0 commit comments

Comments
 (0)