[Bug] @mention autocomplete filters out file/directory entries incorrectly

Resolved 💬 3 comments Opened Mar 18, 2026 by arashm404 Closed Mar 21, 2026

Bug Description
⏺ I can see the issue now. When you type @i, the file entries (iOS/, Android/) disappear from the autocomplete, but agent entries remain. When you type just @, everything shows
up correctly.

This looks like a bug in Claude Code's autocomplete — the file matching seems to filter out directory entries when you start typing, even though iOS starts with i.

Workarounds for now:

  1. Type just @, then use arrow keys to select iOS/ from the list
  2. Type the full path directly in your message without @ (e.g., just say "look at iOS/")

To report the bug:
File an issue at https://github.com/anthropics/claude-code/issues describing that @ autocomplete drops file/folder matches when typing filter characters.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.75
  • Feedback ID: 782a669b-88ee-4088-a04f-043bfd8e48cb

Errors

[{"error":"Error\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:71:14482)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:10172)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:78:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:81:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-18T00:05:07.258Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:71:14482)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:10172)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:78:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:81:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-18T00:05:48.770Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:71:14482)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:10172)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:78:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:81:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-18T00:07:00.571Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:71:14482)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:10172)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:78:1149)\n    at emitError (node:events:43:23)\n    at <anonymous> (node:_http_client:253:22)\n    at processTicksAndRejections (native:7:39)\n    at request (/$bunfs/root/src/entrypoints/cli.js:81:2149)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-03-18T00:08:01.136Z"},{"error":"Error\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:71:14482)\n    at <anonymous> (/$bunfs/root/src/entrypoints/cli.js:79:10172)\n    at emitError (node:events:43:23)\n    at <anonymous> (/$bunfs/root/…

Note: Content was truncated.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗