Merge reference implementation SDK changes (2026-04-30)#142
Closed
Merge reference implementation SDK changes (2026-04-30)#142
Conversation
…om.xml CLI version, and update scripts/codegen @github/copilot version Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
…om reference implementation - Add SetForegroundSessionRequest record in json package for typed serialization - Update setForegroundSessionId() to use SetForegroundSessionRequest instead of Map.of() (port of c63feb2: fix(dotnet): Add AOT-safe SetForegroundSessionRequest) - Add COPILOT_HOME env variable to E2ETestContext.getEnvironment() (port of test harness fix from E2ETestContext.cs) Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update reference implementation with 4 new commits
Merge reference implementation SDK changes (2026-04-30)
Apr 30, 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 4 new commits from
github/copilot-sdk(dd2dcbc→e42b726).Before the change?
setForegroundSessionId()serialized the RPC request body usingMap.of("sessionId", sessionId)— an untyped map with no explicit Jackson binding.E2ETestContext.getEnvironment()did not setCOPILOT_HOME, which could cause the CLI to use an unexpected home directory in tests..lastmerge,pom.xml, andscripts/codegen/package.jsonwere pinned to@github/copilot ^1.0.36-0.After the change?
SetForegroundSessionRequestrecord (jsonpackage) — typed, Jackson-annotated request class forsession.setForeground. Matches thec63feb2AOT-safety fix in the reference implementation.CopilotClient.setForegroundSessionId()usesnew SetForegroundSessionRequest(sessionId)instead ofMap.of(...).E2ETestContext.getEnvironment()now setsCOPILOT_HOMEalongsideXDG_CONFIG_HOMEandXDG_STATE_HOME..lastmergeupdated toe42b726ca42bd1b2e099a956c9287ba9435ba3e5;@github/copilotversion synced to^1.0.40-0inpom.xmlandscripts/codegen/package.json.Not ported (intentionally):
Rpc.cs/SessionEvents.cs— require triggering theupdate-copilot-dependency.ymlworkflow to regeneratesrc/generated/java/.MultiClientTestsrace condition fix — no equivalent test in the Java SDK.SessionFsTestsdynamic path fix — no equivalent test in the Java SDK.Pull request checklist
mvn spotless:applyhas been run to format the codemvn clean verifypasses locallyDoes this introduce a breaking change?