Skip to content

fix(core): match explicitly requested hidden globs#35178

Open
dbpolito wants to merge 3 commits into
anomalyco:devfrom
dbpolito:glob-dotpaths
Open

fix(core): match explicitly requested hidden globs#35178
dbpolito wants to merge 3 commits into
anomalyco:devfrom
dbpolito:glob-dotpaths

Conversation

@dbpolito

@dbpolito dbpolito commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #32669

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

AI agents often try to glob explicitly requested hidden directories like .ai/*, .github/*, or src/.hidden/*, but those searches currently return no results because ripgrep is not run with --hidden.

This adds hidden-file scanning only when the glob pattern itself names a hidden path segment. Broad patterns like **/*.ts keep the existing behavior and still exclude hidden directories by default.

How did you verify your code works?

Tests added

Screenshots / recordings

Tests added

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. labels Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Potential duplicate found:

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Jul 3, 2026
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Glob tool does not match files under dot directories

1 participant