Skip to content

feat(opencode): Add PDF attachment Drag and Drop#16926

Merged
rekram1-node merged 3 commits intoanomalyco:devfrom
gitpush-gitpaid:feat/pdf-attachment
Apr 7, 2026
Merged

feat(opencode): Add PDF attachment Drag and Drop#16926
rekram1-node merged 3 commits intoanomalyco:devfrom
gitpush-gitpaid:feat/pdf-attachment

Conversation

@gitpush-gitpaid
Copy link
Copy Markdown
Contributor

@gitpush-gitpaid gitpush-gitpaid commented Mar 10, 2026

Issue for this PR

Closes #

Type of change

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

What does this PR do?

Adds PDF drag and drop support

Was able to attach images before, broadened scope to be able to drag and drop PDF's to models that can handle PDF input

How did you verify your code works?

  • Ran bun dev locally with OPENCODE_MODELS_PATH
  • Pointed at a local models.dev dist/_api.json and OPENCODE_DISABLE_MODELS_FETCH=1,
  • Then dragged a test PDF to the prompt and confirmed it was attached as [PDF 1].
  • Ran it and asked to prove it can read the PDF and worked as expected.

Screenshots / recordings

Screenshot 2026-03-10 at 2 50 54 PM Screenshot 2026-03-10 at 2 51 20 PM

Checklist

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

@github-actions github-actions bot added needs:title needs:compliance This means the issue will auto-close after 2 hours. labels Mar 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hey! Your PR title Feat: Add PDF attachment Drag and Drop doesn't follow conventional commit format.

Please update it to start with one of:

  • feat: or feat(scope): new feature
  • fix: or fix(scope): bug fix
  • docs: or docs(scope): documentation changes
  • chore: or chore(scope): maintenance tasks
  • refactor: or refactor(scope): code refactoring
  • test: or test(scope): adding or updating tests

Where scope is the package name (e.g., app, desktop, opencode).

See CONTRIBUTING.md for details.

@github-actions
Copy link
Copy Markdown
Contributor

The following comment was made by an LLM, it may be inaccurate:

Based on my search, I found one potentially related PR:

Related PR:

The current PR #16926 appears to be the primary/most recent implementation of PDF drag-and-drop support. The other results (like #15848 for large file attachments and #9656 for multi-file read) are related to file handling but don't specifically duplicate the PDF drag-and-drop feature.

@gitpush-gitpaid gitpush-gitpaid changed the title Feat: Add PDF attachment Drag and Drop feat(opencode): Add PDF attachment Drag and Drop Mar 10, 2026
@github-actions github-actions bot removed needs:compliance This means the issue will auto-close after 2 hours. needs:title labels Mar 10, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node
Copy link
Copy Markdown
Collaborator

Will give this review today/tmr I think opentui may have added something we can connect to now

@gitpush-gitpaid
Copy link
Copy Markdown
Contributor Author

no problem

thanks

@rekram1-node
Copy link
Copy Markdown
Collaborator

/review

@rekram1-node
Copy link
Copy Markdown
Collaborator

sorry it took so long! lgtm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 7, 2026

lgtm

@rekram1-node rekram1-node enabled auto-merge (squash) April 7, 2026 04:37
@rekram1-node rekram1-node merged commit 3c96bf8 into anomalyco:dev Apr 7, 2026
8 checks passed
@gitpush-gitpaid
Copy link
Copy Markdown
Contributor Author

no worries bro thank you!

hugojosefson pushed a commit to hugojosefson/opencode that referenced this pull request Apr 7, 2026
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <aidenpcline@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants