Skip to content

Desktop client renders no image for read attachments when server runs on a remote host (unresolvable file:// parts) #54142

Closed as not planned

Description

@xuyongroger

Description

When the opencode server (e.g. opencode serve, used by the desktop app) runs on a different machine than the desktop client — in my case inside a Docker container on a NAS, no shared filesystem — image attachments returned by the read tool are never rendered in the Windows desktop UI. No image, no thumbnail, no attachment marker appears. The model, however, receives the attachment server-side and describes the image correctly, proving the image part exists.

The desktop app renders via WebView2 (a GUI), so this is unrelated to terminal graphics protocols. The client appears to try resolving the file:// URI from the image part locally, which fails because the path only exists on the server host.

Suggested fix: deliver image parts to clients as server-served URLs or data: URLs (or have the client fetch file content via the server API) so remote backends render the same as local ones.

Plugins

none (only a custom local tool that saves PNGs; unrelated to the bug)

OpenCode version

Desktop V1.18.35

Steps to reproduce

  1. Run the opencode server in a Docker container on host A (Alpine 3.24, x86_64); no shared filesystem with the client machine.
  2. Connect OpenCode Desktop for Windows to that server; open a session in a project on host A.
  3. Ensure the active model declares "modalities": {"input": ["text","image"], "output": ["text"]} in opencode.json (custom provider, @ai-sdk/openai-compatible).
  4. Ask the agent to read a PNG file that exists on host A.
  5. Observe: the desktop UI shows no image/attachment anywhere, while the model correctly describes the image content.

Screenshot and/or share link

No response

Operating System

Client: Windows 11 (OpenCode Desktop); Server: Alpine Linux 3.24 in Docker on a NAS

Terminal

n/a — desktop GUI (WebView2), not a terminal

Activity

  1. opencode-agent commented on Oct 9, 2026

    @opencode-agent
    Contributor

    Thanks for the detailed report, @xuyongroger!

    You're on OpenCode Desktop 1.18.35, which is v1. v1 only gets fixes for critical bugs: data loss, security problems, or crashes and breakage with no workaround. Here the model still gets the image and describes it correctly; only the UI doesn't show it. So this is unlikely to be fixed in v1.

    We'd encourage you to try OpenCode v2 (@opencode/cli), where active development happens. If you still see this on v2, or you think it is critical, please reply here.

    Related issues you may want to follow:

  2. opencode-agent commented on Oct 10, 2026

    @opencode-agent
    Contributor

    Closing this as not planned. It was reported on Desktop 1.18.35 (v1), and v1 only gets fixes for critical bugs. The missing image preview with a remote server doesn't count as critical, because the model still receives the image. Thanks again for the detailed write-up, @xuyongroger. If you see the same thing on OpenCode v2 (@opencode/cli), please open a new issue with your v2 version and steps, and mention this one (#54142).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions