Upstream sync: port changes from github/copilot-sdk (062b61c → 485ea5e)#15
Draft
Upstream sync: port changes from github/copilot-sdk (062b61c → 485ea5e)#15
Conversation
…O_RESULT, skipPermission tools, reasoningEffort, new events Co-authored-by: edburns <75821+edburns@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] [upstream-sync] Sync with upstream repository for newer commits
Upstream sync: port changes from github/copilot-sdk (062b61c → 485ea5e)
Mar 17, 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 19 upstream commits from the official github/copilot-sdk (.NET reference implementation) into the Java SDK.
New Features
TelemetryConfig— new class to configure OpenTelemetry for the CLI server (otlpEndpoint,filePath,exporterType,sourceName,captureContent); set viaCopilotClientOptions.setTelemetry(config), which injects the corresponding env vars on CLI startupPermissionRequestResultKind.NO_RESULT— signals "leave this permission request unanswered" in multi-client v3 protocol scenarios; the SDK skips the RPC response call when returned from a v3 broadcast handler, and throwsIllegalStateExceptionif returned through the v2 pathToolDefinition.createSkipPermission()— new factory +skipPermissionrecord field; instructs the CLI to bypass the permission check for safe/read-only toolsCopilotSession.setModel(model, reasoningEffort)— overload that accepts an optional reasoning effort level ("low","medium","high","xhigh")New events:
SessionBackgroundTasksChangedEvent(session.background_tasks_changed) andSessionToolsUpdatedEvent(session.tools_updated)Protocol Data Updates
Added fields to existing event data records (all nullable, backward-compatible):
ExternalToolRequestedData:traceparent,tracestate(W3C Trace Context)SessionStartData,SessionResumeData:reasoningEffortSessionResumeData:selectedModelSessionModelChangeData:reasoningEffort,previousReasoningEffortAssistantUsageData:reasoningEffortDeprecations
CopilotClientOptions.autoRestart— marked@Deprecated; has no effect (feature removed upstream)Not Ported
EventErrorPolicyalready provides handler-exception control; full migration would require significant test refactoringPull 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.orgCo-authored-by21.0.9+10-LTS k/_temp/ghcca-node/node/bin/git t-work-113297650git bash /.bin/sh which` (dns block)
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.