File Reference Autocomplete Fails with Partial Filename Input

Resolved 💬 2 comments Opened Aug 11, 2025 by rben01 Closed Aug 11, 2025

Bug Description
When using @ to reference a file, you are shown a list of files to pick from, but typing a prefix of a file doesn't narrow down this list but rather obliterates it. Typing something like @mai<tab> doesn't autocomplete to main.py, but just does nothing, and the list of files below the prompt is empty. (In my case I was typing @psy for psychometric_equation.png [sic] and got no results; I had to type out the filename by hand.)

Environment Info

  • Platform: darwin
  • Terminal: vscode
  • Version: 1.0.72
  • Feedback ID: d4153a1d-27d1-43ec-911f-a487b7879a54

Errors

[{"error":"Error: ENOENT: no such file or directory, open '/psychometric_equation.png'\n    at Object.openSync (node:fs:555:18)\n    at Module.readFileSync (node:fs:439:35)\n    at Object.readFileBytesSync (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:686:9030)\n    at J6B (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:828:5488)\n    at file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:849:1740\n    at oI (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:20683)\n    at kZ (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:327:25152)\n    at Timeout._onTimeout (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:849:1618)\n    at listOnTimeout (node:internal/timers:608:17)\n    at process.processTimers (node:internal/timers:543:7)","timestamp":"2025-08-11T17:28:39.844Z"},{"error":"SyntaxError: Unexpected token 'I', \"I apologiz\"... is not valid JSON\n    at JSON.parse (<anonymous>)\n    at file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:738:9932\n    at Q (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:674:14418)\n    at kRB (file:///Users/rben01/.root/node_modules_global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1743:29914)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-11T17:30:53.760Z"}]

View original on GitHub ↗

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