Sub-agent didn't encoded correctly the char '\n'
Resolved 💬 2 comments Opened Aug 17, 2025 by marcoscale98 Closed Aug 19, 2025
Bug Description
CC sub-agent created a javascript file with all the content in 1 line. It seems to me that it didn't encoded the char '\n'. It happened only in some files; in other files all worked correctly
<img width="1430" height="774" alt="Image" src="https://github.com/user-attachments/assets/61b9fc5d-5274-4520-810e-91e7616fe93c" />
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 1.0.83
- Feedback ID:
Errors
[{"error":"Error: No results found for your query.\n\nIMPORTANT: This tool searches for literal code patterns that would appear in files, not keywords or natural language queries. For example:\n- Instead of 'react hook state', search for 'useState('\n- Instead of 'error handling', search 'catch ('\n at HjB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1910:12052)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1910:6782)\n at async KL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:12109)\n at async zmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:8370)\n at async VL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:7361)\n at async JL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:6990)\n at async wR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:5031)\n at async wR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:5784)\n at async wR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:5784)","timestamp":"2025-08-17T14:46:14.924Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:435:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:696:9211)\n at A12 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:741:8545)\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1784:918)\n at call.next (<anonymous>)\n at KL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:12109)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async zmB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:8370)\n at async nTB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1789:3411)\n at async CL8 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:3150:7481)","timestamp":"2025-08-17T14:46:22.991Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:435:20)\n at Object.readFileSync (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:696:9211)\n at A12 (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:741:8545)\n at Object.call (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1784:918)\n at call.next (<anonymous>)\n at tM (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1789:2956)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1803:988\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2025-08-17T14:57:46.879Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:1184)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:912\n at Array.map (<anonymous>)\n at ZW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:903)\n at fkB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2358:5231)\n at SR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:330:19859)\n at rb (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:42835)\n at ab (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38356)\n at wj (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38284)\n at aR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:332:38138)","timestamp":"2025-08-17T14:58:11.501Z"},{"error":"Error: Language not supported while highlighting code, falling back to markdown: \n at NX (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:1184)\n at file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:912\n at Array.map (<anonymous>)\n at ZW (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:1774:903)\n at fkB (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js:2358:5231)\n at SR (file:///opt/homebrew/lib/node_modules/@anthropic-ai/claude-code/cli.js
Note: Error logs were truncated.
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗