Skip to content

Update @github/copilot to 1.0.63#1686

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
update-copilot-1.0.63
Open

Update @github/copilot to 1.0.63#1686
github-actions[bot] wants to merge 1 commit into
mainfrom
update-copilot-1.0.63

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.63.

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 16, 2026 02:49
@stephentoub stephentoub requested a review from a team as a code owner June 16, 2026 02:49
Copilot AI review requested due to automatic review settings June 16, 2026 02:49

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

Automated dependency upgrade of @github/copilot to 1.0.63, followed by regeneration of the cross-language RPC + session-event generated types so SDKs stay in sync with the updated schema.

Changes:

  • Bumped @github/copilot to ^1.0.63 across Node packages, test harness, and Java codegen inputs.
  • Regenerated SDK types adding new schema fields (e.g., usage finishReason/contentFilterTriggered, tool result structuredContent, MCP deferTools, workspaces diff ignoreWhitespace).
  • Updated Java POM property used for the reference implementation version pin.
Show a summary per file
File Description
test/harness/package.json Bumps harness devDependency to @github/copilot@^1.0.63.
test/harness/package-lock.json Lockfile updates for @github/copilot@1.0.63 and platform packages.
rust/src/generated/session_events.rs Adds new generated fields for usage + tool results.
rust/src/generated/api_types.rs Adds MCP defer_tools, workspace diff ignore_whitespace, and other schema fields.
python/copilot/generated/session_events.py Regenerated event models (usage + tool result structured_content).
python/copilot/generated/rpc.py Regenerated RPC types (MCP deferTools, workspaces diff ignoreWhitespace, etc.).
nodejs/src/generated/session-events.ts Regenerated session event interfaces including structuredContent.
nodejs/src/generated/rpc.ts Regenerated RPC types including MCP deferTools and workspaces diff ignoreWhitespace.
nodejs/samples/package-lock.json Sample lockfile bump to @github/copilot@^1.0.63.
nodejs/package.json Bumps Node SDK dependency to @github/copilot@^1.0.63.
nodejs/package-lock.json Lockfile updates for @github/copilot@1.0.63 and platform packages.
java/src/generated/java/com/github/copilot/generated/ToolExecutionCompleteResult.java Adds structuredContent to generated tool result record.
java/src/generated/java/com/github/copilot/generated/rpc/SessionWorkspacesDiffParams.java Adds ignoreWhitespace to workspace diff params.
java/src/generated/java/com/github/copilot/generated/AssistantUsageEvent.java Adds finishReason and contentFilterTriggered fields to usage event data.
java/scripts/codegen/package.json Bumps Java codegen input dependency to @github/copilot@^1.0.63.
java/scripts/codegen/package-lock.json Lockfile updates for Java codegen dependency bump.
java/pom.xml Updates the pinned reference implementation version property to ^1.0.63.
go/rpc/zsession_events.go Regenerated event structs adding usage/tool-result fields.
go/rpc/zsession_encoding.go Updates JSON decoding to include structuredContent.
go/rpc/zrpc.go Regenerated RPC types for MCP deferTools and workspace diff ignoreWhitespace.
go/rpc/zrpc_encoding.go Updates JSON decoding for MCP server config deferTools.
dotnet/src/Generated/SessionEvents.cs Regenerated session events with new usage/tool-result fields.
dotnet/src/Generated/Rpc.cs Regenerated RPC models and updated Workspaces diff API signature.

Copilot's findings

Files not reviewed (8)
  • 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
  • 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/23 changed files
  • Comments generated: 1

Comment on lines 17279 to 17285
/// <summary>Computes a diff for the session workspace.</summary>
/// <param name="mode">Diff mode requested by the client.</param>
/// <param name="ignoreWhitespace">When true, ignore whitespace-only changes (git `--ignore-all-space`). Defaults to false.</param>
/// <param name="cancellationToken">The <see cref="CancellationToken"/> to monitor for cancellation requests. The default is <see cref="CancellationToken.None"/>.</param>
/// <returns>Workspace diff result for the requested mode.</returns>
public async Task<WorkspaceDiffResult> DiffAsync(WorkspaceDiffMode mode, CancellationToken cancellationToken = default)
public async Task<WorkspaceDiffResult> DiffAsync(WorkspaceDiffMode mode, bool? ignoreWhitespace = null, CancellationToken cancellationToken = default)
{
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Cross-SDK Consistency Review

This PR is an automated update of @github/copilot from 1.0.62 → 1.0.63 with all code generators re-run. The changes are fully consistent across all 6 SDK implementations.

Schema changes propagated

Field / Type Node.js Go .NET Python Rust Java
CopilotUserResponse.can_upgrade_plan N/A1
WorkspacesDiffRequest.ignoreWhitespace + API update
MCPServerConfigDeferTools enum + deferTools field N/A2 N/A2
AssistantUsageData.contentFilterTriggered
AssistantUsageData.finishReason
ToolExecutionCompleteResult.structuredContent

Notes:

  1. Java does not generate CopilotUserResponse — its codegen only covers the types needed for the Java SDK's specific API surface.
  2. .NET and Java intentionally use opaque types for MCP server configuration (JsonElement and Object respectively), so the strongly-typed MCPServerConfigDeferTools enum is not applicable. This is a pre-existing architectural decision.

API naming conventions ✅

All renamed identifiers follow per-language conventions correctly: camelCase (TypeScript/Java), PascalCase for exported Go symbols, snake_case (Python/Rust), and PascalCase (.NET).

DiffAsync / Diff API surface ✅

The new ignoreWhitespace parameter is exposed consistently:

  • .NET: DiffAsync(WorkspaceDiffMode mode, bool? ignoreWhitespace = null, ...)
  • Go: Diff(ctx, &WorkspacesDiffRequest{..., IgnoreWhitespace: &val})
  • Java: SessionWorkspacesDiffParams(..., ignoreWhitespace)

No cross-SDK inconsistencies found.

Generated by SDK Consistency Review Agent for issue #1686 · sonnet46 2.8M ·

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