claude-code - 💡(How to fix) Fix [BUG] @ file picker doesn't support navigating into subdirectories [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46172Fetched 2026-04-11 06:27:14
View on GitHub
Comments
1
Participants
2
Timeline
7
Reactions
0
Timeline (top)
labeled ×3mentioned ×2commented ×1subscribed ×1

Error Message

Error Messages/Logs

Fix Action

Fix / Workaround

When using @ to reference files in the prompt, the autocomplete only shows top-level files and folders. There is no way to drill into a folder to select a file inside it.

  • Typing @docs/ manually after selecting the folder does not trigger autocomplete for files within that folder
  • The autocomplete does not match nested filenames either — e.g. typing @report or @helper does not find files inside subdirectories
  • The only workaround is typing the full path manually (e.g. @docs/report.pdf), which defeats the purpose of the picker
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

When using @ to reference files in the prompt, the autocomplete only shows top-level files and folders. There is no way to drill into a folder to select a file inside it.

  • Typing @docs/ manually after selecting the folder does not trigger autocomplete for files within that folder
  • The autocomplete does not match nested filenames either — e.g. typing @report or @helper does not find files inside subdirectories
  • The only workaround is typing the full path manually (e.g. @docs/report.pdf), which defeats the purpose of the picker

Environment

  • OS: Linux (Ubuntu, kernel 6.17.0)
  • Claude Code: CLI

What Should Happen?

  • Selecting a folder in the @ autocomplete by tab or enter should drill into it and show its contents for further selection
  • Ideally, the autocomplete should also fuzzy-match filenames across all directories, not just top-level entries

Error Messages/Logs

Steps to Reproduce

  1. Open Claude Code CLI in a project directory that contains subdirectories with files (e.g. docs/report.pdf, src/utils/helper.py)
  2. Type @ in the prompt
  3. See folder hints (e.g. docs, src)
  4. Select a folder (e.g. docs) from the autocomplete suggestions using one of the following:
    - Enter: The folder is selected but only the folder itself is attached — no further file hints appear - Tab: Same behavior as Enter — the folder is selected with no further navigation into its contents
    - Type / after the folder name: The input becomes @/ — the folder name is lost and replaced with just a slash. No files inside the folder are shown

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.100 (Claude Code)

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

The issue can be mitigated by manually typing the full path of the desired file after selecting a folder, although this is not a satisfactory solution.

Guidance

  • Verify that the issue persists when using the @ symbol followed by a folder name and then a forward slash / to see if the autocomplete behaves as expected.
  • Check if there are any existing configuration options or settings in Claude Code that could be enabling or disabling the nested file autocomplete feature.
  • Consider submitting a feature request to the developers of Claude Code to implement the desired behavior of drilling into folders and fuzzy-matching filenames.
  • Test the autocomplete feature with different folder structures and file names to see if the issue is consistent across various scenarios.

Notes

The issue seems to be related to the autocomplete feature in Claude Code, specifically when using the @ symbol to reference files. The desired behavior is not currently implemented, and the only workaround is to manually type the full path of the file.

Recommendation

Apply workaround: Manually type the full path of the desired file after selecting a folder, as this is the only available solution until the issue is addressed by the developers.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING