Skip to content

Update @github/copilot to 1.0.66-1#1819

Merged
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.66-1
Jun 27, 2026
Merged

Update @github/copilot to 1.0.66-1#1819
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.66-1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.66-1.

Changes

  • Updated @github/copilot in nodejs/package.json and test/harness/package.json
  • Re-ran all code generators (scripts/codegen)
  • Formatted generated output
  • Updated Java codegen dependency, POM property, and regenerated Java types

Java Handwritten Code Adaptation Plan

If java-sdk-tests CI fails on this PR, follow these steps:

  1. Identify failures: Run mvn clean, mvn verify from java/ locally or check the java-sdk-tests workflow run logs.
  2. Categorize errors:
    • Constructor signature changes (new fields added to generated records)
    • Enum value additions/renames in generated types
    • New event types requiring handler registration
    • Removed or renamed generated types
  3. Fix handwritten source (java/src/main/java/com/github/copilot/sdk/):
    • Update call sites passing positional constructor args to include new fields (typically null for optional new fields).
    • Update switch/if-else over enum values to handle new cases.
    • Register handlers for new event types in CopilotSession.java if applicable.
  4. Fix handwritten tests (java/src/test/java/com/github/copilot/sdk/):
    • Same constructor/enum fixes as above.
    • Add new test methods for new functionality if the change adds user-facing API surface.
  5. Validate: cd java && mvn clean test-compile jar:jar && mvn verify -Dskip.test.harness=true
  6. Format: cd java && mvn spotless:apply
  7. Push fixes to this PR branch.

To automate this, trigger the java-adapt-handwritten-code-to-accept-upgrade-changes agentic workflow instead.

Next steps

When ready, click Ready for review to trigger CI checks.

Created by the Update @github/copilot Dependency workflow.

- Updated nodejs and test harness dependencies
- Re-ran code generators
- Formatted generated code
@stephentoub stephentoub marked this pull request as ready for review June 27, 2026 00:32
@stephentoub stephentoub requested a review from a team as a code owner June 27, 2026 00:32
Copilot AI review requested due to automatic review settings June 27, 2026 00:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps the monorepo’s pinned @github/copilot dependency to 1.0.66-1 and regenerates the language SDKs’ wire types/RPC clients from the updated schemas so each SDK stays in sync with the CLI protocol surface.

Changes:

  • Updated @github/copilot version pins in the Node.js SDK, test harness, and Java codegen packages (plus lockfiles).
  • Regenerated protocol/session event types across Node.js, Rust, Go, .NET, and Java (new events, new RPC namespaces, new data shapes).
  • Updated Java’s reference-impl version property in java/pom.xml and refreshed generated Java RPC/types.
Show a summary per file
File Description
test/harness/package.json Bump @github/copilot devDependency used by the replay proxy harness.
test/harness/package-lock.json Lockfile refresh for the harness to @github/copilot@1.0.66-1 (+ platform packages).
nodejs/package.json Bump Node.js SDK dependency on @github/copilot.
nodejs/package-lock.json Lockfile refresh for Node.js SDK to @github/copilot@1.0.66-1.
nodejs/samples/package-lock.json Sample lockfile refresh to @github/copilot@1.0.66-1.
nodejs/src/generated/session-events.ts Regenerated Node session-event types (new events/fields/attachments).
nodejs/src/generated/rpc.ts Regenerated Node RPC client/types (new namespaces/options, auth namespace rename).
rust/src/generated/session_events.rs Regenerated Rust session-event types (new events/fields, MCP additions).
rust/src/generated/rpc.rs Regenerated Rust RPC client (auth namespace rename, MCP headers sub-namespace).
go/zsession_events.go Regenerated Go public re-exports for new session-event types.
go/rpc/zsession_events.go Regenerated Go RPC session-event schema types (new events/fields).
go/rpc/zsession_encoding.go Updated Go session-event decoding to handle new event types.
go/rpc/zrpc.go Regenerated Go RPC client/types (auth namespace rename, new options/types).
go/rpc/zrpc_encoding.go Updated Go RPC JSON encoding/decoding for new union/types and fields.
dotnet/src/Generated/SessionEvents.cs Regenerated .NET session-event types (new events/attachments/options).
java/pom.xml Updated Java reference implementation version property to ^1.0.66-1.
java/scripts/codegen/package.json Bump Java codegen’s @github/copilot dependency.
java/scripts/codegen/package-lock.json Lockfile refresh for Java codegen to @github/copilot@1.0.66-1.
java/src/generated/java/com/github/copilot/generated/AssistantIdleEvent.java New generated Java session event type for assistant.idle.
java/src/generated/java/com/github/copilot/generated/McpHeadersRefreshCompletedEvent.java New generated Java session event type for mcp.headers_refresh_completed.
java/src/generated/java/com/github/copilot/generated/McpHeadersRefreshCompletedOutcome.java New generated Java enum for MCP headers refresh completion outcomes.
java/src/generated/java/com/github/copilot/generated/McpHeadersRefreshRequiredEvent.java New generated Java session event type for mcp.headers_refresh_required.
java/src/generated/java/com/github/copilot/generated/McpHeadersRefreshRequiredReason.java New generated Java enum for MCP headers refresh request reasons.
java/src/generated/java/com/github/copilot/generated/McpOauthRequestReason.java New generated Java enum for MCP OAuth request reasons.
java/src/generated/java/com/github/copilot/generated/McpOauthRequiredEvent.java Updated generated Java MCP OAuth required event payload (adds reason).
java/src/generated/java/com/github/copilot/generated/McpOauthRequiredStaticClientConfig.java Updated generated Java MCP static client config (adds clientSecret).
java/src/generated/java/com/github/copilot/generated/McpOauthWWWAuthenticateParams.java Updated generated Java docs/shape for WWW-Authenticate params.
java/src/generated/java/com/github/copilot/generated/ResponseBudgetConfig.java New generated Java session-events type for response budgeting.
java/src/generated/java/com/github/copilot/generated/SessionEvent.java Updated Java session-event polymorphic mapping (new event types).
java/src/generated/java/com/github/copilot/generated/SessionResumeEvent.java Updated generated Java resume payload (adds responseBudget).
java/src/generated/java/com/github/copilot/generated/SessionStartEvent.java Updated generated Java start payload (adds responseBudget).
java/src/generated/java/com/github/copilot/generated/ToolExecutionStartEvent.java Updated generated Java tool start event (adds shellToolInfo).
java/src/generated/java/com/github/copilot/generated/ToolExecutionStartShellToolInfo.java New generated Java type for shell tool path-hints.
java/src/generated/java/com/github/copilot/generated/UserMessageDelivery.java New generated Java enum for user-message delivery timing.
java/src/generated/java/com/github/copilot/generated/UserMessageEvent.java Updated generated Java user message payload (adds delivery).
java/src/generated/java/com/github/copilot/generated/rpc/InstalledPluginInfo.java Updated Java RPC type (adds directSourceId).
java/src/generated/java/com/github/copilot/generated/rpc/ModelBilling.java Updated Java RPC type (adds discountPercent).
java/src/generated/java/com/github/copilot/generated/rpc/PluginsUninstallParams.java Updated Java RPC type (adds directSourceId).
java/src/generated/java/com/github/copilot/generated/rpc/ResponseBudgetConfig.java New generated Java RPC type for response budgeting.
java/src/generated/java/com/github/copilot/generated/rpc/SessionGitHubAuthApi.java New/renamed Java RPC namespace client for session.gitHubAuth.*.
java/src/generated/java/com/github/copilot/generated/rpc/SessionGitHubAuthGetStatusParams.java Renamed Java RPC params type for GitHub auth getStatus.
java/src/generated/java/com/github/copilot/generated/rpc/SessionGitHubAuthGetStatusResult.java Renamed Java RPC result type for GitHub auth getStatus.
java/src/generated/java/com/github/copilot/generated/rpc/SessionGitHubAuthSetCredentialsParams.java Renamed Java RPC params type for GitHub auth setCredentials.
java/src/generated/java/com/github/copilot/generated/rpc/SessionGitHubAuthSetCredentialsResult.java New/renamed Java RPC result type for GitHub auth setCredentials.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpApi.java Updated Java RPC MCP client to include mcp.headers sub-namespace.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpHeadersApi.java New Java RPC client for session.mcp.headers.*.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpHeadersHandlePendingHeadersRefreshRequestParams.java New Java RPC params type for MCP headers refresh handling.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpHeadersHandlePendingHeadersRefreshRequestResult.java New Java RPC result type for MCP headers refresh handling.
java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java Updated Java RPC options update (adds MCP instructions flag + responseBudget).
java/src/generated/java/com/github/copilot/generated/rpc/SessionRpc.java Updated Java session RPC root (auth namespace rename to gitHubAuth).
java/src/generated/java/com/github/copilot/generated/rpc/SessionToolsUpdateSubagentSettingsParams.java Updated Java RPC type (adds subagent maxConcurrency/maxDepth).
java/src/generated/java/com/github/copilot/generated/rpc/SlashCommandInvocationResult.java Updated Java RPC docs for slash command result shape.

Review details

Files not reviewed (9)
  • go/rpc/zrpc.go: Generated file
  • go/rpc/zrpc_encoding.go: Generated file
  • go/rpc/zsession_encoding.go: Generated file
  • go/rpc/zsession_events.go: Generated file
  • go/zsession_events.go: Generated file
  • java/scripts/codegen/package-lock.json: Generated file
  • nodejs/package-lock.json: Generated file
  • nodejs/samples/package-lock.json: Generated file
  • test/harness/package-lock.json: Generated file
  • Files reviewed: 4/56 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread go/rpc/zrpc.go
@github-actions

This comment has been minimized.

stephentoub and others added 2 commits June 26, 2026 21:58
Update language SDK tests for generated session.gitHubAuth RPC names and plugin uninstall direct source IDs. Pass newly required generated fields where needed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Update Java test constructors for regenerated schema records and apply Python ruff formatting.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

Avoid starting an inference in the dispose-from-handler deadlock test. The prior prompt could continue after the test completed and pollute the replay proxy for the next snapshot on macOS.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

This comment has been minimized.

Destroy the stateful conversation session when the test completes so delayed macOS runtime traffic cannot pollute the next replay snapshot.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor Author

SDK Consistency Review ✅

This PR updates @github/copilot to 1.0.66-1 and regenerates code for all six SDKs (Node.js, Python, Go, .NET, Java, Rust). Cross-SDK consistency looks excellent.

Changes verified as consistent across all SDKs

Change Node.js Python Go .NET Java Rust
authgitHubAuth rename session.gitHubAuth git_hub_auth GitHubAuthAPI SessionGitHubAuth* SessionGitHubAuthApi git_hub_auth()
New AssistantIdleEvent
New McpHeadersRefreshRequiredEvent
New McpHeadersRefreshCompletedEvent
New MCP headers API (handlePendingHeadersRefreshRequest)
New GitHub attachment types
PluginsUninstallParams.directSourceId field
New UserMessageDelivery enum
New McpOauthRequestReason enum
E2E tests updated

Breaking change note

The authgitHubAuth namespace rename (wire method: session.auth.*session.gitHubAuth.*) is a breaking change for anyone calling these experimental APIs directly. All SDK E2E tests have been updated accordingly and the rename is applied consistently using each language's convention.

Java handwritten code

CopilotClient.java is correctly adapted with two new constructor args (allowAllMcpServerInstructions, responseBudget) passed as null in the options update call.

No consistency issues found — this PR maintains full feature parity across all language implementations.

Generated by SDK Consistency Review Agent for issue #1819 · sonnet46 3.6M ·

@stephentoub stephentoub merged commit 8c3ecbd into main Jun 27, 2026
43 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.66-1 branch June 27, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants