claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[BUG] @ File Reference Feature Not Working on macOS

Open simonfunk opened this issue 5 months ago • 9 comments

Environment

  • Platform (select one):
    • [x] Anthropic API
    • [ ] AWS Bedrock
    • [ ] Google Vertex AI
    • [ ] Other:
  • Claude CLI version: 1.0.21 (Claude Code)
  • Operating System: macOS 15.5
  • Terminal: Terminal App (also tested in VS Code and VS Code Insiders)

Bug Description

The @ symbol file reference feature does not work in any environment - it doesn't show the file picker/autocomplete list when typing @ in chat messages.

Steps to Reproduce

  1. Open Claude Code in terminal, VS Code, or VS Code Insiders
  2. Start typing a message to Claude
  3. Type the @ symbol
  4. Wait for file picker/autocomplete to appear

Expected Behavior

After typing @, a file picker or autocomplete list should appear showing available files in the workspace/directory that can be referenced.

Actual Behavior

Nothing happens when typing @. No file picker, no autocomplete, no visual indication that file referencing is available.

Additional Context

  • Tested across multiple environments: Terminal, VS Code, VS Code Insiders
  • Performed complete uninstall/reinstall of Claude Code extension
  • Manually removed all Claude Code related files from macOS
  • Issue persists across all clean installations
  • Have active workspace/folder open in VS Code when testing

simonfunk avatar Jun 12 '25 15:06 simonfunk

Mine works without a claude command specified, but not when a command is specified (on MacOS):

I would like to choose from files especially when using commands, but right now I can't

good bad
Image Image

wcygan avatar Jun 13 '25 03:06 wcygan

Can confirm this bug exists.

shanecp avatar Jun 13 '25 04:06 shanecp

+1

lukefronadaptive avatar Jun 13 '25 12:06 lukefronadaptive

+1 this broke recently, I'm on v11.4.2

raysubham avatar Jun 17 '25 09:06 raysubham

I have been facing this issue for weeks now. At some point is just stopped working.

bitomule avatar Jun 17 '25 16:06 bitomule

+1

gabewillen avatar Jun 17 '25 19:06 gabewillen

Same issue on version Claude CLI 1.0.30, Ubuntu 22.04

amirna2 avatar Jun 19 '25 17:06 amirna2

As an alternative way to mitigate this issue, you can use File reference shortcuts within the file you want to cite to send the file to Claude Code.

File reference shortcuts: Use Cmd+Option+K (Mac) or Alt+Ctrl+K (Linux/Windows) to insert file references (e.g., @File#L1-99)

liby avatar Jun 28 '25 06:06 liby

I'm having the same issue on v1.0.35 macOS 15.5.

HarborMind-Eddie avatar Jun 28 '25 19:06 HarborMind-Eddie

Looks like there was an update and now with the hint " ※ Tip: Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install 'code' command in PATH" to enable IDE integration" i was able to make it work again :)

simonfunk avatar Jul 02 '25 16:07 simonfunk

Looks like there was an update and now with the hint " ※ Tip: Open the Command Palette (Cmd+Shift+P) and run "Shell Command: Install 'code' command in PATH" to enable IDE integration" i was able to make it work again :)

That didn't work for me, but I am working around it with the file reference shortcut. Hopefully they patch this soon though.

HarborMind-Eddie avatar Jul 02 '25 23:07 HarborMind-Eddie

This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.

github-actions[bot] avatar Aug 10 '25 14:08 github-actions[bot]