Skip to content

glob never matches hidden files (no --hidden), inconsistent with read/grep #45911

Closed

Description

@skyzhao1223

Describe the bug

The glob tool never matches hidden files. It calls ripgrep.glob without hidden: true, so rg omits --hidden; rg's hidden-file filtering happens before glob matching, so even an explicit pattern like .github/workflows/*.yml or .eslintrc.json returns "No files found".

This is inconsistent with read/ls, which do surface dotfiles, and with grep, which passes --hidden.

Suggested fix

Pass --hidden for glob (or expose it as an option), so explicit dotfile patterns match.

Environment

  • opencode version: latest dev

Activity

  1. github-actions commented on Aug 28, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  2. EpicEric commented on Sep 12, 2026

    @EpicEric

    Reproduced on 1.18.29 and also on the dev branch

    Here's an example session where the agent fails to find the file inside of .github/: https://opncd.ai/share/B0FY5MJe

  3. neriousy commented on Oct 19, 2026

    @neriousy
    Member

    This is addressed in v2: the glob tool now accepts hidden: true to include dotfiles and hidden directories such as .github. Hidden entries remain excluded by default; the new option implements the opt-in approach suggested here. To install v2, run npm i -g @opencode/cli@latest. If you still see this on v2, please open a new issue with the details.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions