Skip to content

Commit c479678

Browse files
authored
Always set remoteControlEnabled to true for cloud agents (#7448)
1 parent 02f551c commit c479678

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

src/extension.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)