Redundant Script Generation Without Cleanup in AI Workflow
Resolved 💬 3 comments Opened Jun 5, 2025 by Anarchon14 Closed Dec 10, 2025
Bug Description
It should've write a script to do X, it wrote a script, then it thought it can made it simpler -> wrote another script, after that even simpler -> wrote 3rd script, and you wont believe it but yeah IT wrote a 4TH script at the end -> all in one go and it didn't cleared the old ones. Hopefully a fix is discovered for this behaviour as it is...
Environment Info
- Platform: linux
- Terminal: vte-based
- Version: 1.0.11
- Feedback ID: ac42fe76-f00f-48c2-81bb-8c2c7269cffc
Errors
[{"error":"ShellError: Shell command failed\n at Object.call (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1547:1326)\n at async pZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:19078)\n at async YK1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:17664)\n at async sV1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1828:775)\n at async uZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16826)\n at async hZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16332)\n at async oe (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:15392)\n at async DK1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:14417)\n at async EAA (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2303:419)\n at async Object.call (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2305:714)","timestamp":"2025-06-05T08:23:57.603Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1547:1326)\n at async pZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:19078)\n at async YK1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:17664)\n at async sV1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1828:775)\n at async uZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16826)\n at async hZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16332)\n at async oe (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:15392)\n at async oe (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16218)\n at async DK1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:14417)\n at async EAA (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:2303:419)","timestamp":"2025-06-05T08:24:02.152Z"},{"error":"Error: Request was aborted.\n at Ho._createMessage (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1373:6810)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-05T09:12:06.249Z"},{"error":"Error: Request was aborted.\n at Jw.makeRequest (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1382:3784)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-06-05T09:26:27.026Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at bD (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:8869)\n at file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:9791\n at Array.map (<anonymous>)\n at bD (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:9762)\n at file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:9680\n at Array.map (<anonymous>)\n at bD (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:9669)\n at file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:8603\n at Array.map (<anonymous>)\n at rd (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1913:8594)","timestamp":"2025-06-05T09:33:31.771Z"},{"error":"ShellError: Shell command failed\n at Object.call (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1547:1326)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async pZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:19078)\n at async YK1 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:17664)\n at async dZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16706)\n at async hZ5 (file:///home/ro/.claude/local/node_modules/@anthropic-ai/claude-code/cli.js:1889:16356)\n at async oe (f
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗