[Bug] Agents crash on large non-English text files, consuming tokens without completion

Resolved 💬 3 comments Opened Apr 21, 2026 by TomasHaaris Closed Apr 25, 2026

Bug Description
I launched two agents to analyze a single 5,000-word Italian text file. The agents crashed. The tokens were eaten. The job was not completed.

Environment Info

  • Platform: darwin
  • Terminal: Apple_Terminal
  • Version: 2.1.112
  • Feedback ID: 36ae0ea9-0d95-4574-90a3-644820903ea2

Errors

[{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:24:57.752Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:27:42.648Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:27:44.960Z"},{"error":"Error: Request was aborted.\n    at qh.makeRequest (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:47:3448)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-04-21T14:29:27.634Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:29:41.162Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:31:50.617Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:34:55.285Z"},{"error":"AggregateError\n    at vV.from (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:110:7836)\n    at lN.<anonymous> (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:118:12655)\n    at lN.emit (node:events:520:35)\n    at Tz1.<computed> (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:117:1120)\n    at ClientRequest.emit (node:events:508:28)\n    at emitErrorEvent (node:_http_client:107:11)\n    at TLSSocket.socketErrorListener (node:_http_client:574:5)\n    at TLSSocket.emit (node:events:508:28)\n    at emitErrorNT (node:internal/streams/destroy:170:8)\n    at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n    at IU6.request (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:120:2450)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async fb1 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:513:3961)","timestamp":"2026-04-21T14:34:56.711Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:3007:860)\n    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n    at async file:///usr/local/lib/node_modules/@anthropic-ai/claude-code/cli.js:8527:10659","timestamp":"2026-04-21T14:37:13.503Z"},{"error":"TypeError: terminated\n    at Fetch.onAborted (node:internal/deps/undici/undici:12141:53)\n    at Fetch.emit (node:events:508:28)\n    at Fetch.terminate (node:internal/deps/undici/undici:11300:14)\n    at Object.onError (node:internal/deps/undici/undici:12260:38)\n    at Request.onError (node:internal/deps/undici/undici:2754:31)\n    at Object.errorRequest (node:internal/deps/undici/undici:1641:17)\n    at TLSSocket.onHttpSocketClose (node:internal/deps/undici/undici:7173:14)\n    at TLSSocket.emit (node:events:520:35)\n    at node:net:346:12\n    at TCP.done (node:_tls_wrap:649:7)","timestamp":"2026-04-21T14:39:30.278Z"},{"error":"cq8: Insufficient permissions for global npm install.\n    at iq8 (file:///…

Note: Content was truncated.

View original on GitHub ↗

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