Skip to content

Cursor Focus Disruption During Tool Operations #858

@hannesrudolph

Description

@hannesrudolph

Which version of the app are you using?

3.3.14

Which API Provider are you using?

OpenRouter

Which Model are you using?

n/a

What happened?

The cursor focus is being unintentionally redirected during certain tool operations in Roo Code:

  1. When the ask_followup_question tool is used, the cursor focus automatically shifts away from the current active location (e.g., if typing in another Roo Code tab).

  2. When using file modification tools (write_to_file or apply_diff), the cursor focus automatically moves to the modified document, even if the user was actively typing in the task prompt box.

This behavior disrupts the user's workflow and requires manual refocusing to continue their previous task.

Steps to reproduce

For ask_followup_question Tool:

  1. Open two tabs in Roo Code (Tab A and Tab B)
  2. In Tab A, start a task that will likely trigger the ask_followup_question tool
  3. While Tab A's task is running, switch to Tab B and start typing in the task prompt
  4. When Tab A triggers the ask_followup_question tool, observe that the cursor focus shifts away from Tab B where you were typing

For File Modification Tools:

  1. Open two tabs in Roo Code (Tab A and Tab B)
  2. In Tab A, start a task that will involve file modifications
  3. While Tab A's task is running, switch to Tab B and start typing in the task prompt box
  4. When Tab A triggers either write_to_file or apply_diff tool operation
  5. Observe that the cursor focus automatically moves to the modified document in Tab A
  6. Verify that the cursor is no longer in Tab B's task prompt box where you were typing

Relevant API REQUEST output

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions