Upstream sync: port 27 new commits from github/copilot-sdk (2026-03-05)#174
Merged
brunoborges merged 3 commits intomainfrom Mar 5, 2026
Merged
Conversation
… E2E test updates Co-authored-by: brunoborges <129743+brunoborges@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Sync with upstream repository for new commits
Upstream sync: port 27 new commits from github/copilot-sdk (2026-03-05)
Mar 5, 2026
edburns
reviewed
Mar 5, 2026
src/main/java/com/github/copilot/sdk/json/PermissionRequestResultKind.java
Show resolved
Hide resolved
Collaborator
JaCoCo coverage comparison. Looks good. |
edburns
approved these changes
Mar 5, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Ports relevant changes from github/copilot-sdk since last merge (
dcd86c1→4246289).Before the change?
PermissionRequestResult.setKind()only accepted rawStringvalues; no typed constants for well-known permission outcomesE2ETestContextusedCIenv var for CI detection — wrong variable for GitHub Actions; fake token was not being set in CIStreamingFidelityTestE2E tests were absent; streaming delta coverage lived in a snapshot that was removed upstreamgetLastSessionId()After the change?
PermissionRequestResultKind— new string-backed value type with well-known constants; case-insensitive equality; Jackson serializes transparently as a string:System.getenv("CI")→System.getenv("GITHUB_ACTIONS")inE2ETestContext.createClient()testShouldResumeSessionUsingTheSameClientandtestShouldResumeSessionUsingNewClientnow assert a follow-up stateful turn after resume; snapshots updated accordinglyStreamingFidelityTest— new E2E test class (streaming_fidelitysnapshot category) covering: delta events when streaming enabled, no deltas when disabled, deltas after session resumetestShouldGetLastSessionId— new E2E test using thesession/should_get_last_session_idsnapshotshould_receive_streaming_delta_events_when_streaming_is_enabled,should_pass_streaming_option_to_session_creation)advanced.mdPermission Handling section updated withPermissionRequestResultKindconstant tableNot ported
2951807.NET build infra + docs4246289Go remove hand-written PermissionRequest5b4a6ecUpdate@github/copilotto 0.0.421207b85bPython timeout in generated RPC methods87a54de/b49e5d8/c13dbba2fc65b4–e9797ca760ba65custom agents guidePull request checklist
mvn spotless:applyhas been run to format the codemvn clean verifypasses locallyDoes this introduce a breaking change?
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkstyle.org/opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/tools/linux64/java/bin/java -jar /opt/hostedtoolcache/CodeQL/2.24.2/x64/codeql/xml/tools/xml-extractor.jar --fileList=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/working/files-to-index723148437249810622.list --sourceArchiveDir=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/src --outputDir=/tmp/codeql-scratch-a0b8ba07f7cabbfc/dbs/java/trap/java va/copilot-sdk-java/src/test/java/com/github/copilot/sdk/SessionEventsE2ETest.java sh(dns block)If you need me to access, download, or install something from one of these locations, you can either:
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.