Skip to content

fix(opencode): detect Copilot PDF input support - #41522

Merged
rekram1-node merged 1 commit into
anomalyco:devfrom
stevenao:issue-41521
Aug 11, 2026
Merged

fix(opencode): detect Copilot PDF input support#41522
rekram1-node merged 1 commit into
anomalyco:devfrom
stevenao:issue-41521

Conversation

@stevenao

@stevenao stevenao commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes #41521

Type of change

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

What does this PR do?

Some GitHub Copilot models support PDF input, but OpenCode was not exposing that capability in their model metadata.

This change marks PDF input as supported only when Copilot advertises both vision support and application/pdf in its supported media types. Models with vision support but without PDF in their advertised media types remain marked as not accepting PDF input.

How did you verify your code works?

Ran:

cd packages/opencode && bun test test/plugin/github-copilot-models.test.ts

All 7 tests pass, including cases for PDF support when both capabilities are advertised and vision-only support without PDF support.

Screenshots / recordings

Not applicable; this is a non-UI logic change.

Checklist

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

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 10, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

@stevenao
stevenao force-pushed the issue-41521 branch 2 times, most recently from e9d2b92 to 2c6dd73 Compare August 10, 2026 10:06
@rekram1-node
rekram1-node merged commit 561afb4 into anomalyco:dev Aug 11, 2026
10 checks passed
@stevenao
stevenao deleted the issue-41521 branch August 11, 2026 22:16
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 12, 2026
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.

PDF attachments are not available with some GitHub Copilot models

2 participants