[Bug] Infinite loop when file editing fails with repeated fix attempts
Resolved 💬 3 comments Opened Oct 28, 2025 by kirso Closed Oct 31, 2025
Bug Description
Claude tries to edit the file, fails, runs the command pipeline for checks, which fails, then claude tries to fix, tries to edit the file again. Fails. And goes into the loop of doing this for 5 minutes.
Environment Info
- Platform: darwin
- Terminal: WarpTerminal
- Version: 2.0.28
- Feedback ID: 30903cf6-cf24-457d-b7bd-05ba39a843bb
Errors
[{"error":"Error: Request was aborted.\n at Bl._createMessage (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:207:4515)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-10-28T03:22:53.540Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: svelte\n at YD (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4413)\n at file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4141\n at Array.map (<anonymous>)\n at OF (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4132)\n at YTQ (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:6306)\n at Vw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)","timestamp":"2025-10-28T03:23:03.713Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: svelte\n at YD (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4413)\n at file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4141\n at Array.map (<anonymous>)\n at OF (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1175:4132)\n at YTQ (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1797:6306)\n at Vw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)","timestamp":"2025-10-28T03:23:03.715Z"},{"error":"Error: String not found in file. Failed to apply edit.\n at cCA (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:726)\n at fgA (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1293:104)\n at Object.CXQ [as renderToolUseRejectedMessage] (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1412:3937)\n at DDQ (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:1557:4051)\n at Vw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:73:19414)\n at Qo (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:42806)\n at T9 (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38347)\n at zc (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38275)\n at Lw (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:38129)\n at AU (file:///Users/kirso/.local/share/mise/installs/node/22.16.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:75:35208)","timestamp":"2025-10-28T03:23:03.727Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: svelte\n at YD (file:///Users/
Note: Error logs were truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗