claude-code - 💡(How to fix) Fix @ file picker should support fuzzy filename search in additionalDirectories [1 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#52092Fetched 2026-04-23 07:36:47
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

When a directory is added via permissions.additionalDirectories in settings.json, the @ file picker can browse into the directory (e.g., typing @/Users/me/Downloads/ shows the folder), but it does not support fuzzy filename search within that directory the way it does for files inside the git repo.

Root Cause

When a directory is added via permissions.additionalDirectories in settings.json, the @ file picker can browse into the directory (e.g., typing @/Users/me/Downloads/ shows the folder), but it does not support fuzzy filename search within that directory the way it does for files inside the git repo.

Fix Action

Workaround

Users can paste the full path manually (@/Users/me/Downloads/exact-filename.csv) or ask Claude to find files via Bash.

RAW_BUFFERClick to expand / collapse

Description

When a directory is added via permissions.additionalDirectories in settings.json, the @ file picker can browse into the directory (e.g., typing @/Users/me/Downloads/ shows the folder), but it does not support fuzzy filename search within that directory the way it does for files inside the git repo.

Expected behavior

Typing @ and then part of a filename (e.g., report) should match files in additionalDirectories the same way it matches files in the project root — with fuzzy search and ranked results.

Current behavior

  • @/Users/me/Downloads/ shows the directory exists
  • Typing a filename after that path returns no results
  • Files inside the git repo work fine with fuzzy search

Workaround

Users can paste the full path manually (@/Users/me/Downloads/exact-filename.csv) or ask Claude to find files via Bash.

Environment

  • Claude Code CLI (macOS)
  • additionalDirectories configured in ~/.claude/settings.json

extent analysis

TL;DR

The issue can be mitigated by using the full path to files in additionalDirectories or utilizing Bash to find files.

Guidance

  • The likely cause is a limitation in the fuzzy filename search functionality for directories added via permissions.additionalDirectories.
  • To verify the issue, try typing @ followed by a partial filename in a directory added via permissions.additionalDirectories and observe the lack of search results.
  • As a temporary workaround, users can paste the full path to the file manually, such as @/Users/me/Downloads/exact-filename.csv, to access the file.
  • Another workaround is to use Bash to find files, as mentioned in the issue.

Example

No code snippet is provided as it is not necessary for this issue.

Notes

The issue seems to be specific to the Claude Code CLI on macOS, and the workaround provided in the issue can be used until a fix is available.

Recommendation

Apply workaround: The best course of action is to use one of the provided workarounds, such as pasting the full path or using Bash to find files, until a fix is implemented to support fuzzy filename search in additionalDirectories.

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…

FAQ

Expected behavior

Typing @ and then part of a filename (e.g., report) should match files in additionalDirectories the same way it matches files in the project root — with fuzzy search and ranked results.

Still need to ship something?

×6

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

Back to top recommendations

TRENDING