feat: re-add Roo Code Router as embeddings provider for codebase indexing #11298
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related GitHub Issue
Closes: #11294
Description
This PR attempts to address Issue #11294 by re-adding Roo Code Cloud as an embeddings provider option for codebase indexing. Feedback and guidance are welcome.
Key implementation details:
src/services/code-index/embedders/roo.ts): OpenAI-compatible embedder that authenticates via CloudService session token against the Roo Code Router proxy. No third-party API key is required."roo"toEmbedderProviderunion across all type definitions (packages/types,interfaces/manager.ts,interfaces/embedder.ts)."roo"provider handling in_loadAndSetConfiguration()andisConfigured(). TheisConfigured()check usesCloudService.isAuthenticated()for stable auth state detection (fixing the original standby bug).RooEmbedderfor the"roo"provider case.rooprofile withtext-embedding-3-small(1536 dim) andtext-embedding-3-large(3072 dim).Bug prevention vs original implementation (#9543 / #9602):
codebase_searchtool leaked into tool list for all usersroois NOT the default provider;openairemains default.codebaseIndexEnableddefaults tofalseCloudService.isAuthenticated()instead of raw session token check for more stable auth detectionTest Procedure
RooEmbeddercovering constructor,createEmbeddings,validateConfiguration,embedderInfo, and rate limitingisConfigured()with the roo provider (authenticated, not authenticated, no CloudService instance)createEmbedder()with the roo providerRun tests:
Pre-Submission Checklist
Documentation Updates
No documentation changes needed. The feature adds a new provider option in the existing codebase indexing UI.
Important
Re-adds Roo Code Cloud as an embeddings provider for codebase indexing with updated authentication, configuration, and UI support, including tests and localization.
RooEmbedderinroo.tsfor codebase indexing, using CloudService session token for authentication.EmbedderProviderunion to include"roo"incodebase-index.ts,embedding.ts, andvscode-extension-host.ts.rooprofile with modelstext-embedding-3-smallandtext-embedding-3-largeinembeddingModels.ts.CodeIndexPopover.tsxto include "Roo Code Cloud" option._loadAndSetConfiguration()andisConfigured()inconfig-manager.tsto handle"roo"provider.RooEmbedderhandling inservice-factory.ts.RooEmbedderinroo.spec.ts.isConfigured()andcreateEmbedder()withrooprovider inconfig-manager.spec.tsandservice-factory.spec.ts.settings.jsonandembeddings.json.This description was created by
for 8593271. You can customize this summary. It will automatically update as commits are pushed.