Anthropic API: Unexpected Token Truncation in Claude Opus Conversation
Bug Description Claude Opus 4 just stops for no reason and I have to continiously write "continue" but still, barely gets to 300 tokens and then stops again.
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 1.0.53
- Feedback ID: 077cd2b4-7f52-4287-b36c-4753aa6ca709
Errors
[{"error":"RangeError [ERR_CHILD_PROCESS_STDIO_MAXBUFFER]: stdout maxBuffer length exceeded\n at Socket.onChildStdout (node:child_process:482:14)\n at Socket.emit (node:events:507:28)\n at Socket.emit (node:domain:489:12)\n at addChunk (node:internal/streams/readable:559:12)\n at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)\n at Readable.push (node:internal/streams/readable:390:5)\n at Pipe.onStreamRead (node:internal/stream_base_commons:189:23)","timestamp":"2025-07-17T05:02:17.827Z"}]
Currently being investigated - anthropic knows about this.
https://status.anthropic.com/
Just going to have to wait and code manually lol.
Same here
Found 3 possible duplicate issues:
- https://github.com/anthropics/claude-code/issues/2989
- https://github.com/anthropics/claude-code/issues/4566
- https://github.com/anthropics/claude-code/issues/3780
This issue will be automatically closed as a duplicate in 3 days.
- If your issue is a duplicate, please close it and 👍 the existing issue instead
- To prevent auto-closure, add a comment or 👎 this comment
🤖 Generated with Claude Code
This issue has been automatically closed as a duplicate of #2989.
If this is incorrect, please re-open this issue or create a new one.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.