Roo-Code/src/services/code-index
Roo Code ba42cbdf87 fix: enforce .rooignore rules for codebase indexing, file reads, and file listing
- Harden validateAccess() to fall back to original path when realpath
  resolves outside cwd (fixes submodule/symlink bypass)
- Change error handling in validateAccess() to fail closed (deny access)
  instead of fail open
- Add .rooignore post-filtering in CodebaseSearchTool to exclude ignored
  files from search results even if they were previously indexed
- Pass RooIgnoreController from manager through service-factory to scanner
  so the scanner reuses the workspace-root controller instead of creating
  its own from the scan directory
- Fix FileWatcher to initialize fallback RooIgnoreController in
  initialize() so .rooignore rules load even when manager controller
  is not passed
- Add tests for realpath-outside-cwd fallback, fail-closed error handling,
  CodebaseSearchTool rooignore filtering, and scanner controller passthrough

Fixes #11797
2026-02-28 15:42:32 +00:00
..
__tests__ feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00
constants feat: add batch limiting to code indexer (#5891) 2025-07-19 09:37:37 -04:00
embedders Reapply Batch 1: 22 clean non-AI-SDK cherry-picks (#11473) 2026-02-14 13:47:12 -07:00
interfaces feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00
processors fix: enforce .rooignore rules for codebase indexing, file reads, and file listing 2026-02-28 15:42:32 +00:00
shared Move @roo-code/cloud to the Roo-Code repo (#7503) 2025-08-28 11:18:45 -07:00
vector-store fix: add keyword index for type field to fix Qdrant codebase_search error (#8964) 2025-11-01 13:20:56 -04:00
cache-manager.ts feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00
config-manager.ts feat: Add provider routing selection for OpenRouter embeddings (#9144) (#9693) 2025-12-02 22:59:55 -05:00
manager.ts feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00
orchestrator.ts feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00
search-service.ts feat: add comprehensive error telemetry to code-index service (#5595) 2025-07-11 23:01:50 -04:00
service-factory.ts fix: enforce .rooignore rules for codebase indexing, file reads, and file listing 2026-02-28 15:42:32 +00:00
state-manager.ts feat: add per-workspace indexing opt-in and stop/cancel control (#11456) 2026-02-18 23:09:17 -07:00