Skip to content

fix(app): restore device attachment picker#31707

Merged
Hona merged 1 commit into
anomalyco:devfrom
rexdotsh:fix/app-restore-device-attachments
Jun 10, 2026
Merged

fix(app): restore device attachment picker#31707
Hona merged 1 commit into
anomalyco:devfrom
rexdotsh:fix/app-restore-device-attachments

Conversation

@rexdotsh

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

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remote web sessions cannot attach device files from the prompt composer

2 participants