mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
feat: auto-open sidebar when UnifiedExtensionBridge starts a task
This commit is contained in:
parent
7b0f489ea2
commit
3347ec28dd
1 changed files with 10 additions and 1 deletions
|
|
@ -724,6 +724,15 @@ export class ClineProvider
|
|||
throw new OrganizationAllowListViolationError(t("common:errors.violated_organization_allowlist"))
|
||||
}
|
||||
|
||||
// If task is being started via bridge (remote control enabled), ensure sidebar is visible
|
||||
const enableTaskBridge = isRemoteControlEnabled(cloudUserInfo, remoteControlEnabled)
|
||||
if (enableTaskBridge && !this.view?.visible) {
|
||||
// Open the sidebar if it's not already visible
|
||||
await vscode.commands.executeCommand(`${Package.name}.SidebarProvider.focus`)
|
||||
// Wait briefly for the view to become visible
|
||||
await delay(100)
|
||||
}
|
||||
|
||||
const task = new Task({
|
||||
provider: this,
|
||||
apiConfiguration,
|
||||
|
|
@ -738,7 +747,7 @@ export class ClineProvider
|
|||
parentTask,
|
||||
taskNumber: this.clineStack.length + 1,
|
||||
onCreated: this.taskCreationCallback,
|
||||
enableTaskBridge: isRemoteControlEnabled(cloudUserInfo, remoteControlEnabled),
|
||||
enableTaskBridge,
|
||||
...options,
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue