Skip to content

BUG: Diff editing & read paths are incorrect for multi-folder/repo vscode workspaces #2053

@bitnom

Description

@bitnom

Which version of the app are you using?

3.10.5

Which API Provider are you using?

Google Gemini

Which Model are you using?

gemini pro 2.5

What happened?

you'll get something like:

Error applying diff:
ENOENT: no such file or directory, open '/home/user/code/workspace/package.json'

and then:

Error reading file:
File not found: /home/user/code/workspace/libs/mcp-typescript-sdk/libs/mcp-typescript-sdk/package.json

(notice path duplication)

where /home/user/code/workspace/libs/mcp-typescript-sdk is the git repo it's supposed to be working on.

Steps to reproduce

Create a multifolder vscode workspace with multiple git repos and prompt roo to start working on one of the subdir projects. I tried to resolve it by global prompt explaining the situation about CWD but it didn't work.

Relevant API REQUEST output

Additional context

This problem applies to both reading files and editing them. After a few tries the AI is usually able to read the file by adjusting paths. The solution the AI is sometimes able to come up with for editing is to write out the entire file without diff editing. Idk why. I'm guessing that tool is handling paths differently. It's never able to recover diff editing from what I've seen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - Needs InfoMissing details or unclear. Waiting on author to provide more context.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions