Skip to content

[BUG] RooCode cannot detect newly added folder in workspace #8886

@kokorolx

Description

@kokorolx

Problem (one or two sentences)

RooCode fails to detect newly added folders in an existing workspace.

When a user adds a new folder to their current VS Code workspace, RooCode does not automatically recognize it. The extension continues to behave as if the folder does not exist, meaning any files inside the new folder are ignored and unavailable for interaction. Even after adding the folder properly in VS Code, RooCode’s context and indexing remain outdated until the workspace is reloaded manually.

This breaks expected workflow since users frequently modify their workspace structure during development, and RooCode should dynamically pick up those changes.

Context (who is affected and when)

This issue occurs when working on multi-folder projects using RooCode in VS Code. Developers often add new folders—for example, creating a new microservice, library, or feature module—while keeping the same workspace open. Normally, extensions like RooCode should detect the updated workspace structure and include new folders in its context or indexing automatically.

However, RooCode seems to maintain a static snapshot of the workspace that doesn’t update when folders are added. As a result, any code inside the new folder cannot be accessed, searched, or analyzed by RooCode until the entire window is reloaded or the extension is reinitialized.

This impacts productivity, especially for developers frequently modifying folder structures or working on modular codebases.

Reproduction steps

1/ Open VS Code with RooCode extension active.

2/ Add a new folder to the current workspace.

3/ Try to access or open files from the new folder via RooCode.

Expected result

RooCode should automatically detect and read files from the newly added folder.

Actual result

The new folder does not appear or is not recognized by RooCode.

Variations tried (optional)

No response

App Version

3.29.2

API Provider (optional)

None

Model Used (optional)

No response

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

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions