-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Description
Description
When running VSCode over SSH, Roo-Code can take 1-2 seconds to fully load. During this delay, users may start typing in other parts of VSCode (e.g., the integrated terminal). When Roo-Code finishes loading, it automatically steals focus to its input text box, causing the user to inadvertently type into Roo-Code instead of their intended target.
Steps to Reproduce
- Connect to a remote server via SSH in VSCode
- Open VSCode (or reload the window)
- Immediately start typing in the integrated terminal while Roo-Code is still loading
- Observe that when Roo-Code loads, focus shifts to the Roo-Code input box
- Notice that your terminal input is now being typed into the Roo-Code text box instead
Expected Behavior
Roo-Code should not automatically steal focus from other elements when it finishes loading. Focus should remain where the user placed it.
Actual Behavior
Roo-Code takes focus when it loads, interrupting the user's workflow and causing them to type in the wrong location.
Accessibility Impact
This behavior violates WCAG 2.1 accessibility criteria:
- WCAG 3.2.1 (On Focus): Components should not initiate a change of context when they receive focus
- WCAG 3.2.2 (On Input): Changing the setting of a user interface component should not automatically cause a change of context unless the user has been advised
These are Level A criteria, meaning they are fundamental accessibility requirements.
Environment
- VSCode: Remote SSH connection
- Roo-Code: Latest version
- Network: Variable latency (SSH over network)
Suggested Fix
- Do not auto-focus the Roo-Code input box on extension load
- If auto-focus is desired, add a user setting to disable this behavior
- Consider checking if the user is already interacting with another element before taking focus
Related Issues
This is distinct from previous focus-stealing issues (#8840, #2122, #4784) which were about focus stealing during file edits. This issue is specifically about initial extension load.
Labels: bug, accessibility, a11y, WCAG
Priority: Medium (affects user experience and accessibility compliance)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status