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
When I'm trying to point the agent to an SVG file, it gets rejected with this error: messages.72.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'
So I can't share or tell the agents to use SVG files in my instructions.
I just upgraded to the latest version (1.0.65) and the problem still exists. All SVGs are treated the same. Here's the input and corresponding error just now from the OpenCode TUI:
This is a test:
[Image 1]
image/svg+xml app/static/camera-icon.svg
mymac (12:20:34 PM)
messages.0.content.1.image.source.base64.media_type: Input should be 'image/jpeg', 'image/png', 'image/gif' or 'image/webp'
Activity
rekram1-node commentedon Nov 7, 2025
@JuliaBonita what provider is this? i guess we should just send them as text and that'd fix it
This looks like a message from anthropic?
rekram1-node commentedon Nov 7, 2025
@JuliaBonita hmm I dont think we have special svg handling are you sure it was an svg?
wait I think Dax mentioned something about images not being handled correctly maybe this is related
JuliaBonita commentedon Nov 7, 2025
It worked perfectly before you migrated to the recent TUI.
@rekram1-node I don't think it's Anthropic rejecting SVGs. I've never seen this problem when using Claude Code TUI directly.
It appears there is a whitelist of image types and SVG was omitted.
rekram1-node commentedon Nov 12, 2025
@JuliaBonita I can't replicate this, is there a specific svg that causes it?
JuliaBonita commentedon Nov 14, 2025
I just upgraded to the latest version (1.0.65) and the problem still exists. All SVGs are treated the same. Here's the input and corresponding error just now from the OpenCode TUI:
rekram1-node commentedon Nov 14, 2025
Ah okay I see how ur doing it, will fix
rekram1-node commentedon Nov 26, 2025
fixed in next release: 4d07034