[PR #2753] fix: update github copilot versions #10431

Closed
opened 2026-02-16 18:15:04 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2753

State: closed
Merged: No


This pull request updates the user agent and editor version headers used for GitHub Copilot authentication to reflect newer versions. These updates help ensure compatibility with the latest Copilot and VSCode releases.

Version header updates:

  • Updated the User-Agent header from "GitHubCopilotChat/0.26.7" to "GitHubCopilotChat/0.31.2" in all authentication requests in github-copilot.ts. [1] [2] [3]
  • Updated the Editor-Version header from "vscode/1.99.3" to "vscode/1.104.1" and the Editor-Plugin-Version header from "copilot-chat/0.26.7" to "copilot-chat/0.31.2" in the relevant authentication request.

This PR enables gpt-5-codex support. Currently we are receiving this error:

AI_APICallError: model gpt-5-codex is not supported in this VS Code version. Please update it to version 1.104.1 or newer
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2753 **State:** closed **Merged:** No --- This pull request updates the user agent and editor version headers used for GitHub Copilot authentication to reflect newer versions. These updates help ensure compatibility with the latest Copilot and VSCode releases. Version header updates: * Updated the `User-Agent` header from `"GitHubCopilotChat/0.26.7"` to `"GitHubCopilotChat/0.31.2"` in all authentication requests in `github-copilot.ts`. [[1]](diffhunk://#diff-22b55c0b7a80cc0eb2b8e30ed580e412c4ce087f8aeb4052ea6767c751fb6485L40-R40) [[2]](diffhunk://#diff-22b55c0b7a80cc0eb2b8e30ed580e412c4ce087f8aeb4052ea6767c751fb6485L63-R63) [[3]](diffhunk://#diff-22b55c0b7a80cc0eb2b8e30ed580e412c4ce087f8aeb4052ea6767c751fb6485L104-R106) * Updated the `Editor-Version` header from `"vscode/1.99.3"` to `"vscode/1.104.1"` and the `Editor-Plugin-Version` header from `"copilot-chat/0.26.7"` to `"copilot-chat/0.31.2"` in the relevant authentication request. This PR enables gpt-5-codex support. Currently we are receiving this error: ``` AI_APICallError: model gpt-5-codex is not supported in this VS Code version. Please update it to version 1.104.1 or newer ```
yindo added the pull-request label 2026-02-16 18:15:04 -05:00
yindo closed this issue 2026-02-16 18:15:04 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10431