Skip to content

Claude Code, Antigravity: a line over 64 MB ends the turn with an error - #537

Open
MopigamesYT wants to merge 1 commit into
devfrom
fix/529-claude-long-line
Open

MopigamesYT wants to merge 1 commit into
devfrom
fix/529-claude-long-line

Conversation

@MopigamesYT

Copy link
Copy Markdown
Member

Closes #529

What changed

  • When the stream-json reader stops on bufio.ErrTooLong, it records the error, stops the process tree and drains stdout so Wait returns. The turn ends with "Claude Code's output could not be read: token too long" instead of staying "working".
  • Same fix in Antigravity's reader (antigravity.go).
  • Test: TestClaudeProcessLineTooLong (70 MB line, then more output and a sleeping process).

Nothing visible: no screenshots.

Assisted-by: Claude Opus 5.5 medium

🤖 Generated with Claude Code

…or (#529)

When the stream-json reader stopped on bufio.ErrTooLong, stdout was
neither drained nor reported: the CLI blocked writing to a full pipe,
Wait waited for it, and the chat stayed "working" with no message.

The reader now records the error, stops the process tree and drains
stdout so Wait returns; the turn ends with "… output could not be read:
token too long". Same fix in Antigravity's reader.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants