Skip to content

Conversation

@srivathsav004
Copy link

Summary

Fixes an issue where the read-many-files tool incorrectly filtered out images and PDFs unless they were explicitly requested, causing directories with assets to appear empty.

Problem

The tool skipped non-text files when using broad glob patterns like *, resulting in incomplete file listings.

Solution

Removed the requestedExplicitly check so that all files matching glob patterns are included, regardless of file type.

Changes

  • Modified: packages/core/src/tools/read-many-files.ts
    • Removed requestedExplicitly check
  • Updated: Test case to reflect new behavior

Testing

  • All 31 tests pass
  • Updated test verifies that PDFs are now included by default

Fixes #26

Remove the requestedExplicitly check that filtered out images and PDFs
unless explicitly requested by name or extension. Now all files matching
glob patterns are included regardless of file type.

Fixes issue where directories with assets appeared empty and "list all files"
queries returned misleading results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Asset Blindness in File Search

1 participant