Skip to content

Conversation

@echobt
Copy link
Contributor

@echobt echobt commented Jan 20, 2026

This PR prevents extensionless files from being indexed by default. Previously, an empty-string entry in the extension allowlist caused any file without an extension (including compiled binaries) to be treated as indexable, which could lead to UTF-8 decode errors or garbage embeddings.

The allowlist logic is now centralized in a shared helper and the empty extension match has been removed. Known extensionless filenames (e.g., Makefile, Dockerfile, README) remain indexable. Unit tests cover both the shared filter and the watcher behavior.

Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
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.

1 participant