-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Fix recursive directory scanning in @ mention "Add Folder" functionality #4863
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix recursive directory scanning in @ mention "Add Folder" functionality #4863
Conversation
6792a1b to
20f02de
Compare
…lity - Fix listFilteredDirectories() to properly handle recursive parameter - Ensure 'Add Folder' shows all directory levels like direct search - Maintain existing ignore patterns and gitignore rules - Resolve TypeScript compilation issues Fixes inconsistency where clicking 'Add Folder' only showed first-level directories while typing @query showed all levels recursively. Signed-off-by: wangdepeng <[email protected]>
20f02de to
d93fcc0
Compare
daniel-lxs
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @village-way, this looks good!
|
@village-way I work for Roo Code. Do you have discord? If so would you be able to reach out to me (username hrudolph). Thank you! |
Hello, my username is |
Related GitHub Issue
Closes: #4833
Description
The
listFilteredDirectories()function insrc/services/glob/list-files.tswas ignoring therecursiveparameter and only scanning immediate child directories. This caused:@srcsearch: Showssrc/,src/components/,src/utils/, etc.src/,public/, missing all subdirectoriesTest Procedure
Testing
Manual Testing Steps
Open chat input and type
@Click "Add Folder"
Verify all directory levels are now visible:
Verify direct search still works: type
@srcand confirm same resultsEdge Cases Tested
.gitignorepatternsnode_modules, etc.)Type of Change
srcor test files.Changed Files
src/services/glob/list-files.tsKey Changes
listFilteredDirectories()function to properly handle recursive directory scanningrecursiveparameterTechnical Details
Before (Broken):
After (Fixed):
Pre-Submission Checklist
npm run lint).console.log) has been removed.npm test).mainbranch.npm run changesetif this PR includes user-facing changes or dependency updates.Screenshots / Videos
Documentation Updates
Additional Notes
Get in Touch
Important
Fixes recursive directory scanning in
listFilteredDirectories()inlist-files.tsto ensure all directory levels are visible when using "Add Folder".listFilteredDirectories()inlist-files.tsto handle recursive directory scanning, ensuring all directory levels are visible when using "Add Folder"..gitignorepatterns and built-in ignore directories (e.g.,node_modules).listFilteredDirectories()to use therecursiveparameter correctly.osinlist-files.ts.This description was created by
for 85022e8236470c5f79933b84442bb9b83cdbd306. You can customize this summary. It will automatically update as commits are pushed.