[BUG] E2BIG Error in Bash Tool

Resolved 💬 11 comments Opened Jul 17, 2025 by NewtTheWolf Closed Jul 17, 2025

Bug Description
Claude gets these errors when trying to rm files/folders, but if i execute them it works

● Bash(find /home/newt/Luninora/backend/tests -name "*.test.ts" -type f -exec rm {} \;)
  ⎿  Error: spawn E2BIG

● Bash(rm -rf /home/newt/Luninora/backend/tests/services)
  ⎿  Error: spawn E2BIG

● Bash(rm -rf /home/newt/Luninora/backend/tests/integration)
  ⎿  Error: spawn E2BIG

● Bash(rm -rf /home/newt/Luninora/backend/tests/*)
  ⎿  Error: spawn E2BIG

Environment Info

  • Platform: linux
  • Terminal: vscode
  • Version: 1.0.54
  • Feedback ID: 9f41e0ec-a69d-4a7a-b828-4a11d04fe7a2

Errors

[{"error":"Error: Request was aborted.\n    at c$.makeRequest (file:///home/newt/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1199:3840)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-07-17T12:43:25.853Z"}]

View original on GitHub ↗

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