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(opencode): detect Copilot PDF input support by stevenao · Pull Request #41522 · anomalyco/opencode

Conversation

@stevenao

@stevenao stevenao commented Aug 10, 2026 •
edited
Loading

Uh oh!

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

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

Sorry, something went wrong.

Uh oh!

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

All reactions
@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

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

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

@stevenao
stevenao force-pushed the issue-41521 branch 2 times, most recently from e9d2b92 to 2c6dd73 Compare August 10, 2026 10:06
@stevenao
fix(opencode): detect Copilot PDF input support
4108258
@stevenao
stevenao force-pushed the issue-41521 branch from 2c6dd73 to 4108258 Compare August 10, 2026 10:11
@rekram1-node rekram1-node mentioned this pull request Aug 11, 2026
fix(core): detect copilot PDF input support #41854
Merged
@rekram1-node
rekram1-node merged commit 561afb4 into anomalyco:dev Aug 11, 2026
10 checks passed

Uh oh!

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

@stevenao
stevenao deleted the issue-41521 branch August 11, 2026 22:16
@nickhou1983 nickhou1983 mentioned this pull request Aug 12, 2026
chore: sync fork dev from upstream anomalyco/opencode (10 commits) nickhou1983/opencode#33
Open
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 12, 2026
@stevenao @HQ123-BOOP
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
bedbbe7
@unemployabot unemployabot Bot mentioned this pull request Aug 12, 2026
Termux v1.18.17 wallentx/opencode-termux#50
Merged
sepo-eng added a commit to Draugur-AI/opencode that referenced this pull request Aug 13, 2026
@sepo-eng @OpeOginni
@opencode-agent @rekram1-node @hoooou @stevenao @MatthewFeroz @skyzhao1223
chore: sync 11 low-risk upstream provider/reliability fixes from anom…
cd0bd27
…alyco/dev (#56)

* fix(ui): correct OC-2 weak icon color (anomalyco#41504)

(cherry picked from commit 3a90639)

* fix(provider): scope DeepSeek V4 Flash sampling defaults (anomalyco#41620)

Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: 侯秀凯 <[email protected]>
(cherry picked from commit 5d95348)

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

(cherry picked from commit 561afb4)

* fix(opencode): cap session retries with jitter (anomalyco#41939)

(cherry picked from commit c789868)

* fix(provider): add Merge Gateway reasoning variants (anomalyco#41867)

(cherry picked from commit 8571a92)

* docs: fix broken DigitalOcean and Daytona links (anomalyco#42048)

Co-authored-by: skyzhao1223 <[email protected]>
(cherry picked from commit ca3df21)

* docs: fix provider display name and PAT typos (anomalyco#42034)

Co-authored-by: skyzhao1223 <[email protected]>
(cherry picked from commit 959c8bd)

* fix(xai): pass through reasoning effort (anomalyco#42160)

Co-authored-by: Aiden Cline <[email protected]>
(cherry picked from commit 502310f)

* fix(mistral): pass through reasoning effort (anomalyco#42164)

Co-authored-by: Aiden Cline <[email protected]>
(cherry picked from commit beeabe2)

* fix(groq): pass through reasoning effort (anomalyco#42166)

Co-authored-by: Aiden Cline <[email protected]>
(cherry picked from commit 6fea419)

* fix(opencode): select Kimi prompt by provider (anomalyco#42161)

Co-authored-by: Aiden Cline <[email protected]>
(cherry picked from commit 91df883)

---------

Co-authored-by: OpeOginni <[email protected]>
Co-authored-by: opencode-agent[bot] <219766164+opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: Aiden Cline <[email protected]>
Co-authored-by: 侯秀凯 <[email protected]>
Co-authored-by: Steven Ao <[email protected]>
Co-authored-by: Matthew Feroz <[email protected]>
Co-authored-by: SKY ZHAO <[email protected]>
Co-authored-by: skyzhao1223 <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Qiiks added a commit to Qiiks/opencode that referenced this pull request Aug 15, 2026
@Qiiks
Merge upstream dev (through v1.18.18, anomalyco#42630) into personal/…
bfbb908
…hydration-fix

Sync 86 upstream commits (Aug 6-14) including:
- ID-wrap/chronological message ordering fixes (anomalyco#40987-anomalyco#41006) — upstream
  independently fixed the same bug class as our 07889a1/21964da41;
  adopted upstream versions (parentID === user.id for prompt exit, same
  findIndex boundaries for revert/session, isAfter helper in latest())
- v1.18.18 release (4 releases: v1.18.15-18)
- v1 database compatibility preservation (anomalyco#42444)
- ignore unknown config fields (anomalyco#41312)
- session retry cap with jitter (anomalyco#41939)
- compaction instructions for smaller models (anomalyco#42045)
- DeepSeek V4 Flash sampling defaults (anomalyco#41620)
- Copilot PDF input support detection (anomalyco#41522)
- web search for opencode-go (anomalyco#42630)
- compaction plugin hooks (experimental.session.compacting, messages.transform)
- New models: GLM 5.3, Gemini 3.7 Flash, Grok 4.6, Zen updates

Fork-only changes preserved:
- Synthetic web search backend (synthetic flag in webSearchEnabled)
- Config npm propagation to inherited models
- Tool-result media extraction for models without attachment capability
- packageManager pin to bun 1.4.-canary.1 (Rust runtime)

Conflicts resolved: message-v2, prompt, revert, session, server-session
(adopted upstream), compaction (adopted upstream), registry + websearch
test (merged both synthetic + opencode-go).
@github-actions github-actions Bot mentioned this pull request Aug 17, 2026
Informe upstream (semanal) jaminsmoke/Jarvis#52
Open
1056674754 added a commit to 1056674754/opencode that referenced this pull request Aug 31, 2026
@1056674754
chore: merge OpenCode v1.18.17-sscity
ab68129
Upstream v1.18.16 (a3647eb) -> v1.18.17 (02546df), 32 commits.

Functional changes:
- fix(compaction): clearer instructions for smaller models like dsv4 flash (anomalyco#42045)
- fix(provider): add Merge Gateway reasoning variants (anomalyco#41867)
- fix(opencode): cap session retries with jitter (anomalyco#41939) - retry policy
  gains RETRY_MAX_RETRIES=5 global cap and 25% jitter
- fix(opencode): detect Copilot PDF input support (anomalyco#41522)
- fix(provider): scope DeepSeek V4 Flash sampling defaults (anomalyco#41620)
- fix(session): route all Muse family models to the Meta system prompt (anomalyco#41581)
- fix(app): use current default model (anomalyco#38603)
- feat(console): add go usage endpoint (anomalyco#16513) and r2 data catalog stats
- fix(ui): correct OC-2 weak icon color (anomalyco#41504)
- fix(i18n): use widely recognized developer terminology (anomalyco#41532)

Conflicts resolved: 30 package.json version bumps (rebranded 1.18.17-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install), and
session/retry.ts (kept fork per-reason maxAttempts cap alongside upstream
RETRY_MAX_RETRIES global cap and jitter).
androidand pushed a commit to androidand/opencode-skein that referenced this pull request Sep 18, 2026
@stevenao
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
19fe536
androidand pushed a commit to androidand/opencode-skein that referenced this pull request Sep 19, 2026
@stevenao
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
396f8e0
androidand pushed a commit to androidand/opencode-skein that referenced this pull request Sep 19, 2026
@stevenao
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
638d5e1
rldona pushed a commit to plazoleta-dev/FlupCode that referenced this pull request Sep 24, 2026
@stevenao
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
865299a
Ichinose-Kazuki pushed a commit to Ichinose-Kazuki/opencode that referenced this pull request Oct 7, 2026
@stevenao
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
afcd4dd
Spark-Liang pushed a commit to Spark-Liang/opencode that referenced this pull request Oct 9, 2026
@stevenao @Spark-Liang
fix(opencode): detect Copilot PDF input support (anomalyco#41522)
20ab8dc
@vlameiras vlameiras mentioned this pull request Nov 21, 2026
GitHub Copilot: OpenCode advertises PDF support for models routed to /chat/completions #65490
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

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

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

PDF attachments are not available with some GitHub Copilot models

Uh oh!

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

2 participants

@stevenao @rekram1-node
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.