-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
Description
Describe the bug
In github/copilot-cli, glob appears unable to match files excluded by .gitignore. That makes it hard to inspect intentionally ignored but still important paths—such as generated artifacts, local config, or harness outputs—even when the user explicitly targets those paths.
Affected version
Not provided.
Steps to reproduce the behavior
- Create or use a repository with ignored files, for example:
.gitignorecontainsdist/or*.local- files like
dist/output.txtorsettings.localexist
- Start
copilotin that repository. - Ask it to inspect or glob an ignored path explicitly, such as
dist/**or*.local. - Observe that the ignored files are not matched / not visible.
Expected behavior
If the user explicitly targets an ignored path, glob should either:
- include those files, or
- clearly explain that ignored files are excluded.
Ideally there would be an opt-in way to include ignored files when needed.
Additional context
This limitation makes it harder to work with ignored-but-important files during troubleshooting and local workflows. If this behavior is intentional, it would help to document it clearly.
Related: #1981
Reactions are currently unavailable