Skip to content

[BUG][A11Y] Roo-Code steals focus on load when using VSCode over SSH (WCAG 3.2.1, 3.2.2 violation) [COM-360] #10492

@lemiesz

Description

@lemiesz

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

  1. Connect to a remote server via SSH in VSCode
  2. Open VSCode (or reload the window)
  3. Immediately start typing in the integrated terminal while Roo-Code is still loading
  4. Observe that when Roo-Code loads, focus shifts to the Roo-Code input box
  5. 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

No one assigned

    Labels

    Issue - Unassigned / ActionableClear and approved. Available for contributors to pick up.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Issue [Unassigned]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions