mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-08 03:07:53 +00:00
Always set remoteControlEnabled to true for cloud agents (#7448)
This commit is contained in:
parent
02f551cec5
commit
c479678d8e
1 changed files with 12 additions and 3 deletions
|
|
@ -141,11 +141,20 @@ export async function activate(context: vscode.ExtensionContext) {
|
|||
try {
|
||||
const config = await CloudService.instance.cloudAPI.bridgeConfig()
|
||||
|
||||
const isCloudAgent =
|
||||
typeof process.env.ROO_CODE_CLOUD_TOKEN === "string" && process.env.ROO_CODE_CLOUD_TOKEN.length > 0
|
||||
|
||||
cloudLogger(`[CloudService] isCloudAgent = ${isCloudAgent}, socketBridgeUrl = ${config.socketBridgeUrl}`)
|
||||
|
||||
ExtensionBridgeService.handleRemoteControlState(
|
||||
userInfo,
|
||||
contextProxy.getValue("remoteControlEnabled"),
|
||||
{ ...config, provider, sessionId: vscode.env.sessionId },
|
||||
(message: string) => outputChannel.appendLine(message),
|
||||
isCloudAgent ? true : contextProxy.getValue("remoteControlEnabled"),
|
||||
{
|
||||
...config,
|
||||
provider,
|
||||
sessionId: vscode.env.sessionId,
|
||||
},
|
||||
cloudLogger,
|
||||
)
|
||||
} catch (error) {
|
||||
cloudLogger(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue