Raise the Claude SDK message buffer to 32 MB

Merged
KA
19h ago
+37-3

Why

A full-page screenshot exceeds the Claude SDK's default 1 MB message buffer, and the run fails with engine_failure and no HAR. (Isolation from the user's own MCP servers, the other half of the original bug, landed on main with #151's build_sdk_settings().)

What

  • SDK_MAX_BUFFER_SIZE (32 MB) in utils.py, passed as max_buffer_size to every ClaudeAgentOptions: auto/agent mode, engineer, collector, folder naming.

Verification

  • pytest: 1208 passed; ruff and mypy clean (uv sync --all-extras --locked).
  • Before main's isolation and this buffer: an auto YC directory capture crashed on a 1 MB screenshot. With both: 50 Playwright calls, 842 KB HAR, status: ok, and engineer on that run status: ok.

Out of scope

  • Nothing else; main's SDK pin (claude-agent-sdk>=0.2.174) already supports max_buffer_size.

RetriggerView in GreptileConfidence Score: 5/5

No identified issues block merging this PR.

Summary

Raises the Claude SDK message buffer to 32 MiB across every session, covering auto/agent mode, engineer, collector, and folder naming. Adds checks for the buffer setting and updates the changelog.

No actionable issues found. Tests were not run during this review.

  • Claude sessions accept messages up to 32 MB.

Reviews (2) · Last reviewed commit: "Merge remote-tracking branch 'origin/fea..." · Reviewed by Greptile