File Attachment Functionality Broken in Claude Code CLI
Status Fixed / completed
Maintainer reply ✓ Yes — ant-kurt
Activity 6 comments · opened Jul 29, 2025 · closed Jul 29, 2025
💡 Likely answer: A maintainer (ant-kurt, collaborator)
responded on this thread — see the highlighted reply below.
Bug Description
I cannot attach files anymore. I cannot attach files on the CLI anymore, when is type @, it's expected claude will read and list my files so I can insert in the conversation, but it's not happening.
Environment Info
- Platform: win32
- Terminal: windows-terminal
- Version: 1.0.62
- Feedback ID: 6df7918c-3267-4cf0-9396-1fad30ac6a73
Errors
[{"error":"Error: Command failed: tasklist | findstr /I \"Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\"\nFINDSTR: Cannot open Code.exe Cursor.exe Windsurf.exe idea64.exe pycharm64.exe webstorm64.exe phpstorm64.exe rubymine64.exe clion64.exe goland64.exe rider64.exe datagrip64.exe appcode.exe dataspell64.exe aqua64.exe gateway64.exe fleet.exe studio64.exe\r\n\n at genericNodeError (node:internal/errors:983:15)\n at wrappedFn (node:internal/errors:537:14)\n at checkExecSyncError (node:child_process:883:11)\n at execSync (node:child_process:955:15)\n at i7 (file:///C:/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:865:5108)\n at Tt (file:///C:/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1346:1937)\n at file:///C:/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1896:7279\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async file:///C:/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/cli.js:1897:1485\n at async Promise.all (index 12)","timestamp":"2025-07-29T11:25:20.511Z"},{"error":"Error: spawn /c/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:25:20.526Z"},{"error":"Error: spawn /c/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:25:21.705Z"},{"error":"Error: spawn /c/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:25:21.979Z"},{"error":"Error: spawn /c/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:28:59.420Z"},{"error":"Error: spawn /c/Users/uscon/AppData/Roaming/npm/node_modules/@anthropic-ai/claude-code/vendor/ripgrep/x64-win32/rg.exe ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2025-07-29T11:28:59.684Z"}]
6 Comments
same thing on my side:
@cannot load files anymore. It works yesterday, but today it does not work anymore.Environment Info
Same thing for me.
Environment Info
Platform: win32
Terminal: windows-terminal
Version: 1.0.62
@devmasonz @DavyCosta701 I troubleshooted it by installing WSL on windows and setting Claude CLI there.
wsl -d Ubuntu-22.04
It looks like the issue is with the
ripgreppackage. Claude Code requires it.Issues with custom agents, file search, and custom slash commands on Windows should be resolved for CMD and Powershell in 1.0.63, which released today but is not yet tagged as
latest.Downgrading to 1.0.61 will also mitigate.
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.