[FEATURE]:Support base64 decoding in the harness to post images to the agent #8712

Open
opened 2026-02-16 18:10:38 -05:00 by yindo · 1 comment
Owner

Originally created by @vampaz on GitHub (Feb 6, 2026).

Originally assigned to: @rekram1-node on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

As a user, I want to be able to paste base64 encoded images into the TUI and have the app decode them and attach them to the prompt.

This is useful since a web screenshot tool has no other way to share images with opencode.

Acceptance criteria

When data:image/png;base64,iVBORw0KGgoAAAANSU.... is found in the prompt, it should be decoded and an image inserted in the call

Originally created by @vampaz on GitHub (Feb 6, 2026). Originally assigned to: @rekram1-node on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request As a user, I want to be able to paste base64 encoded images into the TUI and have the app decode them and attach them to the prompt. This is useful since a web screenshot tool has no other way to share images with opencode. Acceptance criteria When data:image/png;base64,iVBORw0KGgoAAAANSU.... is found in the prompt, it should be decoded and an image inserted in the call
yindo added the opentuidiscussion labels 2026-02-16 18:10:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 6, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #4983: AI_APICallError - base64 encoded image pasted - discusses issues with pasted base64 encoded images being included in subsequent messages
  • #12181: [FEATURE]:: paste images directly into the chat UI like another chat clients - requests ability to paste images from clipboard

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 6, 2026): This issue might be a duplicate of existing issues. Please check: - #4983: AI_APICallError - base64 encoded image pasted - discusses issues with pasted base64 encoded images being included in subsequent messages - #12181: [FEATURE]:: paste images directly into the chat UI like another chat clients - requests ability to paste images from clipboard Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8712