rdev/internal/adapter/claudebox
jordan 3c9876a678
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
fix(worker): increase SSE scanner buffer to 1MB in claudebox client
The HTTP claudebox client's ExecuteStream method used a bare
bufio.NewScanner with the default 64KB max token size. When Claude Code
produces tool results > 64KB (e.g., reading large files), the SSE event
exceeds the scanner limit and fails with "token too long".

Every other scanner in the codebase (claudecode adapter, claudebox
executor, kubernetes executor) already uses scanner.Buffer(buf, 1MB).
This was the only one missed.

Fixes: "agent execution failed: read stream: bufio.Scanner: token too long"

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-10 23:14:20 -07:00
..
client_test.go fix: wire workService to WorkersHandler and add /work/tasks endpoint 2026-02-06 10:35:39 -07:00
client.go fix(worker): increase SSE scanner buffer to 1MB in claudebox client 2026-02-10 23:14:20 -07:00