You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
When including multiple directories, @'ing a directory seems to pull in directories that match in all included directories #8748
This prompt: Take a good look at @scripts/ and @buildLogic/dependency-analysis/ resulted in Gemini automatically loading 1115 files into context
The majority of these files were built outputs. It reduced my context from 100% to 66%.
What did you expect to happen?
#1: @'ing a directory would give Gemini the list of files in that directory, instead of filling it's context with everything it could find. #2: @'ing a directory would either only load the files from the main directory, or there would be a mechanism to specify which directory the files should be looked for in.
The user is reporting a bug where mentioning a directory with @ incorrectly pulls in files from all configured 'includeDirectories' that have a matching name, rather than just the specified one. This is a core file resolution issue that significantly degrades a key feature, making it a high priority.
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Activity
gemini-cli commentedon Sep 18, 2025
The user is reporting a bug where mentioning a directory with
@incorrectly pulls in files from all configured 'includeDirectories' that have a matching name, rather than just the specified one. This is a core file resolution issue that significantly degrades a key feature, making it a high priority.agmsb commentedon Sep 19, 2025
Thanks for filing, we'll investigate this.
fix: Prevent @Directory references from loading files across all work…
gemini-cli commentedon Dec 21, 2025
Hello! As part of our effort to keep our backlog manageable and focus on the most active issues, we are tidying up older reports.
It looks like this issue hasn't been active for a while, so we are closing it for now. However, if you are still experiencing this bug on the latest stable build, please feel free to comment on this issue or create a new one with updated details.
Thank you for your contribution!