Skip to content

Remote web sessions cannot attach device files from the prompt composer #31706

@rexdotsh

Description

@rexdotsh

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

  1. Open the web UI from a mobile browser.
  2. Connect to an opencode server that is not considered local, such as a LAN/remote/tunneled server.
  3. Open a session and tap the composer + button.

Screenshot and/or share link

No response

Operating System

Ubuntu 22.04

Terminal

Ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions