Skip to content

Roo Code fails to open diff editor in specific VS Code contexts #4199

@sstublic

Description

@sstublic

App Version

3.19.1

API Provider

Not Applicable / Other

Model Used

N/A

🔁 Steps to Reproduce

Using Windows 11, VS Code 1.100.2

  1. Open VSCode
  2. Move Roo into editor window
  3. Move Roo editor window onto another monitor (this spawns a child VSCode or something)
  4. Lock that window to prevent Roo opening diff editor in this editor instance
  5. Attempt to do any change that uses diff editor
  6. Roo will open correct diff editor in the original VSCode editor
  7. Roo will wait for a specific time and not detect that diff has been correctly opened AND fail with error message "Failed to open diff editor, please try again..."

Image

This flow worked some time ago (a month?) without any problems.
Lately it has increasingly started to fail, to a point where it's not usable anymore. Maybe it never works now, didn't pinpoint this because diff editor is not always used.

The whole setup is logical and very convenient for multi-monitor setup. I want to be able to see and follow Roo process on one screen (including Approve prompts) and actual changes on the other.

Screenshot of both screens:

Image

This NEVER happens if I keep Roo window on the same monitor (VSCode instance) as the diff editor.

💥 Outcome Summary

Expected diff editor to work in described setup.

📄 Relevant Logs or Errors (Optional)

More detailed error message from conversation:


[apply_diff for 'Program.cs'] Result:

The tool execution failed with the following error:
<error>
Error applying diff: {"name":"Error","message":"Failed to open diff editor, please try again...","stack":"Error: Failed to open diff editor, please try again...\n    at Timeout._onTimeout (c:\\Users\\XXX\\.vscode\\extensions\\rooveterinaryinc.roo-cline-3.19.1\\dist\\extension.js:3138:2294)\n    at listOnTimeout (node:internal/timers:581:17)\n    at processTimers (node:internal/timers:519:7)"}
</error>

Metadata

Metadata

Assignees

Labels

Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions