Skip to content

[BUG] Roo wants to read this file but the file is a folder #10401

@RQuintin

Description

@RQuintin

Problem (one or two sentences)

So I have a codebase in folder - let's say located here: ~/codebase

When I open the folder "~/codebase" in vscode or create a workspace for the folder and then use roo code; I get the error below all the time - which blocks flow because I have to manually click the proceed button. I think this is particularly bad with Grok Fast 4.1 Code - not sure if it's model provider specific. I'm on Linux but I can't figure out why roo code wants to read a folder as though it's a file.

Roo wants to edit this file "~/codebase"

Roo is having trouble...
This may indicate a failure in the model's thought process or inability to use a tool properly, which can be mitigated with some user guidance (e.g. "Try breaking down the task into smaller steps").

Context (who is affected and when)

Anytime analysis of the codebase is required.

Reproduction steps

Arch Linux; Code OSS. Version: 1.107.0
Commit: 302ff6a2e235c95b88e587d4a4b6eeb1b6613297
Date: 2025-12-12T19:06:53.864Z
Electron: 39.2.7
ElectronBuildId: undefined
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Linux x64 6.17.9-arch1-1

Expected result

No need to try to view the project root folder as a file. Maybe a Linux OS thing?

Actual result

Roo does not try to read the project root folder ever, it's a folder not a file. Why try to read it?

Variations tried (optional)

No response

App Version

Version: 3.38.0 (83b7045)

API Provider (optional)

xAI (Grok)

Model Used (optional)

grok-code-fast-1

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue/PR - TriageNew issue. Needs quick review to confirm validity and assign labels.bugSomething isn't working

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions