The framework sends a screenshot to the Anthropic API on every agent message. The image encoding produces an invalid payload, causing a 400 error on every call regardless of the task.
Steps to reproduce:
- Run any squad with image-creator or template-designer skills
- Every message triggers: API Error 400 - Could not process image
- Error fires even on simple text messages like "hey" or "continue"
- Killing all processes and restarting does not fix it
Environment:
- Mac, Claude Sonnet 4
- Playwright/Chromium headless enabled in playwright.config.json
- Squad: blix-launch-content
Root cause suspected:
- Playwright screenshot is being encoded and passed to the Anthropic API as a vision input on every message
- The image buffer appears to be invalid or malformed at the point it hits the API
- Error persists across restarts, config changes, and squad state resets
Workaround needed:
- Option to disable screenshot capture entirely
- Or fix the base64 encoding before passing to Anthropic vision API
The framework sends a screenshot to the Anthropic API on every agent message. The image encoding produces an invalid payload, causing a 400 error on every call regardless of the task.
Steps to reproduce:
Environment:
Root cause suspected:
Workaround needed: