You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Python GitHub Copilot adapter is pinned to github-copilot-sdk==1.0.2, which prevents consumers from using the stable SDK's BYOK bearer token provider callback. SDK 1.0.11 adds ProviderConfig.bearer_token_provider and the async-capable BearerTokenProvider type.
The Copilot SDK changelog was reviewed for the releases between 1.0.2 and 1.0.11. The upgrade is additive for this adapter's existing usage, and the adapter already forwards its generic session options.
Description & Review Guide
What are the major changes? Update the package dependency declaration and the corresponding uv.lock entry from 1.0.2 to 1.0.11.
What is the impact of these changes? Consumers can provide rotating synchronous or asynchronous BYOK bearer tokens through the SDK provider configuration. Existing adapter behavior remains unchanged.
What do you want reviewers to focus on? Confirm the lockfile metadata and that no runtime adapter changes are needed for the SDK's additive provider callback API.
I resolved the main merge conflict and pushed the update in commit 81aee5340. I also isolated the compatibility Any used by the permission-handler boundary into a private _PermissionHandlerContext alias in commit 1e7178ae4, preserving support for both the legacy dictionary context and SDK 1.0.11 PermissionInvocation context without changing runtime behavior.
Validation is clean: formatting/lint, Pyright, mypy, ty, pyrefly, zuban, and the GitHub Copilot tests (183 passed, 6 deselected, 95% coverage).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Motivation & Context
The Python GitHub Copilot adapter is pinned to
github-copilot-sdk==1.0.2, which prevents consumers from using the stable SDK's BYOK bearer token provider callback. SDK 1.0.11 addsProviderConfig.bearer_token_providerand the async-capableBearerTokenProvidertype.The Copilot SDK changelog was reviewed for the releases between 1.0.2 and 1.0.11. The upgrade is additive for this adapter's existing usage, and the adapter already forwards its generic session options.
Description & Review Guide
uv.lockentry from 1.0.2 to 1.0.11.Related Issue
Fixes #8001
Contribution Checklist