anomalyco / anomalyco/opencode

TUI: image attachment preview renders as a blank thumbnail

Open
#41,691 1 comment 3 reactions 1 assignee View on GitHub

@kommander is already working on this.

Since Aug 11, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Summary

Image attachments do not render correctly in the OpenCode TUI. The attachment is shown as an almost blank, dark thumbnail with only the [Image 1] label, so its visual content cannot be reviewed in the chat.

Environment

  • opencode version: v0.0.0-next-17151
  • OS: Fedora Linux 44 (Workstation Edition), kernel 7.1.7-200.fc44.x86_64
  • Terminal: herdr
  • Shell: zsh 5.9
  • Install/channel: next
  • GPU: Intel Arc Pro 130T/140T (integrated)
  • Active plugins: superpowers@git+https://github.com/obra/superpowers.git

Reproduction

  1. Start the OpenCode TUI.
  2. Attach an image to a prompt.
  3. Send the prompt and inspect the image attachment preview in the chat history.

Expected Behavior

The attachment preview should render the image content in the TUI.

Actual Behavior

The preview renders as an almost empty dark thumbnail and displays only the [Image 1] label. The image content itself is not visible.

Additional Context

The issue was observed in a local workspace while using the next build. A screenshot is available in the associated report context. Reproduction frequency and whether it affects every image have not yet been determined.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.