Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jan 6, 2026

Related GitHub Issue

Closes: #8131

Roo Code Task Context (Optional)

This PR was created in response to a user question on Issue #8131 asking which directories are excluded from codebase indexing.

Description

This PR attempts to address Issue #8131 by making the excluded directories visible in the UI. Feedback and guidance are welcome.

Changes:

  • Added EXCLUDED_INDEXING_DIRECTORIES and EXCLUDED_HIDDEN_DIRECTORY_PATTERN constants to @roo-code/types package for reuse
  • Added a collapsible "Excluded Directories" section in the CodeIndexPopover UI
  • Added translation keys for the new section

Implementation details:

  • The new section appears below the embedding provider settings in the CodeIndexPopover
  • Directories are displayed as badges for easy scanning
  • Includes note about hidden directories (starting with .) being excluded
  • Uses the same collapsible pattern as other sections in the popover

Test Procedure

  1. Enable codebase indexing in Roo Code settings
  2. Click the codebase indexing icon in the chat input area
  3. Scroll down in the popover to see the new "Excluded Directories" section
  4. Click to expand and verify the list of excluded directories is displayed
  5. Unit tests pass: cd webview-ui && npx vitest run src/components/chat/__tests__/CodeIndexPopover

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

UI change adds a collapsible section showing:

  • node_modules, pycache, env, venv, target/dependency, build/dependencies, dist, out, bundle, vendor, tmp, temp, deps, pkg, Pods, .git
  • Note about hidden directories being excluded

Documentation Updates

  • No documentation updates are required.

Additional Notes

This is a UI transparency feature to help users understand what is being indexed without needing to look at source code. The actual exclusion logic already exists in src/services/glob/constants.ts and is working correctly.

Get in Touch

Discord: @roomote

This adds visibility for which directories are excluded from codebase
indexing, addressing the user question about whether node_modules and
dist are indexed (they are not).

Changes:
- Add EXCLUDED_INDEXING_DIRECTORIES constant to @roo-code/types package
- Add collapsible "Excluded Directories" section to CodeIndexPopover
- Add translation keys for the new UI section

This helps users understand what directories are automatically excluded
from indexing without having to look at the source code.
@roomote
Copy link
Contributor Author

roomote bot commented Jan 6, 2026

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The implementation correctly adds visibility for excluded directories in the codebase indexing settings UI. The directory list in the new constants matches the source of truth in src/services/glob/constants.ts, and the UI follows existing collapsible patterns.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jan 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Per-workspace control for Codebase Indexing (reduce GPU)

3 participants