Skip to content

Update @github/copilot to 1.0.65#1793

Merged
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.65
Jun 25, 2026
Merged

Update @github/copilot to 1.0.65#1793
stephentoub merged 5 commits into
mainfrom
update-copilot-1.0.65

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.65.

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 24, 2026 21:51
@stephentoub stephentoub requested a review from a team as a code owner June 24, 2026 21:51
Copilot AI review requested due to automatic review settings June 24, 2026 21:51
@stephentoub stephentoub self-assigned this Jun 24, 2026

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 reference Copilot CLI implementation dependency @github/copilot to 1.0.65 across the repo and regenerates protocol-derived types for each language SDK (Node/TS, Rust, Go, .NET, Java) to match the updated wire schemas.

Changes:

  • Updated @github/copilot dependency versions in Node packages and the shared test harness.
  • Regenerated protocol-derived types/events/RPC surfaces across SDKs (new schedule + canvas events; provider-token callback; transport + sandbox policy additions; quota/schedule field additions).
  • Updated Java’s codegen inputs (codegen package + POM property) and regenerated Java types.
Show a summary per file
File Description
test/harness/package.json Bumps harness devDependency on @github/copilot to 1.0.65.
test/harness/package-lock.json Locks @github/copilot 1.0.65 and platform optional deps.
nodejs/package.json Bumps Node SDK dependency on @github/copilot to 1.0.65.
nodejs/package-lock.json Locks Node SDK @github/copilot 1.0.65 artifacts.
nodejs/samples/package-lock.json Updates sample lock metadata reflecting the updated local SDK dependency graph.
nodejs/src/generated/session-events.ts Regenerated session-event typings (adds schedule_rearmed + new canvas events; new quota/permission fields; removes canvas availability/reopen).
nodejs/src/generated/rpc.ts Regenerated RPC types (providerToken.getToken handler + new provider/sandbox/capi options; removes canvas availability/reopen in snapshots).
rust/src/generated/session_events.rs Regenerated Rust session-events (adds schedule_rearmed + new canvas events; quota/permission fields; removes canvas availability/reopen).
rust/src/generated/api_types.rs Regenerated Rust RPC/api types (providerToken.getToken + provider transport/capi options; removes canvas availability/reopen in snapshots).
rust/src/generated/rpc.rs Regenerated Rust RPC docs (MCP OAuth login params doc updated).
go/zsession_events.go Regenerated Go type aliases/constants for session events (adds new canvas/schedule events; removes canvas availability types/consts).
go/rpc/zsession_events.go Regenerated Go session-event payloads (adds schedule_rearmed + new canvas payloads; removes canvas availability/reopen).
go/rpc/zsession_encoding.go Updates session-event decoding to recognize new canvas/schedule event payloads.
go/rpc/zrpc.go Regenerated Go RPC surface (providerToken.getToken handler group; sandbox seatbelt; provider transport/capi options).
go/rpc/zrpc_encoding.go Updates RPC decoding to include new session open options fields (e.g., capi).
dotnet/src/Generated/SessionEvents.cs Regenerated .NET session-event models (adds schedule_rearmed + new canvas events; removes canvas availability/reopen).
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC models (provider token acquisition types + handler; provider transport/capi options; sandbox seatbelt; removes canvas availability/reopen).
java/pom.xml Updates Java “reference impl” version property to ^1.0.65.
java/scripts/codegen/package.json Bumps Java codegen dependency on @github/copilot to 1.0.65.
java/scripts/codegen/package-lock.json Locks Java codegen @github/copilot 1.0.65 artifacts.
java/src/generated/java/com/github/copilot/generated/SessionEvent.java Registers newly generated session event subtypes (schedule_rearmed + canvas unavailable/recorded/removed).
java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java Adds schedule selfPaced field to schedule-created payload.
java/src/generated/java/com/github/copilot/generated/SessionScheduleRearmedEvent.java New schedule-rearmed event type.
java/src/generated/java/com/github/copilot/generated/SessionCompactionCompleteEvent.java Adds compaction failure statusCode field.
java/src/generated/java/com/github/copilot/generated/SessionCanvasOpenedEvent.java Removes canvas reopen/availability from opened payload.
java/src/generated/java/com/github/copilot/generated/SessionCanvasUnavailableEvent.java New canvas-unavailable event type.
java/src/generated/java/com/github/copilot/generated/SessionCanvasRecordedEvent.java New canvas-recorded event type.
java/src/generated/java/com/github/copilot/generated/SessionCanvasRemovedEvent.java New canvas-removed event type.
java/src/generated/java/com/github/copilot/generated/ModelCallFailureEvent.java Adds quotaSnapshots to model-call failure payload.
java/src/generated/java/com/github/copilot/generated/AssistantUsageQuotaSnapshot.java Adds hasQuota/tokenBasedBilling/overageEntitlement fields.
java/src/generated/java/com/github/copilot/generated/CanvasOpenedAvailability.java Removes the old canvas availability enum from session-events schema outputs.
java/src/generated/java/com/github/copilot/generated/rpc/WorkspaceDiffMode.java Adds new workspace diff mode variant session.
java/src/generated/java/com/github/copilot/generated/rpc/SessionProviderGetEndpointResult.java Adds provider endpoint transport field.
java/src/generated/java/com/github/copilot/generated/rpc/SessionOptionsUpdateParams.java Adds capi options to session-options update params.
java/src/generated/java/com/github/copilot/generated/rpc/CapiSessionOptions.java New CAPI-scoped session options type.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthLoginParams.java Adds static OAuth client selection fields + grant type.
java/src/generated/java/com/github/copilot/generated/rpc/McpOauthLoginGrantType.java New MCP OAuth grant-type enum.
java/src/generated/java/com/github/copilot/generated/rpc/SessionMcpOauthApi.java Updates MCP OAuth login method docs to include new params.
java/src/generated/java/com/github/copilot/generated/rpc/ProviderTokenGetTokenParams.java New provider-token acquisition request type.
java/src/generated/java/com/github/copilot/generated/rpc/ProviderTokenGetTokenResult.java New provider-token acquisition result type.
java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfigTransport.java New provider transport enum (replaces prior canvas availability enum in rpc outputs).
java/src/generated/java/com/github/copilot/generated/rpc/ProviderEndpointTransport.java New provider endpoint transport enum.
java/src/generated/java/com/github/copilot/generated/rpc/ProviderConfig.java Adds provider transport + bearer-token-provider flag.
java/src/generated/java/com/github/copilot/generated/rpc/NamedProviderConfig.java Adds provider transport + bearer-token-provider flag.
java/src/generated/java/com/github/copilot/generated/rpc/OpenCanvasInstance.java Removes canvas reopen/availability from open-canvas snapshot shape.
java/src/generated/java/com/github/copilot/generated/rpc/SessionCanvasOpenResult.java Removes canvas reopen/availability from open result shape.
java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java Adds schedule selfPaced field.
java/src/generated/java/com/github/copilot/generated/rpc/SandboxConfig.java Removes raw container config field from sandbox config.
java/src/generated/java/com/github/copilot/generated/rpc/SandboxConfigUserPolicy.java Adds top-level seatbelt, deprecates legacy experimental seatbelt location.
java/src/generated/java/com/github/copilot/generated/rpc/SandboxConfigUserPolicySeatbelt.java New macOS seatbelt options record.

Copilot's findings

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/52 changed files
  • Comments generated: 3

Comment thread dotnet/src/Generated/SessionEvents.cs
Comment thread go/rpc/zsession_events.go
Comment thread dotnet/src/Generated/Rpc.cs
@github-actions

This comment has been minimized.

stephentoub and others added 3 commits June 24, 2026 18:30
CLI 1.0.65 removed the canvas 'availability' and 'reopen' fields (and the
CanvasInstanceAvailability/CanvasOpenedAvailability enums) and added a 'capi'
field to SessionOptionsUpdateParams. Update hand-written SDK source and unit
tests across all languages to match the regenerated types.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Rust: McpOauthLoginRequest gained optional client_id, client_secret,
  grant_type and public_client fields; add them to the e2e literals.
- Python: the per-surface grant-type enums were consolidated into
  MCPGrantType; update test_rpc_mcp_config_e2e to use it.

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

This comment has been minimized.

…ange

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

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This PR maintains excellent cross-SDK consistency. All six language implementations (Node.js, Python, Go, .NET, Java, Rust) are updated in the same PR, covering both generated and handwritten code.

What was verified

Change Node.js Python Go .NET Java Rust
Remove availability/reopen from OpenCanvasInstance
Remove availability guard in canvas-opened handler
New events: canvas.recorded, canvas.removed, canvas.unavailable
New event: schedule_rearmed
New type: CapiSessionOptions
hasBearerTokenProvider + ProviderToken.getToken handler
McpOauthLoginGrantType + new login fields

Handwritten code alignment

All handwritten session files consistently drop the availability check from the session.canvas.opened validation:

  • nodejs/src/session.ts — removed reopen/availability checks from isOpenCanvasInstance
  • python/copilot/session.py — removed availability is None guard
  • go/session.go — removed data.Availability == "" guard and field mapping
  • dotnet/src/Session.cs — removed Availability.Value guard and field mapping
  • java/.../CopilotSession.java — removed data.availability() == null guard and constructor arg
  • rust/tests/session_test.rs — test fixtures updated consistently

No cross-language gaps found.

Generated by SDK Consistency Review Agent for issue #1793 · sonnet46 3.1M ·

@stephentoub stephentoub added this pull request to the merge queue Jun 25, 2026
Merged via the queue into main with commit 4d13613 Jun 25, 2026
43 checks passed
@stephentoub stephentoub deleted the update-copilot-1.0.65 branch June 25, 2026 01:00
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