Description
In the web UI, clicking the prompt composer + button while connected to a remote/non-local server opens the in-app project file picker instead of the browser/device attachment picker.
This makes it difficult or impossible to attach local device files, especially on mobile where the expected behavior is to attach a screenshot, photo, PDF, or text file from the phone.
The behavior appears to come from the prompt attach action switching on server locality:
if (server.isLocal()) {
fileInputRef?.click()
return
}
dialog.show(() => <DialogSelectFile mode="files" ... />)
That flow was originally introduced for WSL/server files, but after the condition changed to server.isLocal(), it applies to all remote servers.
Plugins
N/A
OpenCode version
1.17.1
Steps to reproduce
- Open the web UI from a mobile browser.
- Connect to an opencode server that is not considered local, such as a LAN/remote/tunneled server.
- Open a session and tap the composer
+ button.
Screenshot and/or share link
No response
Operating System
Ubuntu 22.04
Terminal
Ghostty
Description
In the web UI, clicking the prompt composer
+button while connected to a remote/non-local server opens the in-app project file picker instead of the browser/device attachment picker.This makes it difficult or impossible to attach local device files, especially on mobile where the expected behavior is to attach a screenshot, photo, PDF, or text file from the phone.
The behavior appears to come from the prompt attach action switching on server locality:
That flow was originally introduced for WSL/server files, but after the condition changed to
server.isLocal(), it applies to all remote servers.Plugins
N/A
OpenCode version
1.17.1
Steps to reproduce
+button.Screenshot and/or share link
No response
Operating System
Ubuntu 22.04
Terminal
Ghostty