[Bug] Claude claims to write files but doesn't actually create them, consumes tokens
Resolved 💬 3 comments Opened Dec 7, 2025 by ashu12393 Closed Dec 10, 2025
Bug Description
I have been observing this issue. Claude has been telling me that it has written certain files to certain directories but has not been writing any of those files. It does exhaust my token for them but does not write. This has been happening quite a few times. I have just decided to report this as a bug. And hence the reason why I am exhausting so much token so quickly lately
Environment Info
- Platform: darwin
- Terminal: Apple_Terminal
- Version: 2.0.60
- Feedback ID: e66e7972-d04d-45ca-a28b-b9d67d8efeba
Errors
[{"error":"AxiosError: Request failed with status code 401\n at cS (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:171:1137)\n at IncomingMessage.<anonymous> (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:172:9852)\n at IncomingMessage.emit (node:events:520:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:89:21)\n at wHA.request (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:174:2130)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async qS2 (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:2064:6679)","timestamp":"2025-12-07T07:37:04.733Z"},{"error":"Error: Request was aborted.\n at rT.makeRequest (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1283:3939)\n at processTicksAndRejections (node:internal/process/task_queues:103:5)\n at runNextTicks (node:internal/process/task_queues:68:3)\n at process.processTimers (node:internal/timers:538:9)","timestamp":"2025-12-07T08:04:18.248Z"},{"error":"Error: Request was aborted.\n at Ao._createMessage (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:110:3151)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2025-12-07T08:16:55.960Z"},{"error":"Error: EISDIR: illegal operation on a directory, read\n at Module.readFileSync (node:fs:435:20)\n at Object.readFileSync (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:299)\n at W12 (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:4456:17608)\n at Object.call (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:1455:909)\n at fx7 (file:///Users/apple/.npm-global/lib/node_modules/@anthropic-ai/claude-code/cli.js:3094:16957)","timestamp":"2025-12-07T08:18:57.002Z"}]This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗