File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -141,11 +141,20 @@ export async function activate(context: vscode.ExtensionContext) {
141141 try {
142142 const config = await CloudService . instance . cloudAPI . bridgeConfig ( )
143143
144+ const isCloudAgent =
145+ typeof process . env . ROO_CODE_CLOUD_TOKEN === "string" && process . env . ROO_CODE_CLOUD_TOKEN . length > 0
146+
147+ cloudLogger ( `[CloudService] isCloudAgent = ${ isCloudAgent } , socketBridgeUrl = ${ config . socketBridgeUrl } ` )
148+
144149 ExtensionBridgeService . handleRemoteControlState (
145150 userInfo ,
146- contextProxy . getValue ( "remoteControlEnabled" ) ,
147- { ...config , provider, sessionId : vscode . env . sessionId } ,
148- ( message : string ) => outputChannel . appendLine ( message ) ,
151+ isCloudAgent ? true : contextProxy . getValue ( "remoteControlEnabled" ) ,
152+ {
153+ ...config ,
154+ provider,
155+ sessionId : vscode . env . sessionId ,
156+ } ,
157+ cloudLogger ,
149158 )
150159 } catch ( error ) {
151160 cloudLogger (
You can’t perform that action at this time.
0 commit comments