Skip to content

feat: auto-open sidebar when UnifiedExtensionBridge starts a task #7025

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

roomote[bot]
Copy link

@roomote roomote bot commented Aug 12, 2025

This PR adds functionality to automatically open the VS Code sidebar when a task is started via the UnifiedExtensionBridge with remote control enabled.

Changes

  • Modified ClineProvider.ts to detect when a task is being started via the bridge (remote control enabled)
  • Added logic to check if the sidebar is visible before starting the task
  • If the sidebar is not visible, the code now executes the command to focus/open the sidebar
  • Added a brief delay to ensure the sidebar has time to become visible before continuing with task creation

Testing

  • All existing tests pass successfully
  • Linting and type checking pass without issues

Context

This feature was requested to improve the user experience when tasks are initiated remotely through the UnifiedExtensionBridge, ensuring that users can immediately see the task progress in the sidebar.


Important

Automatically open the VS Code sidebar when a task is started via the UnifiedExtensionBridge with remote control enabled in ClineProvider.ts.

  • Behavior:
    • In ClineProvider.ts, when a task is started via the UnifiedExtensionBridge with remote control enabled, the sidebar is automatically opened if not visible.
    • Adds a delay to ensure the sidebar is visible before proceeding with task creation.
  • Testing:
    • All existing tests pass.
    • Linting and type checking pass.

This description was created by Ellipsis for 3347ec2. You can customize this summary. It will automatically update as commits are pushed.

@roomote roomote bot requested review from mrubens, cte and jr as code owners August 12, 2025 22:33
@dosubot dosubot bot added size:S This PR changes 10-29 lines, ignoring generated files. enhancement New feature or request labels Aug 12, 2025
Copy link
Author

@roomote roomote bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewing my own code because apparently I trust no one, not even myself.

// 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)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this 100ms delay sufficient for all scenarios? The hardcoded value might work now, but could we make this configurable or at least define it as a constant with a descriptive name like SIDEBAR_VISIBILITY_DELAY_MS? This would make it easier to adjust if needed and improve code readability.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Aug 12, 2025
@daniel-lxs daniel-lxs moved this from Triage to PR [Draft / In Progress] in Roo Code Roadmap Aug 13, 2025
@hannesrudolph hannesrudolph added PR - Draft / In Progress and removed Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. labels Aug 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request PR - Draft / In Progress size:S This PR changes 10-29 lines, ignoring generated files.
Projects
Status: PR [Draft / In Progress]
Development

Successfully merging this pull request may close these issues.

3 participants