You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
core(cua): Anthropic tool_result image handling hardcodes PNG media type #2035
AnthropicCUAClient currently hardcodes media_type: "image/png" and strips only a PNG data URL prefix when building tool_result image blocks.
If screenshot input is ever JPEG (or any non-PNG image data URL), we send incorrect metadata and malformed base64 payload (because the non-PNG prefix is not removed).
Current behavior
In packages/core/lib/v3/agent/AnthropicCUAClient.ts:
media_type is always "image/png" (around lines 606 and 717)
Activity