GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): restore device attachment picker by rexdotsh · Pull Request #31707 · anomalyco/opencode

Conversation

@rexdotsh

@rexdotsh rexdotsh commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #31706

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Restores the prompt composer + button to always use the device/native attachment picker instead of switching remote servers to the workspace file picker.

Before this change, remote/non-local sessions opened DialogSelectFile mode="files", so mobile web users could not use the + button to attach screenshots, photos, PDFs, or text files from their device. That behavior appears to have been added for WSL server files, but later applied to all non-local servers.

This removes the remote server picker branch, keeps the existing native desktop picker support, and falls back to the hidden browser file input on web/mobile. It also removes the now-unused server attachment conversion helper and the DialogSelectFile.onSelectFile selection-only API that was only used by this flow.

How did you verify your code works?

  • cd packages/app && bun typecheck
  • cd packages/app && bun test --preload ./happydom.ts ./src/components/prompt-input/attachments.test.ts
  • git diff --check
  • Tested it with a local build.

Screenshots / recordings

N/A

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@rexdotsh
fix(app): restore device attachment picker
2d7be77
@rexdotsh
rexdotsh requested review from Brendonovich and Hona as code owners June 10, 2026 14:53
@github-actions github-actions Bot added the contributor label Jun 10, 2026
@Hona
Hona enabled auto-merge (squash) June 10, 2026 15:24
@Hona
Hona merged commit 649618c into anomalyco:dev Jun 10, 2026
10 checks passed

Uh oh!

There was an error while loading. Please reload this page.

isaacfinnegan pushed a commit to isaacfinnegan/whispercode that referenced this pull request Jun 15, 2026
@rexdotsh
fix(app): restore device attachment picker (anomalyco#31707)
1c231e4
davidgut1982 pushed a commit to davidgut1982/opencode that referenced this pull request Jun 19, 2026
@rexdotsh @davidgut1982
fix(app): restore device attachment picker (anomalyco#31707)
c35f10c
BenGu3 pushed a commit to BenGu3/opencode that referenced this pull request Jun 27, 2026
@rexdotsh @BenGu3
fix(app): restore device attachment picker (anomalyco#31707)
02bfe32
MarsQiu007 referenced this pull request in MarsQiu007/openNovel Jul 31, 2026
@rexdotsh
fix(app): restore device attachment picker (#31707)
82c4728
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Hona Hona Awaiting requested review from Hona
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

contributor

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Remote web sessions cannot attach device files from the prompt composer

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@rexdotsh @Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.