Description
Summary
In the opencode desktop app, attaching files or images via the attach button in the message input does not work — the attachment always fails and a generic "failed" error message is shown. This makes it impossible to share files or screenshots with the agent from the desktop UI.
Environment
- opencode version: 2.0.11
- OS: Windows 11 Pro 10.0.26200 (win32 x64)
- Terminal: Unavailable: desktop app (no terminal environment)
- Shell: C:\Windows\system32\cmd.exe
- Install/channel: latest (release)
- Active plugins: None found in config
Reproduction
- Open the opencode desktop app on Windows.
- Start (or open) a session and focus the message input.
- Click the attach button and select a file or image (e.g. a PNG).
- Observe: a generic "failed" error message is shown and the file is never attached to the message.
Expected Behavior
The selected file/image should be attached to the message input and sent with the prompt.
Actual Behavior
A generic error message appears (no specific wording/details) and the attachment is rejected. The issue reproduces consistently when using the attach button.
Additional Context
- Reproduced via the attach button in the input; paste and drag & drop were not tested by the reporter.
- No workaround found; the same files can be referenced manually in text, but that is not equivalent for images.
- Happy to provide logs or a screen recording if that helps narrow it down.
Plugins
no
OpenCode version
2.0.11
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
windows 11 64bit
Terminal
No response
Description
Summary
In the opencode desktop app, attaching files or images via the attach button in the message input does not work — the attachment always fails and a generic "failed" error message is shown. This makes it impossible to share files or screenshots with the agent from the desktop UI.
Environment
Reproduction
Expected Behavior
The selected file/image should be attached to the message input and sent with the prompt.
Actual Behavior
A generic error message appears (no specific wording/details) and the attachment is rejected. The issue reproduces consistently when using the attach button.
Additional Context
Plugins
no
OpenCode version
2.0.11
Steps to reproduce
No response
Screenshot and/or share link
No response
Operating System
windows 11 64bit
Terminal
No response