Skip to content

Update @github/copilot to 1.0.61#1612

Open
github-actions[bot] wants to merge 2 commits into
mainfrom
update-copilot-1.0.61
Open

Update @github/copilot to 1.0.61#1612
github-actions[bot] wants to merge 2 commits into
mainfrom
update-copilot-1.0.61

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Automated update of @github/copilot to version 1.0.61.

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

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 updates the monorepo’s pinned @github/copilot dependency to 1.0.61 and regenerates the language-specific SDK protocol bindings (RPC + session events) to match the updated schema across Node.js, Python, Go, .NET, Rust, and Java.

Changes:

  • Bumped @github/copilot to ^1.0.61 in Node.js packages and the shared test harness/codegen packages.
  • Regenerated protocol bindings across languages, including new/updated session event fields (e.g., eventsFileSizeBytes, schedule fields like at/cron/tz, and hook progress temporary).
  • Added new server-scoped experimental RPC namespaces (agents.*, instructions.*) and updated instruction-source typing (InstructionSource*).
Show a summary per file
File Description
test/harness/package.json Bumps @github/copilot devDependency to 1.0.61 for the shared harness.
test/harness/package-lock.json Locks @github/copilot and platform packages to 1.0.61.
rust/src/generated/session_events.rs Regenerated Rust session event types (new schedule fields, events_file_size_bytes, hook progress temporary).
rust/src/generated/rpc.rs Regenerated Rust RPC client with new agents and instructions sub-namespaces.
rust/src/generated/api_types.rs Regenerated Rust schema types/method constants (adds agents.discover, instructions.discover, instruction source renames).
python/copilot/generated/session_events.py Regenerated Python session event dataclasses (new schedule fields, events_file_size_bytes, hook progress temporary).
python/copilot/generated/rpc.py Regenerated Python RPC client/types (adds agents/instructions; refactors MCP lifecycle methods into internal surface).
nodejs/src/generated/session-events.ts Regenerated TS session event typings (new schedule fields, eventsFileSizeBytes, hook progress temporary).
nodejs/src/generated/rpc.ts Regenerated TS RPC typings (adds agents/instructions; moves some MCP lifecycle methods to an internal session RPC constructor).
nodejs/samples/package-lock.json Updates sample lockfile to @github/copilot 1.0.61.
nodejs/package.json Bumps Node.js SDK dependency on @github/copilot to 1.0.61.
nodejs/package-lock.json Locks Node.js SDK dependency graph to @github/copilot 1.0.61.
java/src/generated/java/com/github/copilot/generated/SessionShutdownEvent.java Adds eventsFileSizeBytes to shutdown event data.
java/src/generated/java/com/github/copilot/generated/SessionScheduleCreatedEvent.java Adds schedule fields (cron, tz, at) and updates interval semantics.
java/src/generated/java/com/github/copilot/generated/SessionResumeEvent.java Adds eventsFileSizeBytes to resume event data.
java/src/generated/java/com/github/copilot/generated/rpc/SessionInstructionsGetSourcesResult.java Switches instructions sources result to InstructionSource.
java/src/generated/java/com/github/copilot/generated/rpc/ServerRpc.java Adds agents and instructions namespaces to Java server RPC.
java/src/generated/java/com/github/copilot/generated/rpc/ServerInstructionsApi.java New generated server RPC API for instructions.discover.
java/src/generated/java/com/github/copilot/generated/rpc/ServerAgentsApi.java New generated server RPC API for agents.discover.
java/src/generated/java/com/github/copilot/generated/rpc/ScheduleEntry.java Adds schedule fields and makes interval semantics explicit.
java/src/generated/java/com/github/copilot/generated/rpc/InstructionSourceType.java New generated enum for instruction source type.
java/src/generated/java/com/github/copilot/generated/rpc/InstructionSourceLocation.java New generated enum for instruction source location.
java/src/generated/java/com/github/copilot/generated/rpc/InstructionSource.java New generated record representing instruction sources (includes projectPath).
java/src/generated/java/com/github/copilot/generated/rpc/InstructionsDiscoverResult.java New generated result type for instruction discovery.
java/src/generated/java/com/github/copilot/generated/rpc/InstructionsDiscoverParams.java New generated params type for instruction discovery.
java/src/generated/java/com/github/copilot/generated/rpc/AgentsDiscoverResult.java New generated result type for agent discovery.
java/src/generated/java/com/github/copilot/generated/rpc/AgentsDiscoverParams.java New generated params type for agent discovery.
java/src/generated/java/com/github/copilot/generated/HookProgressEvent.java Adds temporary flag to hook progress event data.
java/scripts/codegen/package.json Bumps Java codegen’s @github/copilot dependency to 1.0.61.
java/scripts/codegen/package-lock.json Locks Java codegen deps to @github/copilot 1.0.61.
java/pom.xml Updates the Java “reference impl version” property to ^1.0.61.
go/rpc/zsession_events.go Regenerated Go session events (new schedule fields, eventsFileSizeBytes, hook progress Temporary).
go/rpc/zrpc.go Regenerated Go RPC types (adds agents/instructions; refactors MCP lifecycle methods into internal surface).
dotnet/src/Generated/SessionEvents.cs Regenerated .NET session events (new schedule fields, EventsFileSizeBytes, hook progress Temporary).
dotnet/src/Generated/Rpc.cs Regenerated .NET RPC (adds agents/instructions; makes some MCP lifecycle APIs internal-only and updates instruction-source typing).

Copilot's findings

Files not reviewed (6)
  • go/rpc/zrpc.go: Language not supported
  • go/rpc/zsession_events.go: Language not supported
  • java/scripts/codegen/package-lock.json: Language not supported
  • nodejs/package-lock.json: Language not supported
  • nodejs/samples/package-lock.json: Language not supported
  • test/harness/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)

go/rpc/zrpc.go:12390

  • The Go MCPAPI type no longer includes several MCP lifecycle helpers that are still used by in-repo E2E tests (StartServer, RestartServer, RegisterExternalClient, UnregisterExternalClient, ReloadWithConfig, ConfigureGitHub, and Oauth.Respond). As a result, go/internal/e2e/rpc_mcp_lifecycle_e2e_test.go will not compile against this generated API without additional wrapper changes.
  • Files reviewed: 4/35 changed files
  • Comments generated: 0

1.0.61 marks several session MCP lifecycle RPC methods as internal
(startServer, restartServer, registerExternalClient,
unregisterExternalClient, reloadWithConfig, configureGitHub,
mcp.oauth.respond). Remove the E2E cases that exercised those methods on
the public client surface across the Node, Python, Go, and .NET MCP
lifecycle suites; the public list-tools/status/stop cases are retained.

Also make the abort-streaming snapshot tolerant of a transport timing
change. Routing fetch through Rust reqwest in the runtime can land the
abort before the in-flight assistant turn is finalized, so the recovery
request's history omits the aborted assistant message. Add a second
conversation covering that dropped-turn path so the replay proxy matches
regardless of which side of the race wins.

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

Copy link
Copy Markdown
Contributor Author

Cross-SDK Consistency Review ✅

This is an automated schema update (→ @github/copilot v1.0.61) regenerating types across all six SDK implementations. All changes are consistent across the full SDK surface.

Changes verified across all SDKs

Change Node.js Go .NET Java Python Rust
New agents.discover RPC method ✅ (pre-existing) ✅ (pre-existing)
New instructions.discover RPC method ✅ (pre-existing) ✅ (pre-existing)
InstructionsSourcesInstructionSource rename ✅ (pre-existing) ✅ (pre-existing)
ScheduleEntry.intervalMs optional + new cron/tz/at fields ✅ (pre-existing) ✅ (pre-existing)
SessionResumeData.eventsFileSizeBytes field ✅ (pre-existing) ✅ (pre-existing)
SessionShutdownData.eventsFileSizeBytes field ✅ (pre-existing) ✅ (pre-existing)
HookProgressData.temporary field ✅ (pre-existing) ✅ (pre-existing)
InstructionSource.projectPath field ✅ (pre-existing) ✅ (pre-existing)

Python and Rust were not modified in this PR because their generated files were already up-to-date with the new schema.

No cross-SDK consistency issues found.

Generated by SDK Consistency Review Agent for issue #1612 · sonnet46 2.9M ·

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