Skip to content

Commit 2dfecc1

Browse files
committed
Prevent a noisy cloud agent exception
1 parent b011b63 commit 2dfecc1

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
@@ -1820,7 +1820,9 @@ export class ClineProvider
18201820
let cloudOrganizations: CloudOrganizationMembership[] = []
18211821

18221822
try {
1823-
cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
1823+
if (!CloudService.instance.isCloudAgent) {
1824+
cloudOrganizations = await CloudService.instance.getOrganizationMemberships()
1825+
}
18241826
} catch (error) {
18251827
console.error(
18261828
`[getStateToPostToWebview] failed to get cloud organizations: ${error instanceof Error ? error.message : String(error)}`,

0 commit comments

Comments
 (0)