opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Unable to select a pdf attachment in auto complete

Open leeweisern opened this issue 1 month ago • 1 comments

Description

Here is quick video, auto complete is able to find the attachment but when i hit enter it won't paste into the text box.

I have to drag and drop into the text box but i got this error:

Read jompay.pdf Cannot read binary file: /Users/kelvin/Local/Github/jompay.pdf

Not sure if it is related.

OpenCode version

1.0.25

Steps to reproduce

No response

Screenshot and/or share link

https://github.com/user-attachments/assets/2646a7f1-57c6-4a6e-948d-3fffdfdb71fd

Operating System

macOS 15.3.1

Terminal

Ghostty

leeweisern avatar Nov 05 '25 11:11 leeweisern

This issue might be a duplicate of existing issues. Please check:

  • #3659: Can't attach screenshots - Similar issue with attachment functionality not working properly in the TUI
  • #3747: Image drag/drop no longer works - Related to drag-and-drop functionality being broken after OpenTUI migration
  • #3816: Clipboard image paste fails with AI_DownloadError - Related to file attachment and binary file handling issues

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Nov 05 '25 11:11 github-actions[bot]