Bug Report - looping subagents
Resolved 💬 3 comments Opened Aug 28, 2025 by Trantor-develops Closed Jan 7, 2026
Bug Description
When I've been using sub-agents, they seem to just sometimes loop 20, 30, 40 times. There doesn't seem to be a pattern to it. It seems to be any of the multiple sub-agents I've got in the environment.\
There also doesn't seem to be any pattern to the sort of tools they're trying to call.
<img width="1088" height="1295" alt="Image" src="https://github.com/user-attachments/assets/79f340a6-bd77-417b-83ff-8b2140b1db5e" />
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.95
- Feedback ID: eae5f1d3-4dd2-46b8-b044-fe7f96df79af
Errors
[{"error":"Error: Request was aborted.\n at k71._createMessage (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:934:7955)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-28T10:55:05.525Z"},{"error":"AbortError\n at Qz0 (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1772:18806)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async q$ (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:729:1550)","timestamp":"2025-08-28T10:55:05.533Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:441:20)\n at Object.readFileSync (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:683:11451)\n at NVA (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:744:11305)\n at Object.call (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1767:936)\n at call.next (<anonymous>)\n at HM (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1772:2956)\n at file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1786:1038\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-28T11:00:55.425Z"},{"error":"Error: Request was aborted.\n at DP.makeRequest (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:943:3864)\n at processTicksAndRejections (node:internal/process/task_queues:105:5)\n at runNextTicks (node:internal/process/task_queues:69:3)\n at listOnTimeout (node:internal/timers:549:9)\n at process.processTimers (node:internal/timers:523:7)","timestamp":"2025-08-28T11:07:49.113Z"},{"error":"Error: {\"name\":\"APIResponseError\",\"code\":\"validation_error\",\"status\":400,\"headers\":{},\"body\":\"{\\\"object\\\":\\\"error\\\",\\\"status\\\":400,\\\"code\\\":\\\"validation_error\\\",\\\"message\\\":\\\"body failed validation: body.update_page.data.page_id should be a valid uuid, instead was `\\\\\\\"/Users/jeromeiveson/code-projects/ai-mortgage-agent/ep...`.\\\",\\\"request_id\\\":\\\"c23c52c1-97e7-4621-b306-77be052d02e8\\\"}\"}\n at GQB (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:13692)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1873:8561)\n at async PM5 (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:11340)\n at async JmB (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:7539)\n at async OM5 (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:6402)\n at async MM5 (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:5939)\n at async wE (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:3070)\n at async wE (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:3891)\n at async wE (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3513:3891)","timestamp":"2025-08-28T11:10:09.135Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at EV (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:1184)\n at file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:912\n at Array.map (<anonymous>)\n at WX (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1757:903)\n at mgB (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:3169:9325)\n at MD (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19415)\n at Cc (file:///Users/jeromeiveson/.nvm/versions/node/v22.18.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42814)\n at Q9 (file:///Users/jeromeiveson/.nvm/versions/node
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗