Skip to content

[BUG] Disable automatic full-workspace indexing: Multi-Root Workspaces cause local LLM DoS/Timeouts #10569

@thomas-mindruptive

Description

@thomas-mindruptive

I am using VS Code with a Multi-Root Workspace containing multiple projects. When I start indexing, Roo Code immediately attempts to index every single root folder in the workspace simultaneously.
This creates a massive spike in batch requests. Since I am using a local provider (Ollama) on consumer hardware (AMD Ryzen, running on CPU/iGPU), the provider cannot handle the concurrent load from multiple project scanners.

It's challenging to identify the files being indexed, because there is, as far as I have seen, no "live-file-indicator" nor a log output.
If there were, the problem would be immediately visible.

Roo-Cline: 3.39.1

Version: 1.107.1 (user setup)
Commit: 994fd12f8d3a5aa16f17d42c041e5809167e845a
Date: 2025-12-17T14:15:14.850Z
Electron: 39.2.3
ElectronBuildId: 12895514
Chromium: 142.0.7444.175
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

ollama + quadrant run as local (non docker) processes

Ollama models: nomic-embed-text and nomic-embed-code.

I currently have to manually create .rooignore files containing * in every project folder I am not working on to prevent Roo Cline from killing my local Ollama instance. This is a tedious workaround and defeats the purpose of a workspace.

Context (who is affected and when)

Happens to users when they start indexing or restart VSC, and it automatically starts indexing.

Reproduction steps

  • Open VSC with workspace file that contains multiple folders.
  • Enable indexing (ollama + qadrant)
  • Indexing starts and shows "0/N blocks" without ever increasing "0"
  • After a few minutes, the indexing dialog log shows:

Fehler während des ersten Scans: Indexing failed: Verarbeitung des Batches nach 3 Versuchen fehlgeschlagen: Ollama Einbettung fehlgeschlagen: Ollama API-Anfrage fehlgeschlagen mit Status 400 Bad Request: {"error":"do embedding request: Post "[http://127.0.0.1:63812/embedding\](https://www.google.com/url?sa=E&q=http%3A%2F%2F127.0.0.1%3A63812%2Fembedding%5C)": read tcp 127.0.0.1:63826-\u003e127.0.0.1:63812: wsarecv: Eine vorhandene Verbindung wurde vom Remotehost geschlossen."}

  • and dev console:
log.ts:460   ERR [Extension Host] Ollama embedding failed: AbortError: This operation was aborted
    at node:internal/deps/undici/undici:14900:13
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async globalThis.fetch ...
    at async Dze.createEmbeddings (...\extension.js:924:19344)

log.ts:460   ERR [Extension Host] [DirectoryScanner] Error processing batch (attempt 1) in workspace c:\dev\pure\pure-svelte: Error: Verbindung zum Embedder-Dienst fehlgeschlagen.

Expected result

Indexes only the current project (not index entire workspace) or at least warns "workspace with many files..." or provides a config seeting "do not index entire workspace"

Actual result

Indexes entire workspace with all included folders. Does not indicate which files are indexed.

Variations tried (optional)

No response

App Version

3.39.1

API Provider (optional)

Google Gemini

Model Used (optional)

gemini-3-flash-preview

Roo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Indexing dialog:

Fehler während des ersten Scans: Indexing failed: Verarbeitung des Batches nach 3 Versuchen fehlgeschlagen: Ollama Einbettung fehlgeschlagen: Ollama API-Anfrage fehlgeschlagen mit Status 400 Bad Request: {"error":"do embedding request: Post "[http://127.0.0.1:63812/embedding\](https://www.google.com/url?sa=E&q=http%3A%2F%2F127.0.0.1%3A63812%2Fembedding%5C)": read tcp 127.0.0.1:63826-\u003e127.0.0.1:63812: wsarecv: Eine vorhandene Verbindung wurde vom Remotehost geschlossen."}

Dev console:
log.ts:460   ERR [Extension Host] Ollama embedding failed: AbortError: This operation was aborted
    at node:internal/deps/undici/undici:14900:13
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async globalThis.fetch ...
    at async Dze.createEmbeddings (...\extension.js:924:19344)

log.ts:460   ERR [Extension Host] [DirectoryScanner] Error processing batch (attempt 1) in workspace c:\dev\

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