claude-code - 💡(How to fix) Fix [BUG] File locator doesn't include enough directory entries when searching [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#56408Fetched 2026-05-06 06:28:52
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Author
Timeline (top)
labeled ×4commented ×1

Error Message

Error Messages/Logs

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 search for files, it limits the total amount of directory entries that are searchable.

What Should Happen?

It shouldn't limit it, or the limit should be much higher -- I'm running into this on multiple directories.

Error Messages/Logs

Steps to Reproduce

  1. Create a folder with ~1,000 files in it
  2. Try to find one with @ that is towards the middle or end of the list (alphabetically, seemingly)
  3. Observe that it doesn't work

Claude Model

None

Is this a regression?

I don't know

Last Working Version

No response

Claude Code Version

2.1.128

Platform

Anthropic API

Operating System

Other Linux

Terminal/Shell

Other

Additional Information

No response

extent analysis

TL;DR

Increase the directory entry limit or optimize the search function to handle large directories.

Guidance

  • Verify the current limit on directory entries and determine if it's a hardcoded value or a configurable setting.
  • Test the search function with smaller directories to see if the issue is specific to large directories or if it's a general problem with the @ search functionality.
  • Consider implementing a pagination or indexing system to improve search performance in large directories.
  • Check if there are any existing configuration options or workarounds in the Claude Code documentation that can help mitigate this issue.

Example

No code example is provided as the issue does not specify any specific code or API calls.

Notes

The issue may be related to performance or scalability limitations in the Claude Code search function. Without more information about the underlying implementation, it's difficult to provide a more specific solution.

Recommendation

Apply workaround: Increase the directory entry limit or optimize the search function, as the current limit is causing issues with large directories.

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