Skip to content

Commit 55c84c5

Browse files
committed
Deduplicate remoteControlEnabled setting
1 parent bacd427 commit 55c84c5

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1892,17 +1892,7 @@ export class ClineProvider
18921892
includeDiagnosticMessages: includeDiagnosticMessages ?? true,
18931893
maxDiagnosticMessages: maxDiagnosticMessages ?? 50,
18941894
includeTaskHistoryInEnhance: includeTaskHistoryInEnhance ?? true,
1895-
remoteControlEnabled: (() => {
1896-
try {
1897-
const cloudSettings = CloudService.instance.getUserSettings()
1898-
return cloudSettings?.settings?.extensionBridgeEnabled ?? false
1899-
} catch (error) {
1900-
console.error(
1901-
`[getStateToPostToWebview] failed to get remote control setting from cloud: ${error instanceof Error ? error.message : String(error)}`,
1902-
)
1903-
return false
1904-
}
1905-
})(),
1895+
remoteControlEnabled,
19061896
}
19071897
}
19081898

0 commit comments

Comments
 (0)