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
{{ message }}
Repository navigation
Desktop client renders no image for read attachments when server runs on a remote host (unresolvable file:// parts) #54142
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
Run the opencode server in a Docker container on host A (Alpine 3.24, x86_64); no shared filesystem with the client machine.
Connect OpenCode Desktop for Windows to that server; open a session in a project on host A.
Ensure the active model declares "modalities": {"input": ["text","image"], "output": ["text"]} in opencode.json (custom provider, @ai-sdk/openai-compatible).
Ask the agent to read a PNG file that exists on host A.
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
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.
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).
Activity
opencode-agent commentedon Oct 9, 2026
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:
opencode-agent commentedon Oct 10, 2026
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).