Skip to content

feat(copilot): send Copilot-Integration-Id header (#50105) - #50116

Closed
MarkMielke wants to merge 1 commit into
anomalyco:devfrom
MarkMielke:copilot-integration-id
Closed

MarkMielke wants to merge 1 commit into
anomalyco:devfrom
MarkMielke:copilot-integration-id

Conversation

@MarkMielke

@MarkMielke MarkMielke commented Sep 20, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #50105

Type of change

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

What does this PR do?

Without Copilot-Integration-Id, certain Github Copilot features are masked. In the specific case being addressed, the Enterprise BYOK feature allows custom models to be added that show up in VS Code, but they do not show up in OpenCode. After some head-scratching moments including direct testing with curl, I realized that it only works when Copilot-Integration-Id is filled in. I then found that OpenCode had previously used this header, but the header got lost in a refactor.

Originally I reported that adding just one line seems to work - and it does, however, it isn't clear why it works for both /models and /chat/completions, so I am also changing the place that should cover /chat/completions to make it explicit.

How did you verify your code works?

Tested manually, also added test cases to prevent future regressions.

Checklist

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

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label Sep 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label Sep 20, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

@thdxr

thdxr commented Oct 10, 2026

Copy link
Copy Markdown
Member

This branch has been upgraded to V2. We're no longer taking PRs for V1. If you think this is still relevant, please port it over and open it for V2.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

github-copilot plugin does not see Enterprise BYOK models

3 participants