Skip to content

Image paste works over SSH, but sending fails with “invalid image data” #19294

@coachpo

Description

@coachpo

Description

I have Opencode running on my server. After connecting via SSH, I’m able to paste an image, but when I try to send it in the conversation, I get the following error:

“The image data you provided does not represent a valid image. Please check your input and try again with one of the supported image formats: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'].”

Image Image

Plugins

Oh-my-openagent

OpenCode version

1.3.2

Steps to reproduce

  1. log in server via ssh
  2. run opencode
  3. paste an image and send to conversation
  4. get the error
  5. image can be sent on my local machine, everything is fine.

Screenshot and/or share link

Image Image

Operating System

macOS 26, Ubuntu 24.04

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions